DSRG.VKB
Class Condition_Component
java.lang.Object
|
+--DSRG.VKB.View_Component
|
+--DSRG.VKB.Condition_Component
- public class Condition_Component
- extends View_Component
- implements java.io.Serializable, java.lang.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.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
cond
Condition cond
Condition_Component
public Condition_Component()
- Default Construction
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.
setCondition
public void setCondition(Condition c)
- Set Condition. Could be Local_Condition or Join_Condition
getCondition
public Condition getCondition()
- get Condition
toString
public java.lang.String toString()
- Display this condition component
- Overrides:
- toString in class java.lang.Object
getRelations
public java.util.Vector getRelations()
- Get Relations of this condition components
- Returns:
- A vector of relations, at most two.
clone
public java.lang.Object clone()
- Clone the Condition_Component.
- Overrides:
- clone in class View_Component