你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SimpleReactiveCosmosEntityMetadata<T> Class

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

Type Parameters

T

domain type.

Implements

public class SimpleReactiveCosmosEntityMetadata<T>
implements ReactiveCosmosEntityMetadata<T>

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

Constructor Summary

Constructor Description
SimpleReactiveCosmosEntityMetadata(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 from the given entity

Class<T> getJavaType()

Return the actual domain class type

Methods inherited from java.lang.Object

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

getCollectionName

public String getCollectionName()

Get collection name of cosmos

Returns:

container name

getContainerName

public String getContainerName()

Get container name from the given entity

getJavaType

public Class<T> getJavaType()

Return the actual domain class type

Returns:

type

Applies to