AR System Java API

com.bmc.arsys.api
Class RelationalOperationInfo

java.lang.Object
  extended by com.bmc.arsys.api.RelationalOperationInfo
All Implemented Interfaces:
IARQualifierOperand, Serializable, Cloneable

public class RelationalOperationInfo
extends Object
implements IARQualifierOperand, Cloneable, Serializable

The RelationalOperationInfo class represents any relational operation between any ArithmeticOrRelationalOperand objects. It consists of a tag identifying the operation type and two operands specifying the values to compare.

Note This operand can be used in ArithmeticOperationInfo operations as well.

See Also:
Serialized Form

Field Summary
static int AR_REL_OP_EQUAL
          Constants.AR_REL_OP_EQUAL tests whether the left operand is equal to the right operand.
static int AR_REL_OP_GREATER
          Constants.AR_REL_OP_GREATER tests whether the left operand is greater than the right operand.
static int AR_REL_OP_GREATER_EQUAL
          Constants.AR_REL_OP_GREATER_EQUAL tests whether the left operand is greater than or is equal to the right operand.
static int AR_REL_OP_IN
          Constants.AR_REL_OP_IN tests whether the left operand is in a subset of data returned by the right operand.
static int AR_REL_OP_LESS
          Constants.AR_REL_OP_LESS tests whether the left operand is less than the right operand.
static int AR_REL_OP_LESS_EQUAL
          Constants.AR_REL_OP_LESS_EQUAL tests whether the left operand is less than or is equal to the right operand.
static int AR_REL_OP_LIKE
          Constants.AR_REL_OP_LIKE tests whether the left operand is LIKE the pattern defined by the right operand.
static int AR_REL_OP_NOT_EQUAL
          Constants.AR_REL_OP_NOT_EQUAL tests whether the left operand is not equal to the right operand.
static int AR_REL_OP_NOT_IN
          Constants.AR_REL_OP_NOT_IN tests whether the left operand is not in a subset of data returned by the right operand.
 
Constructor Summary
RelationalOperationInfo()
           
RelationalOperationInfo(int operation, ArithmeticOrRelationalOperand op1, ArithmeticOrRelationalOperand op2)
           
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self
 boolean equals(Object obj)
          Use this method for checking equality between the current object and the provided one.
 ArithmeticOrRelationalOperand getLeftOperand()
          Returns value of left operand.
 int getOperation()
          Returns conditional operation used.
 ArithmeticOrRelationalOperand getRightOperand()
          Returns value of right operand.
 int hashCode()
          Returns the hash code value for this instance of the current class.
 void setLeftOperand(ArithmeticOrRelationalOperand op)
          Sets value of left operand.
 void setOperation(int operation)
          Sets conditional operation used.
 void setRightOperand(ArithmeticOrRelationalOperand op)
          Sets value of right operand.
 String toString()
          Returns a string description of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AR_REL_OP_EQUAL

public static final int AR_REL_OP_EQUAL
Constants.AR_REL_OP_EQUAL tests whether the left operand is equal to the right operand.

See Also:
Constant Field Values

AR_REL_OP_GREATER

public static final int AR_REL_OP_GREATER
Constants.AR_REL_OP_GREATER tests whether the left operand is greater than the right operand.

See Also:
Constant Field Values

AR_REL_OP_GREATER_EQUAL

public static final int AR_REL_OP_GREATER_EQUAL
Constants.AR_REL_OP_GREATER_EQUAL tests whether the left operand is greater than or is equal to the right operand.

See Also:
Constant Field Values

AR_REL_OP_LESS

public static final int AR_REL_OP_LESS
Constants.AR_REL_OP_LESS tests whether the left operand is less than the right operand.

See Also:
Constant Field Values

AR_REL_OP_LESS_EQUAL

public static final int AR_REL_OP_LESS_EQUAL
Constants.AR_REL_OP_LESS_EQUAL tests whether the left operand is less than or is equal to the right operand.

See Also:
Constant Field Values

AR_REL_OP_NOT_EQUAL

public static final int AR_REL_OP_NOT_EQUAL
Constants.AR_REL_OP_NOT_EQUAL tests whether the left operand is not equal to the right operand.

See Also:
Constant Field Values

AR_REL_OP_LIKE

public static final int AR_REL_OP_LIKE
Constants.AR_REL_OP_LIKE tests whether the left operand is LIKE the pattern defined by the right operand.

See Also:
Constant Field Values

AR_REL_OP_IN

public static final int AR_REL_OP_IN
Constants.AR_REL_OP_IN tests whether the left operand is in a subset of data returned by the right operand.

See Also:
Constant Field Values

AR_REL_OP_NOT_IN

public static final int AR_REL_OP_NOT_IN
Constants.AR_REL_OP_NOT_IN tests whether the left operand is not in a subset of data returned by the right operand.

See Also:
Constant Field Values
Constructor Detail

RelationalOperationInfo

public RelationalOperationInfo()
Throws:
Default - constructor

RelationalOperationInfo

public RelationalOperationInfo(int operation,
                               ArithmeticOrRelationalOperand op1,
                               ArithmeticOrRelationalOperand op2)
                        throws IllegalArgumentException
Throws:
IllegalArgumentException - if invalid operation
Method Detail

setOperation

public void setOperation(int operation)
Sets conditional operation used.


setLeftOperand

public void setLeftOperand(ArithmeticOrRelationalOperand op)
Sets value of left operand.


setRightOperand

public void setRightOperand(ArithmeticOrRelationalOperand op)
Sets value of right operand.


getLeftOperand

public ArithmeticOrRelationalOperand getLeftOperand()
Returns value of left operand.


getRightOperand

public ArithmeticOrRelationalOperand getRightOperand()
Returns value of right operand.


getOperation

public int getOperation()
Returns conditional operation used.


clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

equals

public boolean equals(Object obj)
Use this method for checking equality between the current object and the provided one. The result is true only if the argument is not null, is of the same type and represents the same content.

Overrides:
equals in class Object
Parameters:
obj - the object that we are comparing to
Returns:
returns a boolean that tells if the two objects equal

hashCode

public int hashCode()
Returns the hash code value for this instance of the current class. This method is supported as required by the general contract of Object.hashCode, for the benefit of hash tables such as those provided by java.util.Hashtable.

Overrides:
hashCode in class Object
Returns:
returns the hash code for this instance

toString

public String toString()
Returns a string description of the object.

Overrides:
toString in class Object

AR System Java API

© Copyright 2006, 2007 BMC Software, Inc.