DSRG.VKB
Class Condition

java.lang.Object
  |
  +--DSRG.VKB.Condition
Direct Known Subclasses:
Join_Condition, Local_Condition

public abstract class Condition
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

Abstract class of Local_Condition and Join_Conditon.

It has the common part: Operator, and left attribute. It follows the rules:
It means Left one is attribute, right one could be a number of another attribute If that is another attribute, it sort in a way that operator is "<" or "<=". If the operator is "==" or "!=", we sorted in the alphabet order.

See Also:
Serialized Form

Field Summary
(package private)  Attribute left
          First operand
(package private)  Operator op
          Operator of condition
 
Constructor Summary
Condition()
           
 
Method Summary
abstract  java.lang.Object clone()
          Abstract function to clone() a condition.
abstract  boolean contains(Relation rel)
          Abstract function to check if this condition contains specific relation
abstract  boolean contains(java.lang.String attr_name)
          Abstract function to check if this condition contains specific attribute
 Attribute getLeft()
          Return left attribute.
 java.lang.String getLeftName()
          Get Left Attribute Name in format "IS.R.A"
abstract  java.lang.String getNoIS()
          Abstract function to get String of Condition with out IS info in it.
 Operator getOperator()
          Get operator
 void setAttribute(Attribute attr)
          Set Attribute
abstract  void setOperand(java.lang.Object right)
          Abstract function to set second operand
 void setOperator(Operator oper)
          Set operator
abstract  java.lang.String toString()
          Abstract function return String
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

op

Operator op
Operator of condition

left

Attribute left
First operand
Constructor Detail

Condition

public Condition()
Method Detail

setOperator

public void setOperator(Operator oper)
Set operator

getOperator

public Operator getOperator()
Get operator

setAttribute

public void setAttribute(Attribute attr)
Set Attribute

getLeftName

public java.lang.String getLeftName()
Get Left Attribute Name in format "IS.R.A"

getLeft

public Attribute getLeft()
Return left attribute.

setOperand

public abstract void setOperand(java.lang.Object right)
Abstract function to set second operand

toString

public abstract java.lang.String toString()
Abstract function return String
Overrides:
toString in class java.lang.Object

contains

public abstract boolean contains(java.lang.String attr_name)
Abstract function to check if this condition contains specific attribute

contains

public abstract boolean contains(Relation rel)
Abstract function to check if this condition contains specific relation

getNoIS

public abstract java.lang.String getNoIS()
Abstract function to get String of Condition with out IS info in it.

clone

public abstract java.lang.Object clone()
Abstract function to clone() a condition.
Overrides:
clone in class java.lang.Object