|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.solarmetric.kodo.impl.jdbc.ormapping.Mapping
Abstract base type for class and field mappings.
| Field Summary | |
(package private) static Localizer |
_loc
|
(package private) static org.apache.commons.logging.Log |
_log
|
static String |
CUSTOM_MAPPING
Metadata extension key used identify a custom class mapping. |
protected DBDictionary |
dict
|
static String |
MAPPING
Metadata extension key used to install mappings onto metadata. |
static String |
TABLE
Metadata extension key used to mark the name of the table a class or field is stored in. |
| Constructor Summary | |
Mapping()
|
|
| Method Summary | |
(package private) static String |
checkExtension(Extensions exts,
String key,
String def)
Utility method to retrieve the value of the specified metadata extension, or return the default if not found. |
(package private) static ClassMapping |
createMapping(ClassMetaData meta,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Creates a ClassMapping for the given metadata. |
(package private) static FieldMapping |
createMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Creates a FieldMapping for the given metadata. |
static void |
createMappings(Class[] types,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Creates and installs a ClassMapping and FieldMappings
for the given types. |
static void |
createMappings(Class[] types,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict,
boolean skipNoMetadata)
|
(package private) static String |
getClassName(ClassMetaData meta)
Utility method to return only the class name of the given type, without package. |
JDBCConfiguration |
getConfiguration()
Return the configuration used to create this mapping. |
DBDictionary |
getDictionary()
Return the dictionary used to create this mapping. |
(package private) static FieldMapping |
getFieldMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Returns a new FieldMapping object that can map fmd. |
static Mapping |
getInstance(Extensions exts)
Return the Mapping bound to the given metadata. |
Table |
getTable(String tableName)
Look up a Table object with the given name. |
(package private) void |
install(Extensions exts,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
Installs this mapping on the given metadata. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public static final String MAPPING
public static final String CUSTOM_MAPPING
public static final String TABLE
static Localizer _loc
static final org.apache.commons.logging.Log _log
protected DBDictionary dict
| Constructor Detail |
public Mapping()
| Method Detail |
public static Mapping getInstance(Extensions exts)
getInstance methods in
ClassMapping and FieldMapping.
public static void createMappings(Class[] types,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
ClassMapping and FieldMappings
for the given types. Note that for each class in the given array, all
subclasses and related types of the class must also be included in the
array.
public static void createMappings(Class[] types,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict,
boolean skipNoMetadata)
static ClassMapping createMapping(ClassMetaData meta,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
static FieldMapping createMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
static FieldMapping getFieldMapping(FieldMetaData fmd,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
throws InstantiationException,
IllegalAccessException
fmd. The returned value is not installed. Returns
null if no appropriate mapping is found.
void install(Extensions exts,
JDBCConfiguration conf,
ClassResolver resolver,
DBDictionary dict)
public JDBCConfiguration getConfiguration()
public DBDictionary getDictionary()
static String checkExtension(Extensions exts,
String key,
String def)
static String getClassName(ClassMetaData meta)
public Table getTable(String tableName)
name. The
returned table is guaranteed to be unique per Configuration.
|
SolarMetric Kodo JDO 2.5.8 generated on January 11 2004 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||