|
|||||||||||
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.TWGDbDoubleColumnFilter
TWGDbDoubleColumnFilter encapsulates the parameters used to filter rows in a database table based on the values of a column that contains values of type double. It is used for both queries and dynamic groups.
Constructor Summary | |
---|---|
protected |
TWGDbDoubleColumnFilter(byte[] buf,
int offset,
java.lang.String version)
This method is protected as an implementation side effect. |
|
TWGDbDoubleColumnFilter(java.lang.String columnFullName,
java.lang.String operation)
Constructor for the TWGDbDoubleColumnFilter class. |
|
TWGDbDoubleColumnFilter(java.lang.String columnFullName,
java.lang.String operation,
double[] column_values)
Constructor for the TWGDbDoubleColumnFilter class. |
|
TWGDbDoubleColumnFilter(java.lang.String tableName,
java.lang.String columnName,
java.lang.String operation)
Constructor for the TWGDbDoubleColumnFilter class. |
|
TWGDbDoubleColumnFilter(java.lang.String tableName,
java.lang.String columnName,
java.lang.String operation,
double[] column_values)
Constructor for the TWGDbDoubleColumnFilter class. |
|
TWGDbDoubleColumnFilter(TWGDbDoubleColumnFilter copyColFilter)
Create a TWGDbDoubleColumnFilter by copying another one |
Method Summary | |
---|---|
void |
addColumnValue(double 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. |
double |
getValueAt(int column_index)
Get the value at given index. |
double[] |
getValues()
Get a copy of value array. |
java.util.Vector |
getValuesAsObject()
Get the column values as Objects. |
int |
getValueSize()
Get the number of values |
int |
setIntelByteBufferParms(byte[] buf,
int offset)
This method is public as an implementation side effect. |
java.lang.String |
toString()
Convert column filter 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 TWGDbDoubleColumnFilter(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 TWGDbDoubleColumnFilter(java.lang.String tableName, java.lang.String columnName, java.lang.String operation) throws TWGDbException
tableName
- - table token namecolumnName
- - column token nameoperation
- - 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 TWGDbDoubleColumnFilter(java.lang.String columnFullName, java.lang.String operation, double[] 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
- - a double array of values
TWGDbException
TWGDbColumnOperators
public TWGDbDoubleColumnFilter(java.lang.String tableName, java.lang.String columnName, java.lang.String operation, double[] 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 double array of values
TWGDbException
public TWGDbDoubleColumnFilter(TWGDbDoubleColumnFilter copyColFilter)
copyColFilter
- -- the column filter to be copiedprotected TWGDbDoubleColumnFilter(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 |
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 void addColumnValue(double column_value) throws TWGDbException
column_value
- - the value to be added
TWGDbException
public int getValueSize()
getValueSize
in class TWGDbColumnFilter
public double getValueAt(int column_index)
column_index
- - the index
public double[] 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 |