|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.dse.tools.workbench.base.AbstractTable | +--com.ibm.dse.tools.workbench.base.AttributesTable
This class represents a table of attributes
Field Summary | |
static int |
ATTATTFK
The identifiers for the relationship ATTATTFK |
static int |
ATTRIBUTE_REF
The identifier for the ATTRIBUTE_REF column |
static int |
CK_EXTERNALIZE
The identifiers for the check constraint CK_EXTERNALIZE |
static int |
CK_REQUIRED
The identifiers for the check constraint CK_REQUIRED |
static int |
CODE
The identifier for the CODE column |
static int |
DATATYPE
The identifier for the DATATYPE column |
static int |
DEFAULT_VALUE
The identifier for the DEFAULT_VALUE column |
static int |
DESCRIPTION
The identifier for the DESCRIPTION column |
static int |
DOMAIN
The identifier for the DOMAIN column |
static int |
ENTITY
The identifier for the ENTITY column |
static int |
ENTITY_REF
The identifier for the ENTITY_REF column |
static int |
EXTERNALIZE
The identifier for the EXTERNALIZE column |
static int |
LABEL
The identifier for the LABEL column |
static int |
NAME
The identifier for the NAME column |
static int |
PRPATTFK
The identifiers for the relationship PRPATTFK |
static int |
REQUIRED
The identifier for the REQUIRED 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 |
Constructor Summary | |
AttributesTable(Repository rpstry)
This constructor creates a AttributesTable object in a repository |
Method Summary | |
void |
createRelations()
This method creates the relationships for a table |
TableRow[][] |
getAvailableRefInstanceProperty(TableRow attribute)
This method returns a bidimensional array of TableRows, with the instance and property that matches the reference condition for the given attribute. |
TableRow[] |
getAvailableRefProperties(TableRow attribute)
This method returns an array of properties that matches the reference condition of the given attribute. |
java.lang.String |
getDatatype(TableRow row)
Returns the datatype for the values in a row |
java.lang.Object |
getValueAsObject(TableRow row,
int column)
Returns the datatype for the values in a row |
boolean |
hasSelfGeneratedPk()
This table has self-generated primary key |
java.lang.String[] |
validate(TableRow attribute)
This method checks the correctness of an attribute row based on application rules |
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 |
Field Detail |
public static final int CODE
public static final int ENTITY
public static final int NAME
public static final int DATATYPE
public static final int DEFAULT_VALUE
public static final int LABEL
public static final int REQUIRED
public static final int ENTITY_REF
public static final int ATTRIBUTE_REF
public static final int DESCRIPTION
public static final int DOMAIN
public static final int EXTERNALIZE
public static final int ATTATTFK
public static final int PRPATTFK
public static final int CK_REQUIRED
public static final int CK_EXTERNALIZE
Constructor Detail |
public AttributesTable(Repository rpstry)
repository
- com.ibm.dse.tools.workbench.base.DefaultRepository The repository in wich create the tableMethod Detail |
public void createRelations() throws WBInvalidArgumentException
public TableRow[][] getAvailableRefInstanceProperty(TableRow attribute) throws WorkbenchException
attribute
- com.ibm.dse.tools.workbench.base.TableRowpublic TableRow[] getAvailableRefProperties(TableRow attribute) throws WorkbenchException
attribute
- com.ibm.dse.tools.workbench.base.TableRowpublic java.lang.String getDatatype(TableRow row) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRowpublic java.lang.Object getValueAsObject(TableRow row, int column) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRowcolumn
- intpublic boolean hasSelfGeneratedPk()
public java.lang.String[] validate(TableRow attribute)
It returns the list of error strings or null if there are no errors
row
- com.ibm.dse.tools.workbench.base.TableRow The row to validate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |