|
||||||||||
| 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.ConstraintCreationUtils
public class ConstraintCreationUtils
| Field Summary |
|---|
| Fields inherited from interface org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.tableeditor.utils.IConstraintCreationConstants |
|---|
CHECK, COLS_CHK_POSTFIX, COMMA, DATA_TYPE_LONG_VARCHAR, EMPTY_STRING, FALSE, IS_PART_OF_PRIMARYKEY, LEFT_PARENTHESIS, PRIMARYKEY_COL_INDEX, RIGHT_PARENTHESIS, SAVE_FILE_POSTFIX, SINGLE_QUOTE, SPACE, TABLE_INSTANCE, THREE_TABS, TRUE, ZERO |
| Constructor Summary | |
|---|---|
ConstraintCreationUtils()
|
|
| Method Summary | |
|---|---|
static boolean |
canTwoColumnsMap(Column firstCol,
Column secondCol)
Judge whether two columns can map to create foreign key. |
static Column |
getColumnByName(Table table,
java.lang.String columnName)
Get the column according to the given name |
static Column |
getColumnByName(UniqueConstraint constraint,
java.lang.String columnName)
Get the column according to the given name |
static DatabaseDefinition |
getDatabaseDefinition(Table table)
Get DatabaseDefinition by a given table |
static java.lang.String |
getDataTypeFullFormatString(Column column)
|
static ValidatorMessage |
getValidatorMessage(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier,
Table table,
java.lang.String objectName)
Get the validator message of a given object name |
static boolean |
isNothing(java.lang.String str)
If a string is null or its length is 0, return true, else return false. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintCreationUtils()
| Method Detail |
|---|
public static java.lang.String getDataTypeFullFormatString(Column column)
public static Column getColumnByName(Table table,
java.lang.String columnName)
table - columnName -
public static Column getColumnByName(UniqueConstraint constraint,
java.lang.String columnName)
constraint - columnName -
public static boolean canTwoColumnsMap(Column firstCol,
Column secondCol)
firstCol - secondCol -
public static DatabaseDefinition getDatabaseDefinition(Table table)
table -
public static boolean isNothing(java.lang.String str)
str -
public static ValidatorMessage getValidatorMessage(org.eclipse.datatools.sqltools.core.DatabaseIdentifier databaseIdentifier,
Table table,
java.lang.String objectName)
databaseIdentifier - table - objectName -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||