All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DSRG.VKB.Condition

java.lang.Object
   |
   +----DSRG.VKB.Condition

public abstract class Condition
extends Object
implements Serializable, 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.


Variable Index

 o left
First operand
 o op
Operator of condition

Constructor Index

 o Condition()

Method Index

 o clone()
Abstract function to clone() a condition.
 o contains(Relation)
Abstract function to check if this condition contains specific relation
 o contains(String)
Abstract function to check if this condition contains specific attribute
 o getLeft()
Return left attribute.
 o getLeftName()
Get Left Attribute Name in format "IS.R.A"
 o getNoIS()
Abstract function to get String of Condition with out IS info in it.
 o getOperator()
Get operator
 o setAttribute(Attribute)
Set Attribute
 o setOperand(Object)
Abstract function to set second operand
 o setOperator(Operator)
Set operator
 o toString()
Abstract function return String

Variables

 o op
 Operator op
Operator of condition

 o left
 Attribute left
First operand

Constructors

 o Condition
 public Condition()

Methods

 o setOperator
 public void setOperator(Operator oper)
Set operator

 o getOperator
 public Operator getOperator()
Get operator

 o setAttribute
 public void setAttribute(Attribute attr)
Set Attribute

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

 o getLeft
 public Attribute getLeft()
Return left attribute.

 o setOperand
 public abstract void setOperand(Object right)
Abstract function to set second operand

 o toString
 public abstract String toString()
Abstract function return String

Overrides:
toString in class Object
 o contains
 public abstract boolean contains(String attr_name)
Abstract function to check if this condition contains specific attribute

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

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

 o clone
 public abstract Object clone()
Abstract function to clone() a condition.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index