org.springframework.datastore.mapping
Class AbstractClassMapping<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
entity
protected PersistentEntity entity
context
protected MappingContext context
AbstractClassMapping
public AbstractClassMapping(PersistentEntity entity,
MappingContext context)
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