|
|||||||||
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.VersionableTable | +--com.ibm.dse.tools.workbench.base.GroupsTable
This class represents a table of groups
Field Summary | |
static int |
ACTIVE
The identifier for the ACTIVE column |
static int |
CK_RELEASED
The identifiers for the check constraint CK_RELEASED |
static int |
CK_SITE
The identifiers for the check constraint CK_SITE |
static int |
CK_VERSIONED
The identifiers for the check constraint CK_VERSIONED |
static int |
CODE
The identifier for the CODE column |
static int |
DESCRIPTION
The identifier for the DESCRIPTION column |
static int |
GRPGRPCF
The identifiers for the relationship GRPGRPCF |
static int |
GRPGRPPF
The identifiers for the relationship GRPFRPPF |
static int |
GRPINSGF
The identifiers for the relationship GRPINSGF |
static int |
NAME
The identifier for the NAME column |
static int |
OWNER
The identifier for the OWNER column |
static int |
PATH
The identifier for the PATH column |
static int |
REL_COMPONENT_GROUPS
The identifiers for the relationship REL_COMPONENT_GROUPS |
static int |
REL_ENTITIES
The identifiers for the relationship REL_ENTITIES |
static int |
REL_INSTANCES
The identifiers for the relationship REL_INSTANCES |
static int |
REL_OWNER_GROUPS
The identifiers for the relationship REL_OWNER_GROUPS |
static int |
RELEASED
The identifier for the RELEASED column |
static int |
SITE
The identifier for the SITE column |
static int |
TIMESTAMP
The identifier for the TIMESTAMP column |
static int |
TYPE
The identifier for the TYPE column |
static int |
VERSION
The identifier for the VERSION column |
static int |
VERSIONED
The identifier for the VERSIONED 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 | |
GroupsTable(Repository rpstry)
This constructor creates a GroupsTable object in a repository |
Method Summary | |
void |
copyChildGroupsTree(TableRow row,
Repository rep)
This method copies the child groups tree of a GroupsTable row. |
void |
copyParentGroupsTree(TableRow tableRow,
Repository destinationRep,
boolean exactGroup)
Copies all the parent groups hierarchy of a group to a repository |
TableRow |
createOpenEdition(TableRow row)
Creates an open edition of a group row |
void |
createRelations()
This method creates the relationships for a table |
int |
getActiveColumn()
Returns the Active column identifier |
TableRow[] |
getChildGroups(TableRow parentGroup)
Returns the groups owned by a group |
TableRow[] |
getChildGroupsTree(TableRow group)
Returns the groups hierarchy owned by a group including it |
int |
getCodeColumn()
Returns the Code column identifier |
java.lang.String |
getCompletePath(TableRow group)
Returns a string with the concatenation of all parent names separated by dots |
TableRow |
getContainerGroup(TableRow versionableRow)
This method returns the group containing the versionableRow group row passed as parameter |
TableRow[] |
getEntities(TableRow group)
Returns the entity rows owned by a group |
TableRow[] |
getInstances(TableRow group)
Returns the instance rows owned by a group |
int |
getNameColumn()
Returns the Name column identifier |
int |
getOwnerColumn()
Returns the Owner column identifier |
TableRow |
getParentGroup(TableRow childGroup)
Returns the group owning a group |
TableRow[] |
getParentGroupsTree(TableRow group)
Returns the groups hierarchy owning a group |
int |
getReleasedColumn()
Returns the Released column identifier |
TableRow[] |
getRootGroups(Clause where,
int[] orderBy)
Returns the groups rows stored in the table not being owned by another group |
int |
getTimeStampColumn()
Returns the TimeStamp column identifier |
int |
getVersionColumn()
Returns the Version column identifier |
int |
getVersionedColumn()
Returns the Versioned column identifier |
boolean |
hasSelfGeneratedPk()
This method indicates if the field in the primary key must be generated automatically |
void |
importChildGroupsTree(Workspace ws,
TableRow row)
This method imports the child groups tree of a GroupsTable row, but not its contents |
void |
importGroupContents(Workspace ws,
TableRow group)
Imports from a repository to a workspace the rows owned by a group row |
void |
importToWorkspace(Workspace ws,
TableRow row)
Copies a row of a GroupsTable object from a repository to a workspace. |
void |
preInsert(TableRow row)
This method is called before inserting a row |
void |
preUpdate(TableRow row)
This method is called before modifying a row |
TableRow[] |
rowsToBeRemoved(TableRow[] rows)
Returns all the related rows that a remove process performed on a row set will remove. |
protected void |
rowsToBeRemoved(TableRow row,
java.util.Hashtable rowList)
Adds to a Hashtable the related rows that a remove process performed on a row will remove. |
void |
setContainerGroup(TableRow versionableRow,
java.lang.String grpCode)
This method sets the Container group of a group row |
java.lang.String[] |
validate(TableRow row)
This method checks the correctness of a group row based on application rules |
TableRow |
version(TableRow versionableRow,
java.lang.String newVersion,
Repository repository)
This method versions a group and copies the generated version to the repository. |
Methods inherited from class com.ibm.dse.tools.workbench.base.VersionableTable |
alterFkFields,
alterRelatedRows,
copyOwner,
copyParentGroupsTree,
getContainerGroup,
getContainerGroup,
getDistinctNames,
getVersions,
getWorkspaceContainerGroup,
isAValidVersionNumber,
isVersioned,
setContainerGroup,
updateOpenEditionFields,
updateVersionFields |
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,
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 NAME
public static final int VERSION
public static final int SITE
public static final int TYPE
public static final int RELEASED
public static final int VERSIONED
public static final int TIMESTAMP
public static final int OWNER
public static final int ACTIVE
public static final int DESCRIPTION
public static final int PATH
public static final int GRPINSGF
public static final int REL_INSTANCES
public static final int REL_ENTITIES
public static final int REL_COMPONENT_GROUPS
public static final int GRPGRPPF
public static final int REL_OWNER_GROUPS
public static final int GRPGRPCF
public static final int CK_SITE
public static final int CK_RELEASED
public static final int CK_VERSIONED
Constructor Detail |
public GroupsTable(Repository rpstry)
rpstry
- com.ibm.dse.tools.workbench.base.DefaultRepository The repository in wich create the tableMethod Detail |
public void copyChildGroupsTree(TableRow row, Repository rep) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRowrep
- com.ibm.dse.tools.workbench.base.Repositorypublic void copyParentGroupsTree(TableRow tableRow, Repository destinationRep, boolean exactGroup) throws WorkbenchException
tableRow
- com.ibm.dse.tools.workbench.base.TableRow The entity to copydestinationRep
- com.ibm.dse.tools.workbench.base.Repository The repository where to copyexactGroup
- boolean Indicator of whether the row has to be attached to the container group by CODE (true) or by NAME (false)public TableRow createOpenEdition(TableRow row) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRow the original rowpublic void createRelations() throws WBInvalidArgumentException
public int getActiveColumn()
public TableRow[] getChildGroups(TableRow parentGroup) throws WorkbenchException
parentGroup
- com.ibm.dse.tools.workbench.base.TableRow the parent grouppublic TableRow[] getChildGroupsTree(TableRow group) throws WorkbenchException
group
- com.ibm.dse.tools.workbench.base.TableRow the parent grouppublic int getCodeColumn()
public java.lang.String getCompletePath(TableRow group) throws WorkbenchException
group
- com.ibm.dse.tools.workbench.base.TableRowpublic TableRow getContainerGroup(TableRow versionableRow) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow The row whose group must be returnedpublic TableRow[] getEntities(TableRow group) throws WorkbenchException
group
- com.ibm.dse.tools.workbench.base.TableRowpublic TableRow[] getInstances(TableRow group) throws WorkbenchException
group
- com.ibm.dse.tools.workbench.base.TableRowpublic int getNameColumn()
public int getOwnerColumn()
public TableRow getParentGroup(TableRow childGroup) throws WorkbenchException
childGroup
- com.ibm.dse.tools.workbench.base.TableRow the child grouppublic TableRow[] getParentGroupsTree(TableRow group) throws WorkbenchException
group
- com.ibm.dse.tools.workbench.base.TableRowpublic int getReleasedColumn()
public TableRow[] getRootGroups(Clause where, int[] orderBy) throws WorkbenchException
where
- com.ibm.dse.tools.workbench.base.Clause A clause to restrict the root groups to be returnedorderBy
- int[] The order in which the groups are returnedpublic int getTimeStampColumn()
public int getVersionColumn()
public int getVersionedColumn()
public boolean hasSelfGeneratedPk()
public void importChildGroupsTree(Workspace ws, TableRow row) throws WorkbenchException
ws
- com.ibm.dse.tools.workbench.base.Workspacerow
- com.ibm.dse.tools.workbench.base.TableRowpublic void importGroupContents(Workspace ws, TableRow group) throws WorkbenchException
ws
- com.ibm.dse.tools.workbench.base.WorkSpace the destination workspacegroup
- com.ibm.dse.tools.workbench.base.TableRowpublic void importToWorkspace(Workspace ws, TableRow row) throws WorkbenchException
This method overwrites the generic importToWorkSpace
ws
- com.ibm.dse.tools.workbench.base.WorkSpacerow
- com.ibm.dse.tools.workbench.base.TableRowpublic void preInsert(TableRow row) throws RepositoryException
row
- com.ibm.dse.tools.workbench.base.TableRowpublic void preUpdate(TableRow row) throws RepositoryException
row
- com.ibm.dse.tools.workbench.base.TableRowpublic TableRow[] rowsToBeRemoved(TableRow[] rows) throws WorkbenchException
rows
- com.ibm.dse.tools.workbench.base.TableRow the rows to be removedprotected void rowsToBeRemoved(TableRow row, java.util.Hashtable rowList) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRowrowList
- java.util.Hashtablepublic void setContainerGroup(TableRow versionableRow, java.lang.String grpCode) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow The group rowgrpCode
- java.lang.String The code of the group to be set as containerpublic java.lang.String[] validate(TableRow row)
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 validatepublic TableRow version(TableRow versionableRow, java.lang.String newVersion, Repository repository) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow The group row to be versionednewVersion
- java.lang.String The version coderepository
- com.ibm.dse.tools.workbench.base.Repository The repository where to copy the versioned group row
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |