|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jpox.store.rdbms.table.TableUtils
public class TableUtils
Class containing a series of convenience methods for the generation of tables and constraints.
| Constructor Summary | |
|---|---|
TableUtils()
|
|
| Method Summary | |
|---|---|
static CandidateKey |
getCandidateKeyForField(DatastoreContainerObject table,
UniqueMetaData umd,
JavaTypeMapping fieldMapping)
Convenience method to return the candidate key (if any) for a field. |
static ForeignKey |
getForeignKeyForPCField(JavaTypeMapping fieldMapping,
AbstractPropertyMetaData fmd,
boolean autoMode,
StoreManager storeMgr,
ClassLoaderResolver clr)
Convenience method to add a foreign key for a PC field. |
static java.util.Collection |
getForeignKeysForReferenceField(JavaTypeMapping fieldMapping,
AbstractPropertyMetaData fmd,
boolean autoMode,
StoreManager storeMgr,
ClassLoaderResolver clr)
Convenience method to add foreign-keys for the specified reference field. |
static Index |
getIndexForField(DatastoreContainerObject table,
IndexMetaData imd,
JavaTypeMapping fieldMapping)
Convenience method to create an Index for a field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableUtils()
| Method Detail |
|---|
public static java.util.Collection getForeignKeysForReferenceField(JavaTypeMapping fieldMapping,
AbstractPropertyMetaData fmd,
boolean autoMode,
StoreManager storeMgr,
ClassLoaderResolver clr)
fieldMapping - The field mapping (in this table)fmd - MetaData for this fieldautoMode - Whether we are in auto-create modestoreMgr - Store Managerclr - ClassLoader resolver
public static ForeignKey getForeignKeyForPCField(JavaTypeMapping fieldMapping,
AbstractPropertyMetaData fmd,
boolean autoMode,
StoreManager storeMgr,
ClassLoaderResolver clr)
fieldMapping - Mapping for the PC fieldfmd - MetaData for the fieldautoMode - Whether we are in auto-create modestoreMgr - Store Managerclr - ClassLoader resolver
public static Index getIndexForField(DatastoreContainerObject table,
IndexMetaData imd,
JavaTypeMapping fieldMapping)
table - Container for the indeximd - The Index MetaDatafieldMapping - Mapping for the field
public static CandidateKey getCandidateKeyForField(DatastoreContainerObject table,
UniqueMetaData umd,
JavaTypeMapping fieldMapping)
umd - The Unique MetaDatafieldMapping - Mapping for the field
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||