|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbColumnData
Constructor Summary | |
---|---|
TWGDbColumnData()
Constructor for TWGDbColumnData |
Method Summary | |
---|---|
void |
addColumn(TWGDbColumn column)
Add a column. |
int |
columnSize()
Get number of columns in the table. |
TWGDbColumn |
getColumn(java.lang.String token)
Get a column by its token name |
TWGDbColumn |
getColumnByColumnRealName(java.lang.String realName)
Get a column by its real name |
int |
getColumnId(java.lang.String token)
Get the id number for a column. |
java.util.Enumeration |
getColumnIds()
Get all the column numbers. |
java.lang.Integer |
getColumnLength(java.lang.String token)
Get the number of characters in a CHAR type column by its token name. |
java.util.Vector |
getColumnLengths()
Get the number of characters in each column. |
java.util.Enumeration |
getColumns()
Get a list of TWGDbColumn objects for all the columns in a table. |
int |
getColumnType(java.lang.String token)
Get the type of a column by its token name. |
java.util.Vector |
getColumnTypes()
Gets a list of column data types in the TWGDbColumnData object. |
java.lang.Object |
getDefaultValue(java.lang.String token)
Get a column default value by its token name. |
java.util.Vector |
getDefaultValues()
Method to get the default values for each column. |
java.lang.String |
getDisplayName(java.lang.String token)
Get the display name of a column by its token name. |
java.util.Vector |
getFilterColumns(java.util.Locale loc,
TWGDatabaseTable table)
Get a vector of all the columns that are filter columns. |
boolean |
getKey(java.lang.String token)
Check whether a column is part of key. |
int |
getKeyNum(java.lang.String token)
Get the number this column is in the key. |
java.util.Vector |
getKeys()
Get a list of column names that make up the key. |
java.lang.String |
getRealColumnName(java.lang.String token)
Get the real name of a column by its token name. |
java.util.Vector |
getRealColumnNames()
Get a list of all the real column names. |
java.util.Vector |
getTokenColumnNames()
Get a list of all column token names. |
java.lang.String |
getTokenForId(int columnId)
Get the column token name by its column number. |
java.lang.String |
getTokenForId(java.lang.Integer columnId)
Get the column token name by its column id number. |
java.util.Enumeration |
getTokens()
Get all the column token names for a table. |
boolean |
isFilterColumn(java.lang.String token)
Is the column selectable on the edit dynamic group (filter) panel? |
boolean |
isMappedColumn(java.lang.String token)
Are the column values mapped to translated values for queries? |
void |
removeColumn(java.lang.String token)
Deprecated. |
protected void |
setKeyNum(java.lang.String token,
int keyNum)
This method is protected as an implementation side effect. |
java.lang.String |
toString()
Convert ColumnData to String for debug |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGDbColumnData()
Method Detail |
public java.util.Enumeration getColumns()
public java.util.Enumeration getTokens()
public java.util.Enumeration getColumnIds()
public void addColumn(TWGDbColumn column)
column
- - the column to be added.TWGDbColumn
public void removeColumn(java.lang.String token) throws TWGDbException
token
-
TWGDbException
public int columnSize()
public TWGDbColumn getColumn(java.lang.String token) throws TWGDbException
token
- - column token nmae
TWGDbException
- if column is not foundTWGDbColumn
public TWGDbColumn getColumnByColumnRealName(java.lang.String realName) throws TWGDbException
realName
- - column real nmae
TWGDbException
- if column is not foundTWGDbColumn
public int getColumnType(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
TWGDatabaseConstants
public java.lang.String getRealColumnName(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic java.lang.String getDisplayName(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic java.lang.Integer getColumnLength(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic java.lang.Object getDefaultValue(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic boolean getKey(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic int getColumnId(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic java.lang.String getTokenForId(java.lang.Integer columnId)
columnId
- - column number
public java.lang.String getTokenForId(int columnId)
columnId
- - column number
public int getKeyNum(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundprotected void setKeyNum(java.lang.String token, int keyNum) throws TWGDbException
Set the number in key. If the column isn't part of the key, set 0.
token
- - column token namekeyNum
- - key number, or 0 if column is not in the key
TWGDbException
- if the column is not foundpublic boolean isFilterColumn(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic boolean isMappedColumn(java.lang.String token) throws TWGDbException
token
- - column token name
TWGDbException
- if the column is not foundpublic java.util.Vector getColumnTypes() throws TWGDbException
TWGDbException
TWGDatabaseConstants
public java.util.Vector getRealColumnNames() throws TWGDbException
TWGDbException
public java.util.Vector getTokenColumnNames() throws TWGDbException
TWGDbException
public java.util.Vector getColumnLengths() throws TWGDbException
TWGDbException
public java.util.Vector getFilterColumns(java.util.Locale loc, TWGDatabaseTable table) throws TWGDbException
loc
- - the Locale for translatingtable
- - a reference to the table
TWGDbException
public java.util.Vector getDefaultValues() throws TWGDbException
TWGDbException
public java.util.Vector getKeys()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |