All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class DSRG.VKB.Condition_Component

java.lang.Object
   |
   +----DSRG.VKB.View_Component
           |
           +----DSRG.VKB.Condition_Component

public class Condition_Component
extends View_Component
implements Serializable, Cloneable
Condition View component. It's a part of WHERE clause. All the condition here, should be sorted in one direction.

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 cond

Constructor Index

 o Condition_Component()
Default Construction
 o Condition_Component(Condition)
Construct a Condition Component from an condition.

Method Index

 o clone()
Clone the Condition_Component.
 o getCondition()
get Condition
 o getRelations()
Get Relations of this condition components
 o setCondition(Condition)
Set Condition.
 o toString()
Display this condition component

Variables

 o cond
 Condition cond

Constructors

 o Condition_Component
 public Condition_Component()
Default Construction

 o Condition_Component
 public Condition_Component(Condition cd)
Construct a Condition Component from an condition. The default parameters are all true.

Parameters:
cd - The condition of this component.

Methods

 o setCondition
 public void setCondition(Condition c)
Set Condition. Could be Local_Condition or Join_Condition

 o getCondition
 public Condition getCondition()
get Condition

 o toString
 public String toString()
Display this condition component

Overrides:
toString in class Object
 o getRelations
 public Vector getRelations()
Get Relations of this condition components

Returns:
A vector of relations, at most two.
 o clone
 public Object clone()
Clone the Condition_Component.

Overrides:
clone in class View_Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index