|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbColumn
com.tivoli.twg.engine.TWGDbCharColumn
com.tivoli.twg.engine.TWGDbTCPIPColumn
The class is new in Director v2.1. TWGDbTCPIPColumn is a container class that encapsulates a database table column where the column type is Character and the column stores TCPIP addresses .
Field Summary |
---|
Fields inherited from class com.tivoli.twg.engine.TWGDbCharColumn |
---|
columnDisplayValues, columnDistinctValues, columnValues, NULL |
Constructor Summary | |
---|---|
TWGDbTCPIPColumn(java.lang.String realName,
java.lang.String tokenName,
int colLength)
Create a TCPIP column TWGDbTCPIPColumn |
|
TWGDbTCPIPColumn(TWGDbTCPIPColumn copyCol)
Create a TWGDbCharColumn by copying another one |
Method Summary | |
---|---|
boolean |
compareTo(DataValue dv,
TWGDbColumnFilter colFilter)
This method is used by TWGDatabaseTable to support columns that require specialized processing for filters. |
protected TWGDbColumn |
createFilterColumn(java.util.Locale loc,
TWGDatabaseTable table)
Create a filter version of this column where the display name is translated. |
java.lang.String[] |
getDisplayValues()
Get display values for the distinct column values which are the same as the real values because TCPIP addresses will not be translated. |
protected java.io.Serializable |
getDistinctValues(java.util.Locale loc,
TWGDatabaseTable table)
The method is only to be used on Director engine. |
IntValueSet |
getMatchingMoids(TWGFilterConstraint filterConstraint,
TWGDbConnection conn,
IntValueSet moids)
TCPIP values are stored in the database as strings. |
java.lang.String[] |
getValues()
Gets the array of distinct TCPIP values for this column. |
protected void |
insertDistinctValue(java.lang.Object value)
This method is protected as an implementation side effect. |
protected void |
replaceDistinctValues(java.sql.ResultSet rs)
This method is protected as an implementation side effect. |
protected void |
replaceDistinctValues(TWGStringArray newValues)
This method is protected as an implementation side effect. |
protected void |
setDistinctValues(java.lang.Object vals)
Set column distinct values |
void |
setDistinctValues(TWGStringArray values)
Set the distinct values for this column to a constant set. |
void |
setInitialDistinctValues(TWGInteger dv)
Set the initial distinct values for this column. |
void |
setInitialDistinctValues(TWGIntegerArray dv)
Set the initial distinct values for this column. |
void |
sortValues(java.util.Locale loc)
The TCPIP column can have both ip address as strings and non ip values. |
Methods inherited from class com.tivoli.twg.engine.TWGDbCharColumn |
---|
setDefaultValue, setInitialDistinctValues, setInitialDistinctValues, setMappedColumn, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGDbTCPIPColumn(java.lang.String realName, java.lang.String tokenName, int colLength)
realName
- -- the actual column name for the tabletokenName
- -- a nickname used to refer to the columncolLength
- -- the length for the columnpublic TWGDbTCPIPColumn(TWGDbTCPIPColumn copyCol)
copyCol
- -- the column to be copiedMethod Detail |
protected TWGDbColumn createFilterColumn(java.util.Locale loc, TWGDatabaseTable table)
createFilterColumn
in class TWGDbCharColumn
loc
- - the locale to use for translationstable
- - the TWGDatabaseTable that this column belongs to
protected java.io.Serializable getDistinctValues(java.util.Locale loc, TWGDatabaseTable table)
getDistinctValues
in class TWGDbCharColumn
loc
- - Localetable
- - a TWGDatabaseTable instance. The column is in the table.
protected void setDistinctValues(java.lang.Object vals)
setDistinctValues
in class TWGDbCharColumn
protected void replaceDistinctValues(java.sql.ResultSet rs) throws TWGDbException
Replace the saved list of distinct values with a new set from a database query.
replaceDistinctValues
in class TWGDbCharColumn
rs
- - The query ResultSet.
-
- TWGDbException
TWGDbException
protected void replaceDistinctValues(TWGStringArray newValues)
Replace the saved list of distinct values with a new set
replaceDistinctValues
in class TWGDbCharColumn
newValues
- - The String containing the new valuesStringValueSet
public void sortValues(java.util.Locale loc)
sortValues
in class TWGDbCharColumn
loc
- - locale to sort in.public java.lang.String[] getValues()
getValues
in class TWGDbCharColumn
public java.lang.String[] getDisplayValues()
getDisplayValues
in class TWGDbCharColumn
protected void insertDistinctValue(java.lang.Object value)
Insert a distinct TCPIP value into the list of distinct values.
insertDistinctValue
in class TWGDbCharColumn
value
- - The TCPIP value to be inserted as an string.public void setDistinctValues(TWGStringArray values)
This method should be called only in the create method of a TWGDatabaseTable subclass when defining the table
setDistinctValues
in class TWGDbCharColumn
values
- - The String array containing the constant distinct valuesStringValueSet
public void setInitialDistinctValues(TWGInteger dv)
dv
- - TWGString datavaluepublic void setInitialDistinctValues(TWGIntegerArray dv)
dv
- - TWGStringArray datavaluepublic IntValueSet getMatchingMoids(TWGFilterConstraint filterConstraint, TWGDbConnection conn, IntValueSet moids)
getMatchingMoids
in class TWGDbColumn
conn
- - database connection to use.filterConstraint
- - the filter constraint.moids
- - this is the list of moids to check. If the list is null then
check against all moids.
public boolean compareTo(DataValue dv, TWGDbColumnFilter colFilter)
compareTo
in class TWGDbColumn
dv
- - the data value to comparecolFilter
- - the column filter to compare to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |