org.springframework.datastore.mapping
Interface ClassMapping<T>

All Known Implementing Classes:
AbstractClassMapping, KeyValuePersistentEntity.KeyValueClassMapping

public interface ClassMapping<T>

A class mapping is a mapping between a class and some external form such as a table, column family, or document (depending on the underlying data store)

Since:
1.0

Method Summary
 PersistentEntity getEntity()
          Obtains the PersistentEntity for this class mapping
 IdentityMapping getIdentifier()
          Returns details of the identifier used for this class
 T getMappedForm()
          Returns the mapped form of the class such as a Table, a Key Space, Document etc.
 

Method Detail

getEntity

PersistentEntity getEntity()
Obtains the PersistentEntity for this class mapping

Returns:
The PersistentEntity

getMappedForm

T getMappedForm()
Returns the mapped form of the class such as a Table, a Key Space, Document etc.

Returns:
The mapped representation

getIdentifier

IdentityMapping getIdentifier()
Returns details of the identifier used for this class

Returns:
The Identity