com.sybase.persistence
Class CompositeTest

java.lang.Object
  extended by com.sybase.persistence.TestCriteria
      extended by com.sybase.persistence.CompositeTest
All Implemented Interfaces:
Filter

public class CompositeTest
extends TestCriteria

Contains composite filter information for getting data from Mobile Business Objects.


Field Summary
static int AND
           
static int NOT
           
static int OR
           
 
Constructor Summary
CompositeTest()
          Sybase internal use only.
CompositeTest(Filter[] filters, int compositionType)
          Deprecated.  
 
Method Summary
protected  void _init()
           
 void add(TestCriteria operand)
          Add the test criteria for compsite tests
 void addFilter(Filter filter)
          Add the test criteria for compsite tests
 Filter get(int index)
          Return the operands at the specified position of the filters
 int getCompositionType()
          Deprecated.  
 int getCount()
          Deprecated.  
 TestCriteriaList getOperands()
          Sybase internal use only.
 int getOperator()
          Get the operator type.
 CompositeTest initOperands(TestCriteriaList _operands)
          Sybase internal use only.
 CompositeTest initOperator(int _operator)
          Sybase internal use only.
 void removeFilter(Filter filter)
          Remove the test criteria from the critera lists
 void removeFilterAt(int index)
          Remove the test criteria from the test critera lists at the specified position
 void set(int index, Filter filter)
          Set the operands at the specified position of the operands
 void setCompositionType(int compositionType)
          Deprecated.  
 void setOperands(TestCriteriaList _operands)
          set the test criterias for composite tests
 void setOperator(int _operator)
          Set the operator type.
 
Methods inherited from class com.sybase.persistence.TestCriteria
and, not, or
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT

public static final int NOT
See Also:
Constant Field Values

AND

public static final int AND
See Also:
Constant Field Values

OR

public static final int OR
See Also:
Constant Field Values
Constructor Detail

CompositeTest

public CompositeTest()
Sybase internal use only.


CompositeTest

public CompositeTest(Filter[] filters,
                     int compositionType)
Deprecated. 

Method Detail

initOperator

public CompositeTest initOperator(int _operator)
Sybase internal use only.


getOperator

public int getOperator()
Get the operator type. Like NOT, AND, OR


setOperator

public void setOperator(int _operator)
Set the operator type. Like NOT, AND, OR


initOperands

public CompositeTest initOperands(TestCriteriaList _operands)
Sybase internal use only.


getCompositionType

public int getCompositionType()
Deprecated. 


setCompositionType

public void setCompositionType(int compositionType)
Deprecated. 


getOperands

public TestCriteriaList getOperands()
Sybase internal use only.


setOperands

public void setOperands(TestCriteriaList _operands)
set the test criterias for composite tests

Parameters:
_operands - test criterials for composite tests

add

public void add(TestCriteria operand)
Add the test criteria for compsite tests

Parameters:
operand - the filter to add

getCount

public int getCount()
Deprecated. 

Get the count of the operands


get

public Filter get(int index)
Return the operands at the specified position of the filters

Parameters:
index - index of the filter to return

set

public void set(int index,
                Filter filter)
Set the operands at the specified position of the operands

Parameters:
index - index of the filter
filter - the filter operand to set

addFilter

public void addFilter(Filter filter)
Add the test criteria for compsite tests

Parameters:
filter - the filter to add

removeFilter

public void removeFilter(Filter filter)
Remove the test criteria from the critera lists

Parameters:
filter - the filter to remove

removeFilterAt

public void removeFilterAt(int index)
Remove the test criteria from the test critera lists at the specified position

Parameters:
index - the index of the test critera to remove

_init

protected void _init()
Overrides:
_init in class TestCriteria