org.springframework.datastore.keyvalue.mapping
Class KeyValueMappingFactory

java.lang.Object
  extended by org.springframework.datastore.mapping.MappingFactory<Family,KeyValue>
      extended by org.springframework.datastore.keyvalue.mapping.KeyValueMappingFactory
Direct Known Subclasses:
GormKeyValueMappingFactory

public class KeyValueMappingFactory
extends MappingFactory<Family,KeyValue>

Since:
1.0

Field Summary
protected  String keyspace
           
 
Fields inherited from class org.springframework.datastore.mapping.MappingFactory
SIMPLE_TYPES
 
Constructor Summary
KeyValueMappingFactory(String keyspace)
           
 
Method Summary
 Family createMappedForm(PersistentEntity entity)
          Creates the mapped form of a persistent entity
 KeyValue createMappedForm(PersistentProperty mpp)
          Creates the mapped form of a PersistentProperty instance
 
Methods inherited from class org.springframework.datastore.mapping.MappingFactory
createIdentity, createManyToMany, createManyToOne, createOneToMany, createOneToOne, createPropertyMapping, createSimple, isSimpleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyspace

protected String keyspace
Constructor Detail

KeyValueMappingFactory

public KeyValueMappingFactory(String keyspace)
Method Detail

createMappedForm

public Family createMappedForm(PersistentEntity entity)
Description copied from class: MappingFactory
Creates the mapped form of a persistent entity

Specified by:
createMappedForm in class MappingFactory<Family,KeyValue>
Parameters:
entity - The entity
Returns:
The mapped form

createMappedForm

public KeyValue createMappedForm(PersistentProperty mpp)
Description copied from class: MappingFactory
Creates the mapped form of a PersistentProperty instance

Specified by:
createMappedForm in class MappingFactory<Family,KeyValue>
Parameters:
mpp - The PersistentProperty instance
Returns:
The mapped form