org.springframework.datastore.keyvalue.mapping
Class KeyValueMappingContext

java.lang.Object
  extended by org.springframework.datastore.mapping.AbstractMappingContext
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.datastore.mapping.MappingContext
MappingContext.Listener
 
Field Summary
protected  MappingFactory<Family,KeyValue> mappingFactory
           
 
Fields inherited from class org.springframework.datastore.mapping.AbstractMappingContext
conversionService, entityValidators, eventListeners, persistentEntities, persistentEntitiesByDiscriminator, persistentEntitiesByName, proxyFactory
 
Constructor Summary
KeyValueMappingContext(String keyspace)
          Constructs a context using the given keyspace
 
Method Summary
protected  PersistentEntity createPersistentEntity(Class javaClass)
           
 MappingFactory<Family,KeyValue> getMappingFactory()
          Obtains the MappingFactory instance
 MappingConfigurationStrategy getMappingSyntaxStrategy()
          Returns the syntax reader used to interpret the entity mapping syntax
 
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
 

Field Detail

mappingFactory

protected MappingFactory<Family,KeyValue> mappingFactory
Constructor Detail

KeyValueMappingContext

public KeyValueMappingContext(String keyspace)
Constructs a context using the given keyspace

Parameters:
keyspace - The keyspace, this is typically the application name
Method Detail

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