public class KeyValueMappingContext extends AbstractMappingContext
A MappingContext used to map objects to a Key/Value store
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
GROOVY_OBJECT_CLASS |
|
private java.lang.String |
keyspace |
|
protected MappingFactory<Family, KeyValue> |
mappingFactory |
|
protected MappingConfigurationStrategy |
syntaxStrategy |
Fields inherited from class | Fields |
---|---|
class AbstractMappingContext |
CONFIGURATION_PREFIX, GROOVY_PROXY_FACTORY_NAME, JAVASIST_PROXY_FACTORY, canInitializeEntities, conversionService, entityValidators, eventListeners, initialized, multiTenancyMode, persistentEntities, persistentEntitiesByDiscriminator, persistentEntitiesByName, persistentEntitiesByParent, proxyFactory, validatorRegistry |
Constructor and description |
---|
KeyValueMappingContext
(java.lang.String keyspace) Constructs a context using the given keyspace |
KeyValueMappingContext
(java.lang.String keyspace, ConnectionSourceSettings settings) Constructs a context using the given keyspace |
Type Params | Return Type | Name and description |
---|---|---|
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
|
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass, boolean external) |
|
public java.lang.String |
getKeyspace() |
|
public MappingFactory<Family, KeyValue> |
getMappingFactory() |
|
public MappingConfigurationStrategy |
getMappingSyntaxStrategy() |
|
protected void |
initializeDefaultMappingFactory(java.lang.String keyspace) |
|
public void |
setCanInitializeEntities(boolean canInitializeEntities) |
|
public void |
setMappingFactory(MappingFactory<Family, KeyValue> mappingFactory) |
|
public void |
setSyntaxStrategy(MappingConfigurationStrategy syntaxStrategy) |
Constructs a context using the given keyspace
keyspace
- The keyspace, this is typically the application nameConstructs a context using the given keyspace
keyspace
- The keyspace, this is typically the application name