org.springframework.datastore.keyvalue.mapping
Class KeyValueMappingContext
java.lang.Object
org.springframework.datastore.mapping.AbstractMappingContext
org.springframework.datastore.keyvalue.mapping.KeyValueMappingContext
- All Implemented Interfaces:
- MappingContext
public class KeyValueMappingContext
- extends AbstractMappingContext
A MappingContext used to map objects to a Key/Value store
- Since:
- 1.0
Methods inherited from class org.springframework.datastore.mapping.AbstractMappingContext |
addEntityValidator, addMappingContextListener, addPersistentEntity, addTypeConverter, getChildEntityByDiscriminator, getConversionService, getEntityValidator, getPersistentEntities, getPersistentEntity, getProxyFactory, isPersistentEntity, isPersistentEntity, setProxyFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mappingFactory
protected MappingFactory<Family,KeyValue> mappingFactory
KeyValueMappingContext
public KeyValueMappingContext(String keyspace)
- Constructs a context using the given keyspace
- Parameters:
keyspace
- The keyspace, this is typically the application name
getMappingSyntaxStrategy
public MappingConfigurationStrategy getMappingSyntaxStrategy()
- Description copied from interface:
MappingContext
- Returns the syntax reader used to interpret the entity
mapping syntax
- Returns:
- The SyntaxReader
getMappingFactory
public MappingFactory<Family,KeyValue> getMappingFactory()
- Description copied from interface:
MappingContext
- Obtains the MappingFactory instance
- Returns:
- The mapping factory instance
createPersistentEntity
protected PersistentEntity createPersistentEntity(Class javaClass)
- Specified by:
createPersistentEntity
in class AbstractMappingContext