com.tivoli.twg.engine
Class TWGDbColumnOperators

java.lang.Object
  extended bycom.tivoli.twg.engine.TWGDbColumnOperators
All Implemented Interfaces:
java.io.Serializable

public class TWGDbColumnOperators
extends java.lang.Object
implements java.io.Serializable

TWGDbColumnOperators defines the operators that are available to interrogate database table columns for queries and dynamic groups.

See Also:
Serialized Form

Field Summary
static java.lang.String EQUAL
          The valid logical operators for table queries
static java.lang.String GREATER_THAN
           
static java.lang.String GREATER_THAN_OR_EQUAL
           
static java.lang.String IN
           
static java.lang.String LESS_THAN
           
static java.lang.String LESS_THAN_OR_EQUAL
           
static java.lang.String NOT_EQUAL
           
static java.lang.String NOT_IN
           
 
Constructor Summary
TWGDbColumnOperators(java.util.Locale loc)
          Constructor for the TWGDbColumnOperators class.
 
Method Summary
 java.lang.String getBundleString(java.lang.String bundleKey, java.util.Locale loc)
          Look up a value in a resource bundle
 java.util.Vector getGTLTOperators()
          Get the greater than / less than operators for table columns.
 java.util.Vector getGTLTSymbols()
          Get the symbols to be displayed for the greater than / less than operators
 java.util.Vector getGTLTText()
          Get the descriptive text to be displayed for the greater than / less than operators
 java.util.Vector getStandardOperators()
          Get the standard operators for table columns, which are all the operators except for the greater than and less than type.
 java.util.Vector getStandardSymbols()
          Get the symbols to be displayed for the standard operators
 java.util.Vector getStandardText()
          Get the descriptive text to be displayed for the standard operators
 java.lang.String toString()
          Convert object to String for debug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EQUAL

public static final java.lang.String EQUAL
The valid logical operators for table queries

See Also:
Constant Field Values

NOT_EQUAL

public static final java.lang.String NOT_EQUAL
See Also:
Constant Field Values

IN

public static final java.lang.String IN
See Also:
Constant Field Values

NOT_IN

public static final java.lang.String NOT_IN
See Also:
Constant Field Values

GREATER_THAN

public static final java.lang.String GREATER_THAN
See Also:
Constant Field Values

GREATER_THAN_OR_EQUAL

public static final java.lang.String GREATER_THAN_OR_EQUAL
See Also:
Constant Field Values

LESS_THAN

public static final java.lang.String LESS_THAN
See Also:
Constant Field Values

LESS_THAN_OR_EQUAL

public static final java.lang.String LESS_THAN_OR_EQUAL
See Also:
Constant Field Values
Constructor Detail

TWGDbColumnOperators

public TWGDbColumnOperators(java.util.Locale loc)
Constructor for the TWGDbColumnOperators class.

Parameters:
loc - - the locale to translate the operator descriptions
Method Detail

getBundleString

public java.lang.String getBundleString(java.lang.String bundleKey,
                                        java.util.Locale loc)
Look up a value in a resource bundle

Parameters:
loc - - locale for the bundle
Returns:
the string from the bundle. If not found, returns the empty string.

getStandardOperators

public java.util.Vector getStandardOperators()
Get the standard operators for table columns, which are all the operators except for the greater than and less than type. These operators used to define TWGDbColumnFilter subclass instances for queries and dynamic groups.

Returns:
a Vector containing the valid standard operators
See Also:
TWGDbColumnFilter

getGTLTOperators

public java.util.Vector getGTLTOperators()
Get the greater than / less than operators for table columns. These operators are used to define TWGDbColumnFilter subclass instances for queries and dynamic groups. The are valid for only columns that have the allowsGTLT attribute set.

Returns:
a Vector containing the valid standard operators

getStandardSymbols

public java.util.Vector getStandardSymbols()
Get the symbols to be displayed for the standard operators

Returns:
a Vector containing the symbols

getGTLTSymbols

public java.util.Vector getGTLTSymbols()
Get the symbols to be displayed for the greater than / less than operators

Returns:
a Vector containing the symbols

getStandardText

public java.util.Vector getStandardText()
Get the descriptive text to be displayed for the standard operators

Returns:
a Vector containing the descriptive text

getGTLTText

public java.util.Vector getGTLTText()
Get the descriptive text to be displayed for the greater than / less than operators

Returns:
a Vector containing the descriptive text

toString

public java.lang.String toString()
Convert object to String for debug

Returns:
String with a textual description of the column filter.