de.mathema.pride
Class MappedObject

java.lang.Object
  extended by de.mathema.pride.DatabaseAdapter
      extended by de.mathema.pride.ObjectAdapter
          extended by de.mathema.pride.MappedObject
Direct Known Subclasses:
AllArguments, Attribute

public abstract class MappedObject
extends ObjectAdapter

Convenience derivation from ObjectAdapter, assuming that the entity to operate on is this object itself. This base class is of interest for hybrid entities containing both the actual data and the mapping information. This may be nice for small projects to keep all related information in one class. However, in larger projects it is recommended to separate the mapping from the value objects as it is intended in base class ValueObjectAdapter

Author:
Jan Lessner

Field Summary
static java.lang.String REVISION_ID
           
 
Constructor Summary
MappedObject()
           
 
Method Summary
 java.lang.Object getEntity()
          Returns the value object the adapter is operating on
 
Methods inherited from class de.mathema.pride.ObjectAdapter
commit, constraint, constraint, constraint, create, create, createx, delete, delete, fetch, fetchx, fetchx, fetchx, find, find, find, getAutoFields, getDatabase, getDatabase, getDescriptor, getKeyFields, getXDescriptor, process, query, query, queryAll, update, update, update, update, update, updatex, updatex, updatex, wildcard
 
Methods inherited from class de.mathema.pride.DatabaseAdapter
commit, constraint, create, create, create, delete, delete, fetch, fetch, fetch, fetch, find, find, find, process, query, query, queryAll, update, update, update, update, update, update, update, update, wildcard
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION_ID

public static final java.lang.String REVISION_ID
See Also:
Constant Field Values
Constructor Detail

MappedObject

public MappedObject()
Method Detail

getEntity

public java.lang.Object getEntity()
Description copied from class: ObjectAdapter
Returns the value object the adapter is operating on

Specified by:
getEntity in class ObjectAdapter