Class SimpleReactiveCosmosEntityMetadata<T>
- java.lang.Object
-
- com.azure.spring.data.cosmos.repository.query.SimpleReactiveCosmosEntityMetadata<T>
-
- All Implemented Interfaces:
ReactiveCosmosEntityMetadata<T>,org.springframework.data.repository.core.EntityMetadata<T>
public class SimpleReactiveCosmosEntityMetadata<T> extends Object implements ReactiveCosmosEntityMetadata<T>
Metadata class to describe simple reactive cosmos entity includes domain type and cosmos entity information
-
-
Constructor Summary
Constructors Constructor Description SimpleReactiveCosmosEntityMetadata(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 from the given entityClass<T>getJavaType()Return the actual domain class type
-
-
-
Constructor Detail
-
SimpleReactiveCosmosEntityMetadata
public SimpleReactiveCosmosEntityMetadata(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()
Description copied from interface:ReactiveCosmosEntityMetadataGet container name from the given entity- Specified by:
getContainerNamein interfaceReactiveCosmosEntityMetadata<T>- Returns:
- String
-
-