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

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

public class UsersTable
extends AbstractTable

This class represents a table of users


Field Summary
static int CODE
          The identifier for the CODE column
static int ENTUSRFK
          The identifiers for the relationship ENTUSRFK
static int GRPUSRFK
          The identifiers for the relationship GRPUSRFK
static int INSUSRFK
          The identifiers for the relationship INSUSRFK
static int NAME
          The identifier for the NAME column
static int PWD
          The identifier for the PWD column
static int USER_DATA
          The identifier for the USER_DATA column
static int WORKSPACE
          The identifier for the WORKSPACE 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
UsersTable(Repository rpstry)
          This constructor creates a UsersTable object in a repository
 
Method Summary
 void createRelations()
          This method creates the relationships for a table
 boolean hasSelfGeneratedPk()
          This table has self-generated primary key
 java.lang.String[] validate(TableRow row)
          This method checks the correctness of a user 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

CODE

public static final int CODE
The identifier for the CODE column

NAME

public static final int NAME
The identifier for the NAME column

PWD

public static final int PWD
The identifier for the PWD column

WORKSPACE

public static final int WORKSPACE
The identifier for the WORKSPACE column

USER_DATA

public static final int USER_DATA
The identifier for the USER_DATA column

ENTUSRFK

public static final int ENTUSRFK
The identifiers for the relationship ENTUSRFK

GRPUSRFK

public static final int GRPUSRFK
The identifiers for the relationship GRPUSRFK

INSUSRFK

public static final int INSUSRFK
The identifiers for the relationship INSUSRFK
Constructor Detail

UsersTable

public UsersTable(Repository rpstry)
This constructor creates a UsersTable object in a repository
Parameters:
rpstry - com.ibm.dse.tools.workbench.base.Repository 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 self-generated primary key
Overrides:
hasSelfGeneratedPk in class AbstractTable
Returns:
boolean

validate

public java.lang.String[] validate(TableRow row)
This method checks the correctness of a user 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[]