| java.lang.Object com.triactive.jdo.store.Mapping
All known Subclasses: com.triactive.jdo.store.ComplexMapping, com.triactive.jdo.store.ColumnMapping,
Mapping | abstract public class Mapping (Code) | | An object that maps between a Java type and its relational representation
in the data store.
Subclasses of Mapping define and perform the storage and retrieval functions
for a particular Java type.
They also assist in arbitrary SQL generation such as done during Query
compilation.
Individual Mapping objects are sometimes bound to specific database tables
or columns, and are re-used for all data transfers.
Other times a Mapping is merely prototypical, and is used for transferring
to or from any suitable table/column.
author: Mike Martin version: $Revision: 1.5 $ See Also: DatabaseAdapter.getMapping(Class) See Also: DatabaseAdapter.getMapping(ClassBaseTableint) |
Constructor Summary | |
protected | Mapping(DatabaseAdapter dba, Class type) Create a new Mapping with the given DatabaseAdapter for the given type. |
Mapping | protected Mapping(DatabaseAdapter dba, Class type)(Code) | | Create a new Mapping with the given DatabaseAdapter for the given type.
Parameters: dba - The DatabaseAdapter that this Mapping should use. Parameters: type - The Class that this mapping maps to the database. |
getType | public Class getType()(Code) | | Return the Class that this Mapping maps to the database.
The Class that this Mapping maps to the database. |
|
|