SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

com.solarmetric.kodo.impl.jdbc.ormapping
Class Mapping

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.ormapping.Mapping
Direct Known Subclasses:
ClassMapping, FieldMapping

public abstract class Mapping
extends Object

Abstract base type for class and field mappings.


Field Summary
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
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)
           
 JDBCConfiguration getConfiguration()
          Return the configuration used to create this mapping.
 DBDictionary getDictionary()
          Return the dictionary used to create this mapping.
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAPPING

public static final String MAPPING
Metadata extension key used to install mappings onto metadata.

CUSTOM_MAPPING

public static final String CUSTOM_MAPPING
Metadata extension key used identify a custom class mapping.

TABLE

public static final String TABLE
Metadata extension key used to mark the name of the table a class or field is stored in.

dict

protected DBDictionary dict
Constructor Detail

Mapping

public Mapping()
Method Detail

getInstance

public static Mapping getInstance(Extensions exts)
Return the Mapping bound to the given metadata. This method is usually not used in favor of the getInstance methods in #ClassMapping and FieldMapping.

createMappings

public static void createMappings(Class[] types,
                                  JDBCConfiguration conf,
                                  ClassResolver resolver,
                                  DBDictionary dict)
Creates and installs a 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.

createMappings

public static void createMappings(Class[] types,
                                  JDBCConfiguration conf,
                                  ClassResolver resolver,
                                  DBDictionary dict,
                                  boolean skipNoMetadata)

getConfiguration

public JDBCConfiguration getConfiguration()
Return the configuration used to create this mapping.

getDictionary

public DBDictionary getDictionary()
Return the dictionary used to create this mapping.

getTable

public Table getTable(String tableName)
Look up a Table object with the given name. The returned table is guaranteed to be unique per Configuration.

SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.