|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.utils.TableModelUtil
public class TableModelUtil
Table related utilities
Constructor Summary | |
---|---|
TableModelUtil()
|
Method Summary | |
---|---|
static java.lang.String |
constructConstraintNamesList(java.util.List matches)
|
static java.util.List |
getMatchedColumnCheckConstraint(BaseTable table,
Column column)
|
static java.util.List |
getMatchedColumnForeignKeys(BaseTable table,
Column column)
Returns all the foreign keys which reference the given column |
static java.util.List |
getMatchedColumnUniqueConstraint(BaseTable table,
Column column)
Returns all the unique constraints of the given table which only reference the given column |
static java.util.List |
getNotNullableColumns(BaseTable table)
Returns the columns list which is not nullable |
static boolean |
isReferencedColumn(BaseTable table,
Column column)
Checks if the given column is referenced in one of the reference constraints of the given table |
static void |
removeColumnFromRefConstraints(BaseTable table,
Column column)
|
static void |
removePrivilegeForColumn(Column column,
java.util.List authids)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TableModelUtil()
Method Detail |
---|
public static java.util.List getMatchedColumnUniqueConstraint(BaseTable table, Column column)
table
- the base tablecolumn
- the referencing column
public static java.util.List getMatchedColumnCheckConstraint(BaseTable table, Column column)
public static java.util.List getMatchedColumnForeignKeys(BaseTable table, Column column)
table
- column
-
public static boolean isReferencedColumn(BaseTable table, Column column)
table
- column
-
public static void removeColumnFromRefConstraints(BaseTable table, Column column)
public static void removePrivilegeForColumn(Column column, java.util.List authids)
public static java.util.List getNotNullableColumns(BaseTable table)
table
-
public static java.lang.String constructConstraintNamesList(java.util.List matches)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |