EVEDemo.SWEEP
Class SelectList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--EVEDemo.SWEEP.SelectList

public class SelectList
extends java.util.Vector
implements java.io.Serializable

Select List is a list of LOCAL Conditions. It will include a Vector of LOCAL Conditions.

See Also:
Serialized Form

Field Summary
(package private)  java.util.Vector LCList
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData, serialVersionUID
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SelectList()
           
 
Method Summary
 void addLocalCondition(LocalCondition LC)
          Add Local Condition to this Select List.
 void dropLocalCondition(LocalCondition LC)
          Drop Local Condition from this Select List.
 java.lang.String getSQL()
          Get SQL from SelectList.
private  boolean isConsistent(LocalCondition LC)
          Check Consistency with LC with LCList.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, ensureCapacityHelper, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

LCList

java.util.Vector LCList
Constructor Detail

SelectList

public SelectList()
Method Detail

addLocalCondition

public void addLocalCondition(LocalCondition LC)
                       throws java.lang.Exception
Add Local Condition to this Select List. This will do the Consistency checking first then, if consistent, I will add it in the LocalCondition List. Local Condition must be Unique.

isConsistent

private boolean isConsistent(LocalCondition LC)
                      throws java.lang.Exception
Check Consistency with LC with LCList.

dropLocalCondition

public void dropLocalCondition(LocalCondition LC)
                        throws java.lang.Exception
Drop Local Condition from this Select List. The reference of LC must be in the LCList, It will not be delete from the LCList if they only have same value.

getSQL

public java.lang.String getSQL()
Get SQL from SelectList. E.g. WHERE R.A > 5 AND R.B < 10, sql will be: R.A > 5 AND R.B < 10