Package net.officefloor.nosql.cosmosdb
Interface CosmosEntities
public interface CosmosEntities
Provides means to work with entities for Cosmos.
- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.cosmos.models.PartitionKeycreatePartitionKey(Object entity) Creates thePartitionKeyfor the entity.com.azure.cosmos.CosmosContainergetContainer(Class<?> entityType) Obtains theCosmosContainerfor the entity type.
-
Method Details
-
getContainer
Obtains theCosmosContainerfor the entity type.- Parameters:
entityType- Entity type.- Returns:
CosmosContainerfor the entity type.
-
createPartitionKey
Creates thePartitionKeyfor the entity.- Parameters:
entity- Entity to generatePartitionKey.- Returns:
PartitionKeyfor the entity.
-