|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.engine.TWGDbColumnFilter
com.tivoli.twg.engine.TWGDbIntegerColumnFilter
TWGDbIntegerColumnFilter encapsulates the parameters used to filter rows in a database table based on the values of a column that contains values of type integer. It is used for both queries and dynamic groups.
Constructor Summary | |
---|---|
protected |
TWGDbIntegerColumnFilter(byte[] buf,
int offset,
java.lang.String version)
This method is protected as an implementation side effect. |
|
TWGDbIntegerColumnFilter(java.lang.String columnFullName,
java.lang.String operation)
Constructor for the TWGDbIntegerColumnFilter class. |
|
TWGDbIntegerColumnFilter(java.lang.String columnFullName,
java.lang.String operation,
int[] column_values)
Constructor for the TWGDbIntegerColumnFilter class. |
|
TWGDbIntegerColumnFilter(java.lang.String tableName,
java.lang.String columnName,
java.lang.String operation)
Constructor for the TWGDbIntegerColumnFilter class. |
|
TWGDbIntegerColumnFilter(java.lang.String tableName,
java.lang.String columnName,
java.lang.String operation,
int[] column_values)
Constructor for the TWGDbIntegerColumnFilter class. |
|
TWGDbIntegerColumnFilter(TWGDbIntegerColumnFilter copyColFilter)
Create a TWGDbIntegerColumnFilter by copying another one |
Method Summary | |
---|---|
void |
addColumnValue(int column_value)
Add a value to the filter for the column. |
protected TWGDbColumnFilter |
createFilterInfo(java.util.Locale loc)
This method should be called only from within the Director engine. |
int |
getDataValueType()
Get the type of data in this column filter. |
protected int |
getIntelByteBufferSize()
This method is protected as an implementation side effect. |
int |
getValueAt(int column_index)
Get the value at given index. |
int[] |
getValues()
Get copy of value array. |
java.util.Vector |
getValuesAsObject()
Get the column values as Objects. |
int |
getValueSize()
Get the number of values in this column filter |
int |
setIntelByteBufferParms(byte[] buf,
int offset)
This method is public as an implementation side effect. |
java.lang.String |
toString()
Convert to String for debug |
Methods inherited from class com.tivoli.twg.engine.TWGDbColumnFilter |
---|
allowsGTLT, checkOperator, create, getColumnDisplayName, getColumnFullName, getColumnName, getColumnType, getOperator, getTableDisplayName, getTableName, setFilterInfo, setOperator, verify |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TWGDbIntegerColumnFilter(java.lang.String columnFullName, java.lang.String operation) throws TWGDbException
columnFullName
- - table token name plus column token name. Format
is "tableName.columnName".operation
- - operator for the filter. Valid values are:
TWGDbColumnOperators.EQUAL
NOT_EQUAL
GREATER_THAN
GREATER_THAN_OR_EQUAL
LESS_THAN
LESS_THAN_OR_EQUAL
TWGDbException
TWGDbColumnOperators
public TWGDbIntegerColumnFilter(java.lang.String tableName, java.lang.String columnName, java.lang.String operation) throws TWGDbException
columnName
- - the token column name.tableName
- - the token table name.operation
- - operator for the filter. Valid values are:
TWGDbColumnOperators.EQUAL
NOT_EQUAL
GREATER_THAN
GREATER_THAN_OR_EQUAL
LESS_THAN
LESS_THAN_OR_EQUAL
TWGDbException
TWGDbColumnOperators
public TWGDbIntegerColumnFilter(java.lang.String columnFullName, java.lang.String operation, int[] column_values) throws TWGDbException
columnFullName
- - table token name plus column token name. Format is "tableName.columnName".operation
- - operator for the filter. Valid values are:
TWGDbColumnOperators.EQUAL
NOT_EQUAL
GREATER_THAN
GREATER_THAN_OR_EQUAL
LESS_THAN
LESS_THAN_OR_EQUALcolumn_values
- - an integer array of values
TWGDbException
TWGDbColumnOperators
public TWGDbIntegerColumnFilter(java.lang.String tableName, java.lang.String columnName, java.lang.String operation, int[] column_values) throws TWGDbException
columnName
- - the token column name.tableName
- - the token table name.operation
- - operator for the filter. Valid values are:
TWGDbColumnOperators.EQUAL
NOT_EQUAL
GREATER_THAN
GREATER_THAN_OR_EQUAL
LESS_THAN
LESS_THAN_OR_EQUALcolumn_values
- - an integer array of values
TWGDbException
TWGDbColumnOperators
public TWGDbIntegerColumnFilter(TWGDbIntegerColumnFilter copyColFilter)
copyColFilter
- -- the column filter to be copiedprotected TWGDbIntegerColumnFilter(byte[] buf, int offset, java.lang.String version) throws TWGDbException
Constructor to create a column filter from an intel byte buffer format byte array
buf
- - the byte arrayoffset
- - the offset in the buffer that the column filter starts atversion
- - the database version
-
- TWGDbException thrown for version errors
-
- TWGDbParameterException thrown for parameter errors
TWGDbException
Method Detail |
public void addColumnValue(int column_value) throws TWGDbException
column_value
- - the value to be added
TWGDbException
protected TWGDbColumnFilter createFilterInfo(java.util.Locale loc) throws TWGDbException
Create a filter info version of this column filter. Display names are initialized.
createFilterInfo
in class TWGDbColumnFilter
loc
- - the locale to be used for translations.
TWGDbException
public int getValueSize()
getValueSize
in class TWGDbColumnFilter
public int getValueAt(int column_index)
column_index
- - the index
public int[] getValues()
public java.util.Vector getValuesAsObject()
getValuesAsObject
in class TWGDbColumnFilter
public int getDataValueType()
getDataValueType
in class TWGDbColumnFilter
DataValue
public int setIntelByteBufferParms(byte[] buf, int offset) throws TWGDbException
Write an intel byte buffer version of this column filter to a byte array at the offset specified.
setIntelByteBufferParms
in class TWGDbColumnFilter
buf
- - byte array in which to write the dataoffset
- - offset into the array to start writing
-
- TWGDbException thrown for parameter or version errors
TWGDbException
protected int getIntelByteBufferSize()
getIntelByteBufferSize
in class TWGDbColumnFilter
public java.lang.String toString()
toString
in class TWGDbColumnFilter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |