|
|||||||||
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.PropertiesTable
This class represents a table of properties
Field Summary | |
static int |
ATTRIBUTE
The identifier for the ATTRIBUTE column |
static int |
CODE
The identifier for the CODE column |
static int |
INSTANCE
The identifier for the INSTANCE column |
static int |
REL_ERRORS
The identifier for the relationship ERRPRPFK |
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 |
Constructor Summary | |
PropertiesTable(Repository rpstry)
This constructor creates a PropertiesTable object in a repository |
Method Summary | |
void |
createRelations()
This method creates the relationships for a table |
TableRow |
findReference(TableRow property)
Returns the instance referred by a property that corresponds to a cross reference |
TableRow |
getAttribute(TableRow property)
Returns the row representing the attribute definition of a property |
java.lang.String |
getDatatype(TableRow row)
Returns the datatype for the values in a row |
TableRow |
getInstance(TableRow property)
Returns the row representing the instance to wich belongs a property |
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 |
void |
postDelete(TableRow row)
This method is called after a row is deleted |
java.lang.String[] |
validate(TableRow property)
This method checks the correctness of a property 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,
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 VALUE
public static final int INSTANCE
public static final int ATTRIBUTE
public static final int REL_ERRORS
Constructor Detail |
public PropertiesTable(Repository rpstry)
repstry
- com.ibm.dse.tools.workbench.base.DefaultRepository The repository in wich create the tableMethod Detail |
public void createRelations() throws WBInvalidArgumentException
public TableRow findReference(TableRow property) throws WorkbenchException
property
- com.ibm.dse.tools.workbench.base.TableRow The property with the attribute referencedpublic TableRow getAttribute(TableRow property) throws WorkbenchException
property
- com.ibm.dse.tools.workbench.base.TableRowpublic java.lang.String getDatatype(TableRow row) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRowpublic TableRow getInstance(TableRow property) throws WorkbenchException
property
- 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 void postDelete(TableRow row) throws RepositoryException
row
- com.ibm.dse.tools.workbench.base.TableRowpublic java.lang.String[] validate(TableRow property)
It returns the list of error strings or null if there are no errors
property
- com.ibm.dse.tools.workbench.base.TableRow The property row to validate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |