|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.sqm.loader.JDBCBaseLoader
org.eclipse.datatools.connectivity.sqm.loader.JDBCTableConstraintLoader
org.eclipse.datatools.enablement.mysql.catalog.loaders.MySqlTableConstraintLoader
public class MySqlTableConstraintLoader
| Field Summary |
|---|
| Fields inherited from class org.eclipse.datatools.connectivity.sqm.loader.JDBCTableConstraintLoader |
|---|
COLUMN_COLUMN_NAME, COLUMN_DEFERRABILITY, COLUMN_DELETE_RULE, COLUMN_FK_NAME, COLUMN_FKCOLUMN_NAME, COLUMN_KEY_SEQ, COLUMN_PK_NAME, COLUMN_PKCOLUMN_NAME, COLUMN_PKTABLE_CAT, COLUMN_PKTABLE_NAME, COLUMN_PKTABLE_SCHEM, COLUMN_UPDATE_RULE |
| Constructor Summary | |
|---|---|
MySqlTableConstraintLoader()
|
|
| Method Summary | |
|---|---|
void |
loadForeignKeys(java.util.List containmentList,
java.util.Collection existingFKs)
Loads the "foreign key" objects from the database. |
PrimaryKey |
loadPrimaryKey(PrimaryKey existingPK)
Loads the "primary key" object from the database. |
void |
loadUniqueConstraints(PrimaryKey pk,
java.util.List containmentList,
java.util.Collection existingUCs)
Loads the "unique constraint" objects from the database. |
| Methods inherited from class org.eclipse.datatools.connectivity.sqm.loader.JDBCTableConstraintLoader |
|---|
clearConstraints, loadForeignKeys, loadPrimaryKey, loadUniqueConstraints |
| Methods inherited from class org.eclipse.datatools.connectivity.sqm.loader.JDBCBaseLoader |
|---|
getCatalogObject, setCatalogObject |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MySqlTableConstraintLoader()
| Method Detail |
|---|
public PrimaryKey loadPrimaryKey(PrimaryKey existingPK)
throws java.sql.SQLException
JDBCTableConstraintLoader
loadPrimaryKey in class JDBCTableConstraintLoaderexistingPK - the existing primary key, if one exists.
java.sql.SQLException - if an error occurred during loading.
public void loadUniqueConstraints(PrimaryKey pk,
java.util.List containmentList,
java.util.Collection existingUCs)
throws java.sql.SQLException
JDBCTableConstraintLoader
loadUniqueConstraints in class JDBCTableConstraintLoaderpk - the table's primary key. Used to prevent duplicating the PK
constraint.containmentList - the containment list held by parentexistingUCs - the catalog objects which were previously loaded
java.sql.SQLException - if an error occurred during loading.
public void loadForeignKeys(java.util.List containmentList,
java.util.Collection existingFKs)
throws java.sql.SQLException
JDBCTableConstraintLoader
loadForeignKeys in class JDBCTableConstraintLoadercontainmentList - the containment list held by parentexistingFKs - the catalog objects which were previously loaded
java.sql.SQLException - if an error occurred during loading.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||