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 Details

    • SimpleReactiveCosmosEntityMetadata

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

    • 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
    • getContainerName

      public String getContainerName()
      Description copied from interface: ReactiveCosmosEntityMetadata
      Get container name from the given entity
      Specified by:
      getContainerName in interface ReactiveCosmosEntityMetadata<T>
      Returns:
      String