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>
Metadata class to describe simple cosmos entity includes domain type and cosmos entity information
-
Constructor Summary
ConstructorDescriptionSimpleCosmosEntityMetadata
(Class<T> type, CosmosEntityInformation<T, String> entityInformation) Initialization -
Method Summary
Modifier and TypeMethodDescriptionGet collection name of cosmosGet container name of cosmosReturn the actual domain class type
-
Constructor Details
-
SimpleCosmosEntityMetadata
public SimpleCosmosEntityMetadata(Class<T> type, CosmosEntityInformation<T, String> entityInformation) Initialization- Parameters:
type
- the actual domain class typeentityInformation
- cosmos entity
-
-
Method Details
-
getJavaType
Return the actual domain class type- Specified by:
getJavaType
in interfaceorg.springframework.data.repository.core.EntityMetadata<T>
- Returns:
- type
-
getCollectionName
Get collection name of cosmos- Returns:
- container name
-
getContainerName
Get container name of cosmos- Specified by:
getContainerName
in interfaceCosmosEntityMetadata<T>
- Returns:
- container name
-