org.springframework.datastore.mapping
Class AbstractClassMapping<T>

java.lang.Object
  extended by org.springframework.datastore.mapping.AbstractClassMapping<T>
All Implemented Interfaces:
ClassMapping
Direct Known Subclasses:
KeyValuePersistentEntity.KeyValueClassMapping

public abstract class AbstractClassMapping<T>
extends Object
implements ClassMapping

Abstract implementation of the ClassMapping interface

Since:
1.0

Field Summary
protected  MappingContext context
           
protected  PersistentEntity entity
           
 
Constructor Summary
AbstractClassMapping(PersistentEntity entity, MappingContext context)
           
 
Method Summary
 PersistentEntity getEntity()
          Obtains the PersistentEntity for this class mapping
 IdentityMapping getIdentifier()
          Returns details of the identifier used for this class
abstract  T getMappedForm()
          Returns the mapped form of the class such as a Table, a Key Space, Document etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entity

protected PersistentEntity entity

context

protected MappingContext context
Constructor Detail

AbstractClassMapping

public AbstractClassMapping(PersistentEntity entity,
                            MappingContext context)
Method Detail

getEntity

public PersistentEntity getEntity()
Description copied from interface: ClassMapping
Obtains the PersistentEntity for this class mapping

Specified by:
getEntity in interface ClassMapping
Returns:
The PersistentEntity

getMappedForm

public abstract T getMappedForm()
Description copied from interface: ClassMapping
Returns the mapped form of the class such as a Table, a Key Space, Document etc.

Specified by:
getMappedForm in interface ClassMapping
Returns:
The mapped representation

getIdentifier

public IdentityMapping getIdentifier()
Description copied from interface: ClassMapping
Returns details of the identifier used for this class

Specified by:
getIdentifier in interface ClassMapping
Returns:
The Identity