planetj.dataengine.operation
Class OperationSet

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.ArrayList
                    |
                    +--planetj.dataengine.operation.OperationSet
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class OperationSet
extends ArrayList

An OperationSet is a group of Operations which have been grouped together due to common attributes or qualities. Mostly used for display purposes.

Author:
PlanetJ Corp.
See Also:
Serialized Form

Field Summary
static Comparator DISPLAY_ORDER_COMPARATOR
           
static short OPERATIONS
          Indicates that the OperationSet objects should contain Operations objects
 
Constructor Summary
OperationSet()
           
 
Method Summary
static List getDisplayableOperationSets(Application application, ExecutingContext ec)
          Get a List containing OperationSet objects.
 String getName()
          Gets the name of this OperationSet
static List getOperationSets(Application application)
          Get a List containing OperationSet objects.
 boolean isContainsDisplayableOperation(ExecutingContext executingContext)
          Test to see if this OperationSet contains an Operation which may be displayable
 boolean isContainSQLOperation()
          Deprecated. no longer used
 void setName(String name)
          Sets the name of this OperationSet
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Field Detail

OPERATIONS

public static final short OPERATIONS
Indicates that the OperationSet objects should contain Operations objects

See Also:
Constant Field Values

DISPLAY_ORDER_COMPARATOR

public static final Comparator DISPLAY_ORDER_COMPARATOR
Constructor Detail

OperationSet

public OperationSet()
Method Detail

getName

public String getName()
Gets the name of this OperationSet


getOperationSets

public static List getOperationSets(Application application)
                             throws CMException
Get a List containing OperationSet objects. Each OperationSet object will contain the operations for the given Application.

Parameters:
application - Application to get Operations from.
CMException

isContainsDisplayableOperation

public boolean isContainsDisplayableOperation(ExecutingContext executingContext)
Test to see if this OperationSet contains an Operation which may be displayable


isContainSQLOperation

public boolean isContainSQLOperation()
Deprecated. no longer used

Test to see if this OperationSet contains an Operation with a type of SQL.


setName

public void setName(String name)
Sets the name of this OperationSet


getDisplayableOperationSets

public static List getDisplayableOperationSets(Application application,
                                               ExecutingContext ec)
                                        throws CMException
Get a List containing OperationSet objects. Each OperationSet object will contain the operations for the given Application.

Parameters:
application - Application to get Operations from.
CMException