|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the behavior of any repository versionable object
Method Summary | |
void |
copyOwner(TableRow row,
Repository rep)
Copies the owner of a row to a repository |
void |
copyParentGroupsTree(TableRow tableRow,
Repository destinationRep,
boolean exactGroup)
Copies the container groups tree of a row to another repository. |
TableRow |
createOpenEdition(TableRow row)
Creates an open edition for a table row. |
int |
getActiveColumn()
This method returns the column identifier for the Active field of the versionable object |
int |
getCodeColumn()
This method returns the column identifier for the Code of the versionable object |
TableRow |
getContainerGroup(TableRow versionableRow)
This method returns the group containing the row. |
java.lang.String[] |
getDistinctNames(Clause where)
This method returns the distinct names of the rows in the Versionable object. |
int |
getNameColumn()
This method returns the column identifier for the Name of the versionable object |
int |
getOwnerColumn()
This method returns the column identifier for the Owner of the versionable object |
int |
getReleasedColumn()
This method returns the column identifier for the Released field of the versionable object |
int |
getTimeStampColumn()
This method returns the column identifier for the Timestamp of the versionable object |
int |
getVersionColumn()
This method returns the column identifier for the Version of the versionable object |
int |
getVersionedColumn()
This method returns the column identifier for the Versioned field of the versionable object |
TableRow[] |
getVersions(java.lang.String name)
Returns all the stored versions of a row in a versionable table. |
void |
importToWorkspace(Workspace ws,
TableRow row)
Copies a row from a repository to a workspace. |
boolean |
isAValidVersionNumber(TableRow versionableRow,
java.lang.String versionNumber,
Repository rep)
Checks if a version number is valid for a row stored in this versionable object. |
boolean |
isVersioned(TableRow row)
Tests if a row in this versionable object is versioned. |
TableRow[] |
rowsToBeRemoved(TableRow[] rows)
Returns the related rows that a remove process performed on a row set will remove. |
void |
setContainerGroup(TableRow versionableRow,
java.lang.String grpCode)
Sets the container group of a row of this versionable table object. |
TableRow |
version(TableRow versionableRow,
java.lang.String newVersion,
Repository repository)
Versions a row in this versionable object. |
Method Detail |
public void copyOwner(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 row whose parent groups tree would be copieddestinationRep
- com.ibm.dse.tools.workbench.base.Repository The destination repositoryexactGroup
- boolean Indicates whether it must search for exact matching groups in the destination repositorypublic TableRow createOpenEdition(TableRow row) throws WorkbenchException
An open edition is an edition ready to be worked on it.
row
- com.ibm.dse.tools.workbench.base.TableRowpublic int getActiveColumn()
public int getCodeColumn()
public TableRow getContainerGroup(TableRow versionableRow) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow The row whose container group must be returnedpublic java.lang.String[] getDistinctNames(Clause where) throws WorkbenchException
where
- com.ibm.dse.tools.workbench.base.Clause A clause to filter the names retrieved.public int getNameColumn()
public int getOwnerColumn()
public int getReleasedColumn()
public int getTimeStampColumn()
public int getVersionColumn()
public int getVersionedColumn()
public TableRow[] getVersions(java.lang.String name) throws WorkbenchException
The search is performed by name.
name
- java.lang.String The name of the rowpublic void importToWorkspace(Workspace ws, TableRow row) throws WorkbenchException
ws
- com.ibm.dse.tools.workbench.base.Workspace The destination repository.row
- com.ibm.dse.tools.workbench.base.TableRow The row to be copied.public boolean isAValidVersionNumber(TableRow versionableRow, java.lang.String versionNumber, Repository rep) throws WorkbenchException
This method would be tipically used to ensure that only a version number exists in a repository for a named row.
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow the row.versionNumber
- java.lang.String the version number.rep
- com.ibm.dse.tools.workbench.base.Repository the repository.public boolean isVersioned(TableRow row)
row
- com.ibm.dse.tools.workbench.base.TableRow the row.public TableRow[] rowsToBeRemoved(TableRow[] rows) throws WorkbenchException
row
- com.ibm.dse.tools.workbench.base.TableRow the row setpublic void setContainerGroup(TableRow versionableRow, java.lang.String grpCode) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow the rowgrpCode
- java.lang.String the group codepublic TableRow version(TableRow versionableRow, java.lang.String newVersion, Repository repository) throws WorkbenchException
versionableRow
- com.ibm.dse.tools.workbench.base.TableRow the row to be versioned.newVersion
- java.lang.String the version coderepository
- com.ibm.dse.tools.workbench.base.Repository the repository where the versioned row should be copied.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |