public class DocumentDbEntityInformation<T,ID>
extends org.springframework.data.repository.core.support.AbstractEntityInformation<T,ID>
Modifier and Type | Field and Description |
---|---|
private String |
collectionName |
private Field |
id |
private com.microsoft.azure.cosmosdb.IndexingPolicy |
indexingPolicy |
private Field |
partitionKeyField |
private Integer |
requestUnit |
private Integer |
timeToLive |
Constructor and Description |
---|
DocumentDbEntityInformation(Class<T> domainClass) |
Modifier and Type | Method and Description |
---|---|
String |
getCollectionName() |
private String |
getCollectionName(Class<?> domainClass) |
ID |
getId(T entity) |
Field |
getIdField() |
private Field |
getIdField(Class<?> domainClass) |
Class<ID> |
getIdType() |
com.microsoft.azure.cosmosdb.IndexingPolicy |
getIndexingPolicy() |
private com.microsoft.azure.cosmosdb.IndexingPolicy |
getIndexingPolicy(Class<?> domainClass) |
private Boolean |
getIndexingPolicyAutomatic(Class<?> domainClass) |
private Collection<com.microsoft.azure.cosmosdb.ExcludedPath> |
getIndexingPolicyExcludePaths(Class<?> domainClass) |
private Collection<com.microsoft.azure.cosmosdb.IncludedPath> |
getIndexingPolicyIncludePaths(Class<?> domainClass) |
private com.microsoft.azure.cosmosdb.IndexingMode |
getIndexingPolicyMode(Class<?> domainClass) |
com.microsoft.azure.cosmosdb.PartitionKey |
getPartitionKey(T entity) |
private Field |
getPartitionKeyField(Class<?> domainClass) |
String |
getPartitionKeyFieldName() |
String |
getPartitionKeyFieldValue(T entity) |
Integer |
getRequestUnit() |
private Integer |
getRequestUnit(Class<?> domainClass) |
Integer |
getTimeToLive() |
private Integer |
getTimeToLive(Class<T> domainClass) |
boolean |
isIdFieldAsPartitionKey() |
getJavaType, isNew
private Field id
private Field partitionKeyField
private String collectionName
private Integer requestUnit
private Integer timeToLive
private com.microsoft.azure.cosmosdb.IndexingPolicy indexingPolicy
public Field getIdField()
public String getCollectionName()
public Integer getRequestUnit()
public Integer getTimeToLive()
@NonNull public com.microsoft.azure.cosmosdb.IndexingPolicy getIndexingPolicy()
public String getPartitionKeyFieldName()
public boolean isIdFieldAsPartitionKey()
@Nullable public com.microsoft.azure.cosmosdb.PartitionKey getPartitionKey(@NonNull T entity)
private com.microsoft.azure.cosmosdb.IndexingPolicy getIndexingPolicy(Class<?> domainClass)
private com.microsoft.azure.cosmosdb.IndexingMode getIndexingPolicyMode(Class<?> domainClass)
private Collection<com.microsoft.azure.cosmosdb.IncludedPath> getIndexingPolicyIncludePaths(Class<?> domainClass)
private Collection<com.microsoft.azure.cosmosdb.ExcludedPath> getIndexingPolicyExcludePaths(Class<?> domainClass)
Copyright © 2018 Microsoft. All rights reserved.