Class SimpleCosmosEntityMetadata<T>
- java.lang.Object
-
- com.azure.spring.data.cosmos.repository.query.SimpleCosmosEntityMetadata<T>
-
- All Implemented Interfaces:
CosmosEntityMetadata<T>,org.springframework.data.repository.core.EntityMetadata<T>
public class SimpleCosmosEntityMetadata<T> extends Object implements CosmosEntityMetadata<T>
Metadata class to describe simple cosmos entity includes domain type and cosmos entity information
-
-
Constructor Summary
Constructors Constructor Description SimpleCosmosEntityMetadata(Class<T> type, CosmosEntityInformation<T,String> entityInformation)Initialization
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCollectionName()Get collection name of cosmosStringgetContainerName()Get container name of cosmosClass<T>getJavaType()Return the actual domain class type
-
-
-
Constructor Detail
-
SimpleCosmosEntityMetadata
public SimpleCosmosEntityMetadata(Class<T> type, CosmosEntityInformation<T,String> entityInformation)
Initialization- Parameters:
type- the actual domain class typeentityInformation- cosmos entity
-
-
Method Detail
-
getJavaType
public Class<T> getJavaType()
Return the actual domain class type- Specified by:
getJavaTypein interfaceorg.springframework.data.repository.core.EntityMetadata<T>- Returns:
- type
-
getCollectionName
public String getCollectionName()
Get collection name of cosmos- Returns:
- container name
-
getContainerName
public String getContainerName()
Get container name of cosmos- Specified by:
getContainerNamein interfaceCosmosEntityMetadata<T>- Returns:
- container name
-
-