com.ibm.dse.tools.workbench.base
Class GroupsGroupsTable

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.base.AbstractTable
        |
        +--com.ibm.dse.tools.workbench.base.GroupsGroupsTable

public class GroupsGroupsTable
extends AbstractTable

This class represents a table of groups instances


Field Summary
static int GRP_COMPONENT
          The identifier for the ENT_CODE column
static int GRP_PARENT
          The identifier for the GRP_CODE 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
GroupsGroupsTable(Repository rpstry)
          This constructor creates a GroupsEntitiesTable object in a repository
 
Method Summary
 void createRelations()
          This method creates the relationships for a table
 boolean hasSelfGeneratedPk()
          This table has no self-generated primary key
 void postDelete(TableRow row)
          This method restores the path of the component group
 void postInsert(TableRow row)
          This method restores the path of the component group
 void postUpdate(TableRow row)
          This method restores the path of the component group
 java.lang.String[] validate(TableRow row)
          This method checks the correctness of a groups instances 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, 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

GRP_PARENT

public static final int GRP_PARENT
The identifier for the GRP_CODE column

GRP_COMPONENT

public static final int GRP_COMPONENT
The identifier for the ENT_CODE column
Constructor Detail

GroupsGroupsTable

public GroupsGroupsTable(Repository rpstry)
This constructor creates a GroupsEntitiesTable object in a repository
Parameters:
rpstry - com.ibm.dse.tools.workbench.base.DefaultRepository The repository in wich create the table
Method Detail

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

postDelete

public void postDelete(TableRow row)
                throws RepositoryException
This method restores the path of the component group
Overrides:
postDelete in class AbstractTable
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow
Throws:
RepositoryException -  

postInsert

public void postInsert(TableRow row)
                throws RepositoryException
This method restores the path of the component group
Overrides:
postInsert in class AbstractTable
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow
Throws:
RepositoryException -  

postUpdate

public void postUpdate(TableRow row)
                throws RepositoryException
This method restores the path of the component group
Overrides:
postUpdate in class AbstractTable
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow
Throws:
RepositoryException -  

validate

public java.lang.String[] validate(TableRow row)
This method checks the correctness of a groups instances row based on application rules

It returns the list of error strings or null if there are no errors

Overrides:
validate in class AbstractTable
Parameters:
row - com.ibm.dse.tools.workbench.base.TableRow The row to validate
Returns:
java.lang.String[] the errors list