Class 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 Detail

      • SimpleCosmosEntityMetadata

        public SimpleCosmosEntityMetadata​(Class<T> type,
                                          CosmosEntityInformation<T,​String> entityInformation)
        Initialization
        Parameters:
        type - the actual domain class type
        entityInformation - cosmos entity
    • Method Detail

      • getJavaType

        public Class<T> getJavaType()
        Return the actual domain class type
        Specified by:
        getJavaType in interface org.springframework.data.repository.core.EntityMetadata<T>
        Returns:
        type
      • getCollectionName

        public String getCollectionName()
        Get collection name of cosmos
        Returns:
        container name