|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.datanucleus.store.mapped.ColumnCreator
public final class ColumnCreator
Helper class to create columns. Used for generating columns for join table fields.
| Field Summary | |
|---|---|
protected static Localiser |
LOCALISER
Localiser for messages. |
| Method Summary | |
|---|---|
static JavaTypeMapping |
createColumnsForField(java.lang.Class javaType,
JavaTypeMapping mapping,
DatastoreContainerObject table,
MappedStoreManager storeMgr,
AbstractMemberMetaData mmd,
boolean isPrimaryKey,
boolean isNullable,
boolean serialised,
boolean embedded,
int fieldRole,
ColumnMetaData[] columnMetaData,
ClassLoaderResolver clr,
boolean isReferenceField)
Method to create the column(s) for a field in either a join table or for a reference field. |
static JavaTypeMapping |
createColumnsForJoinTables(java.lang.Class javaType,
AbstractMemberMetaData mmd,
ColumnMetaData[] columnMetaData,
MappedStoreManager storeMgr,
DatastoreContainerObject table,
boolean primaryKey,
boolean nullable,
int fieldRole,
ClassLoaderResolver clr)
Method to create the mapping for a join table for collection element, array element, map key, map value. |
static DatastoreField |
createIndexColumn(JavaTypeMapping mapping,
MappedStoreManager storeMgr,
ClassLoaderResolver clr,
DatastoreContainerObject table,
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 Localiser LOCALISER
| Method Detail |
|---|
public static DatastoreField createIndexColumn(JavaTypeMapping mapping,
MappedStoreManager storeMgr,
ClassLoaderResolver clr,
DatastoreContainerObject table,
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 JavaTypeMapping createColumnsForJoinTables(java.lang.Class javaType,
AbstractMemberMetaData mmd,
ColumnMetaData[] columnMetaData,
MappedStoreManager storeMgr,
DatastoreContainerObject table,
boolean primaryKey,
boolean nullable,
int fieldRole,
ClassLoaderResolver clr)
javaType - The java type of the fieldmmd - Metadata for the field/propertycolumnMetaData - 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 nullablefieldRole - The role of the mapping within this fieldclr - ClassLoader resolver
public static JavaTypeMapping createColumnsForField(java.lang.Class javaType,
JavaTypeMapping mapping,
DatastoreContainerObject table,
MappedStoreManager storeMgr,
AbstractMemberMetaData mmd,
boolean isPrimaryKey,
boolean isNullable,
boolean serialised,
boolean embedded,
int fieldRole,
ColumnMetaData[] columnMetaData,
ClassLoaderResolver clr,
boolean isReferenceField)
javaType - The java type of the field being storedmapping - The JavaTypeMapping (if existing, otherwise created and returned by this method)table - The table to insert the columns into (join table, or primary table (if ref field))storeMgr - Manager for the storemmd - MetaData for the field (or null if a collection field)isPrimaryKey - Whether to create the columns as part of the PKisNullable - Whether the columns should be nullableserialised - Whether the field is serialisedembedded - Whether the field is embeddedfieldRole - The role of the field (when part of a join table)columnMetaData - MetaData for the column(s)clr - ClassLoader resolverisReferenceField - Whether this field is part of a reference field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||