com.ibm.dse.tools.workbench.base
Class AllowedValuesTable
java.lang.Object
|
+--com.ibm.dse.tools.workbench.base.AbstractTable
|
+--com.ibm.dse.tools.workbench.base.AllowedValuesTable
- public class AllowedValuesTable
- extends AbstractTable
This class represents a table of allowed values
Field Summary |
static int |
ALV_ORDER
The identifier for the ALV_ORDER column |
static int |
DOMAIN
The identifier for the DOMAIN column |
static int |
LABEL
The identifier for the LABEL column |
static int |
VALUE
The identifier for the VALUE column |
Fields inherited from class com.ibm.dse.tools.workbench.base.AbstractTable |
alias,
checks,
columnLengths,
columns,
DATA_DELIMITER,
DATA_SEPARATOR,
deletedRows,
ESCAPE_SEQUENCE,
fks,
indexes,
insertedRows,
modifiedRows,
name,
pk,
relations,
repository,
required,
rows,
triggers |
Method Summary |
void |
createRelations()
This method creates the relationships for a table |
boolean |
hasSelfGeneratedPk()
This table has no self-generated primary key |
java.lang.String[] |
validate(TableRow row)
Validates if it is a correct value for the domain datatype |
Methods inherited from class com.ibm.dse.tools.workbench.base.AbstractTable |
add,
areTriggersActive,
cleanRollbackData,
count,
createTableRow,
createTableRow,
exportToFile,
flush,
getAlias,
getChecks,
getChecks,
getColumnLengths,
getColumns,
getColumnsString,
getColumnsString,
getConnection,
getCreateChecksStrings,
getCreateFksStrings,
getCreateIndexesStrings,
getCreatePkString,
getCreateTableString,
getDefaultVersion,
getFks,
getIndexes,
getName,
getPk,
getPkValue,
getRelated,
getRelations,
getRepository,
getTimestamp,
getUniqueValue,
importFromString,
isInPk,
isRequired,
postDelete,
postInsert,
postUpdate,
preDelete,
preInsert,
preUpdate,
registerDeletedRow,
registerInsertedRow,
registerModifiedRow,
removeFromList,
restoreRows,
retrieveAll,
retrieveByPk,
retrieveDistinct,
setAlias,
setRepository,
setTriggersState |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DOMAIN
public static final int DOMAIN
- The identifier for the DOMAIN column
LABEL
public static final int LABEL
- The identifier for the LABEL column
VALUE
public static final int VALUE
- The identifier for the VALUE column
ALV_ORDER
public static final int ALV_ORDER
- The identifier for the ALV_ORDER column
AllowedValuesTable
public AllowedValuesTable(Repository rpstry)
- This constructor creates a AllowedValuesTable object in a repository
- Parameters:
rpstry
- com.ibm.dse.tools.workbench.base.DefaultRepository The repository in wich create the table
createRelations
public void createRelations()
throws WBInvalidArgumentException
- This method creates the relationships for a table
- Overrides:
- createRelations in class AbstractTable
- Throws:
- WBInvalidArgumentException - There is an error creating relationships.
hasSelfGeneratedPk
public boolean hasSelfGeneratedPk()
- This table has no self-generated primary key
- Overrides:
- hasSelfGeneratedPk in class AbstractTable
- Returns:
- boolean
validate
public java.lang.String[] validate(TableRow row)
- Validates if it is a correct value for the domain datatype
- Overrides:
- validate in class AbstractTable
- Parameters:
row
- com.ibm.dse.tools.workbench.base.TableRow The row to validate- Returns:
- java.lang.String[] the error messages