|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.table.ColumnCreator
public final class ColumnCreator
Helper class to create columns. Used for generating columns for reference (Object, interface) fields, and for join table fields.
| Field Summary | |
|---|---|
protected static org.jpox.util.Localiser |
LOCALISER
Localiser for messages. |
| Method Summary | |
|---|---|
static void |
createColumnsForFieldUsingReference(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.ClassLoaderResolver clr,
boolean embedded)
Create columns for reference (Object/interface) fields. |
static void |
createColumnsForFieldUsingSubclassTable(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.ClassLoaderResolver clr)
Create columns for a field that uses subclass-table inheritance and where we want to have a FK for each subclass with its own table. |
static org.jpox.store.mapped.mapping.JavaTypeMapping |
createColumnsForJoinTables(java.lang.Class javaType,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.metadata.ColumnMetaData[] columnMetaData,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.DatastoreContainerObject table,
boolean primaryKey,
boolean nullable,
boolean serialised,
boolean embedded,
int fieldRole,
org.jpox.ClassLoaderResolver clr)
Method to create the required columns (and mapping if necessary) for a field |
static org.jpox.store.mapped.DatastoreField |
createIndexColumn(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.ClassLoaderResolver clr,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.ColumnMetaData colmd,
boolean pk)
Convenience method to add the column for an index mapping. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.jpox.util.Localiser LOCALISER
| Method Detail |
|---|
public static org.jpox.store.mapped.DatastoreField createIndexColumn(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.ClassLoaderResolver clr,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.ColumnMetaData colmd,
boolean pk)
mapping - The mappingstoreMgr - Manager for the storeclr - ClassLoaderResolvertable - Table where we create the columncolmd - The column MetaDatapk - Whether this column is (part of) the PK.
public static org.jpox.store.mapped.mapping.JavaTypeMapping createColumnsForJoinTables(java.lang.Class javaType,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.metadata.ColumnMetaData[] columnMetaData,
org.jpox.store.mapped.MappedStoreManager storeMgr,
org.jpox.store.mapped.DatastoreContainerObject table,
boolean primaryKey,
boolean nullable,
boolean serialised,
boolean embedded,
int fieldRole,
org.jpox.ClassLoaderResolver clr)
javaType - The java type of the fieldfmd - Metadata for the fieldcolumnMetaData - MetaData defining the columnsstoreMgr - Store Managertable - The table to add the mapping toprimaryKey - Whether this field is the PKnullable - Whether this field is to be nullableserialised - Whether the field is serialisedembedded - Whether the field is embeddedfieldRole - The role of this field (if any)clr - ClassLoader resolver
public static void createColumnsForFieldUsingSubclassTable(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.ClassLoaderResolver clr)
mapping - the mapping for the fieldtable - the Table which will hold the columnsfmd - MetaData for the fieldclr - The ClassLoaderResolver
public static void createColumnsForFieldUsingReference(org.jpox.store.mapped.mapping.JavaTypeMapping mapping,
org.jpox.store.mapped.DatastoreContainerObject table,
org.jpox.metadata.AbstractMemberMetaData fmd,
org.jpox.ClassLoaderResolver clr,
boolean embedded)
mapping - the mapping for the fieldtable - the Table which will hold the columnsfmd - MetaData for the fieldclr - The ClassLoaderResolverembedded - Whether the field is embedded
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||