BasicCosmosPersistentEntity<T> Class
- java.
lang. Object - org.
springframework. data. mapping. model. BasicPersistentEntity - com.
azure. spring. data. cosmos. core. mapping. BasicCosmosPersistentEntity<T>
- com.
- org.
Type Parameters
- T
the type that is persisted.
Implements
public class BasicCosmosPersistentEntity<T>
extends org.springframework.data.mapping.model.BasicPersistentEntity<T,CosmosPersistentProperty>
implements CosmosPersistentEntity<T>, org.springframework.context.ApplicationContextAware
Simple value object to capture information of CosmosPersistentPropertys.
Constructor Summary
| Constructor | Description |
|---|---|
| BasicCosmosPersistentEntity(TypeInformation<T> typeInformation) |
Creates a new BasicCosmosPersistentEntity<T> from the given TypeInformation. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
getCollection()
To get collection of entity |
| String |
getContainer()
To get container of entity |
| String |
getLanguage()
To get language |
| void |
setApplicationContext(ApplicationContext applicationContext)
To set application context |
Methods inherited from java.lang.Object
Methods inherited from org.springframework.data.mapping.model.BasicPersistentEntity
Constructor Details
BasicCosmosPersistentEntity
public BasicCosmosPersistentEntity(TypeInformation<T> typeInformation)
Creates a new BasicCosmosPersistentEntity<T> from the given TypeInformation.
Parameters:
Method Details
getCollection
public String getCollection()
To get collection of entity
Returns:
getContainer
public String getContainer()
To get container of entity
getLanguage
public String getLanguage()
To get language
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
To set application context
Parameters:
Throws: