SimpleCosmosEntityMetadata<T> Class

  • java.lang.Object
    • com.azure.spring.data.cosmos.repository.query.SimpleCosmosEntityMetadata<T>

Type Parameters

T

domain type.

Implements

public class SimpleCosmosEntityMetadata
implements CosmosEntityMetadata<T>

Metadata class to describe simple cosmos entity includes domain type and cosmos entity information

Constructor Summary

Constructor Description
SimpleCosmosEntityMetadata(Class<T> type, CosmosEntityInformation<T,String> entityInformation)

Initialization

Method Summary

Modifier and Type Method and Description
String getCollectionName()

Get collection name of cosmos

String getContainerName()

Get container name of cosmos

Class<T> getJavaType()

Return the actual domain class type

Methods inherited from java.lang.Object

Constructor Details

SimpleCosmosEntityMetadata

public SimpleCosmosEntityMetadata(Class type, CosmosEntityInformation entityInformation)

Initialization

Parameters:

type - the actual domain class type
entityInformation - cosmos entity

Method Details

getCollectionName

public String getCollectionName()

Get collection name of cosmos

Returns:

container name

getContainerName

public String getContainerName()

Get container name of cosmos

Returns:

container name

getJavaType

public Class getJavaType()

Return the actual domain class type

Returns:

type

Applies to