Package net.officefloor.nosql.cosmosdb
Interface CosmosAsyncEntities
-
public interface CosmosAsyncEntitiesProvides means to work with entities for Cosmos.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.azure.cosmos.models.PartitionKeycreatePartitionKey(java.lang.Object entity)Creates thePartitionKeyfor the entity.com.azure.cosmos.CosmosAsyncContainergetContainer(java.lang.Class<?> entityType)Obtains theCosmosAsyncContainerfor the entity type.
-
-
-
Method Detail
-
getContainer
com.azure.cosmos.CosmosAsyncContainer getContainer(java.lang.Class<?> entityType)
Obtains theCosmosAsyncContainerfor the entity type.- Parameters:
entityType- Entity type.- Returns:
CosmosAsyncContainerfor the entity type.
-
createPartitionKey
com.azure.cosmos.models.PartitionKey createPartitionKey(java.lang.Object entity)
Creates thePartitionKeyfor the entity.- Parameters:
entity- Entity to generatePartitionKey.- Returns:
PartitionKeyfor the entity.
-
-