wt.eff
Class QueryHelper

java.lang.Object
  extended bywt.eff.QueryHelper

public class QueryHelper
extends Object


Field Summary
(package private) static String AUTHORIZED_BY
           
(package private) static String BID
           
(package private) static String CONTEXT
           
(package private) static String CREATION
           
(package private) static String DELETION
           
(package private) static String MODIFIER
           
(package private) static String OID
           
private static String OR_KEY
           
(package private) static String PRED
           
(package private) static String TARGET
           
(package private) static String TYPE
           
 
Constructor Summary
QueryHelper()
           
 
Method Summary
static WhereExpression newCurrentEffCondition()
          Returns a condition selecting an Eff if it is current (i.e., it has not been deleted).
(package private) static WhereExpression newDifferentCreationCondition(FromClause fc, int effIdx)
           
private static QuerySpec newRelevantEffSubSelect(FromClause fc, int effIdx)
          Returns a new QuerySpec corresponding to a basic sub select of Eff objects to be used in an EXISTS expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OR_KEY

private static final String OR_KEY
See Also:
Constant Field Values

OID

static final String OID
See Also:
Constant Field Values

BID

static final String BID
See Also:
Constant Field Values

PRED

static final String PRED
See Also:
Constant Field Values

TARGET

static final String TARGET
See Also:
Constant Field Values

CONTEXT

static final String CONTEXT
See Also:
Constant Field Values

TYPE

static final String TYPE
See Also:
Constant Field Values

CREATION

static final String CREATION
See Also:
Constant Field Values

DELETION

static final String DELETION
See Also:
Constant Field Values

MODIFIER

static final String MODIFIER
See Also:
Constant Field Values

AUTHORIZED_BY

static final String AUTHORIZED_BY
See Also:
Constant Field Values
Constructor Detail

QueryHelper

public QueryHelper()
Method Detail

newRelevantEffSubSelect

private static QuerySpec newRelevantEffSubSelect(FromClause fc,
                                                 int effIdx)
                                          throws QueryException
Returns a new QuerySpec corresponding to a basic sub select of Eff objects to be used in an EXISTS expression. The OID of the Eff objects corresponding to the same type/version/context as the current row of the outer query are selected.

Throws:
QueryException

newCurrentEffCondition

public static WhereExpression newCurrentEffCondition()
                                              throws QueryException
Returns a condition selecting an Eff if it is current (i.e., it has not been deleted).

Throws:
QueryException

newDifferentCreationCondition

static WhereExpression newDifferentCreationCondition(FromClause fc,
                                                     int effIdx)
                                              throws QueryException
Throws:
QueryException