wt.epm.query
Class QueryNodes.InAtomsNode

java.lang.Object
  extended bywt.epm.query.QueryNodes.Node
      extended bywt.epm.query.QueryNodes.ConditionNode
          extended bywt.epm.query.QueryNodes.InAtomsNode
All Implemented Interfaces:
QueryNodes.Chunkable
Enclosing class:
QueryNodes

static class QueryNodes.InAtomsNode
extends QueryNodes.ConditionNode
implements QueryNodes.Chunkable


Field Summary
private  List atoms
           
private static String CHUNK_OFFSET
           
private static String CHUNK_SIZE
           
private  QueryNodes.ScalarExpNode expression
           
private  boolean not
           
private static String VALUES
           
 
Constructor Summary
(package private) QueryNodes.InAtomsNode(QueryNodes.ParserScope parserScope, QueryNodes.ScalarExpNode expression, List atoms, boolean not)
           
 
Method Summary
protected static void appendJoint(QueryNodes.QueryScope scope, QueryNodes.ClassNode source, String sourceAttribute, QueryNodes.ClassNode target)
           
protected static void appendJoint(QueryNodes.QueryScope scope, QueryNodes.ClassNode source, String sourceAttribute, QueryNodes.ClassNode target, int outerJoint)
           
protected static void appendOpionalAnd(QueryNodes.QueryScope scope)
           
protected static void dump(Collection collection, PrintStream out, QueryNodes.Shift shift)
           
(package private)  void dump(PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(QueryNodes.Node node, PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(String prefix, Collection collection, PrintStream out, QueryNodes.Shift shift)
           
protected static void dump(String prefix, QueryNodes.Node node, PrintStream out, QueryNodes.Shift shift)
           
protected static void generate(Collection collection, QueryNodes.QueryScope scope)
           
protected static void generate(QueryNodes.GeneratableNode node, QueryNodes.QueryScope scope)
           
private  int getChunkOffset(QueryNodes.QueryContext context)
           
private  int getChunkSize(QueryNodes.QueryContext context)
           
protected  WhereExpression getConditionExpression(QueryNodes.QueryScope scope)
           
protected  String getShortClassName()
           
protected  String getTitle(QueryNodes.Shift shift)
           
private  Collection getValueChunk(QueryNodes.QueryContext context)
           
private  List getValues(QueryNodes.QueryContext context)
           
 boolean nextChunk(QueryNodes.QueryContext context)
           
protected  void register(QueryNodes.ParserScope parserScope)
           
private  void setChunkOffset(QueryNodes.QueryContext context, int offset)
           
 void setChunkSize(QueryNodes.QueryContext context, int size)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUES

private static final String VALUES
See Also:
Constant Field Values

CHUNK_SIZE

private static final String CHUNK_SIZE
See Also:
Constant Field Values

CHUNK_OFFSET

private static final String CHUNK_OFFSET
See Also:
Constant Field Values

expression

private QueryNodes.ScalarExpNode expression

atoms

private List atoms

not

private boolean not
Constructor Detail

QueryNodes.InAtomsNode

QueryNodes.InAtomsNode(QueryNodes.ParserScope parserScope,
                       QueryNodes.ScalarExpNode expression,
                       List atoms,
                       boolean not)
                 throws QueryException
Method Detail

getChunkSize

private int getChunkSize(QueryNodes.QueryContext context)

setChunkSize

public void setChunkSize(QueryNodes.QueryContext context,
                         int size)
Specified by:
setChunkSize in interface QueryNodes.Chunkable

getChunkOffset

private int getChunkOffset(QueryNodes.QueryContext context)

setChunkOffset

private void setChunkOffset(QueryNodes.QueryContext context,
                            int offset)

nextChunk

public boolean nextChunk(QueryNodes.QueryContext context)
                  throws QueryException
Specified by:
nextChunk in interface QueryNodes.Chunkable
Throws:
QueryException

getValues

private List getValues(QueryNodes.QueryContext context)
                throws QueryException
Throws:
QueryException

getValueChunk

private Collection getValueChunk(QueryNodes.QueryContext context)
                          throws QueryException
Throws:
QueryException

dump

void dump(PrintStream out,
          QueryNodes.Shift shift)
Overrides:
dump in class QueryNodes.Node

getConditionExpression

protected WhereExpression getConditionExpression(QueryNodes.QueryScope scope)
                                          throws WTException
Specified by:
getConditionExpression in class QueryNodes.ConditionNode
Throws:
WTException

register

protected void register(QueryNodes.ParserScope parserScope)
                 throws QueryException
Throws:
QueryException

getTitle

protected String getTitle(QueryNodes.Shift shift)

getShortClassName

protected String getShortClassName()

dump

protected static void dump(QueryNodes.Node node,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(String prefix,
                           QueryNodes.Node node,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(Collection collection,
                           PrintStream out,
                           QueryNodes.Shift shift)

dump

protected static void dump(String prefix,
                           Collection collection,
                           PrintStream out,
                           QueryNodes.Shift shift)

generate

protected static void generate(QueryNodes.GeneratableNode node,
                               QueryNodes.QueryScope scope)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

generate

protected static void generate(Collection collection,
                               QueryNodes.QueryScope scope)
                        throws WTException,
                               WTPropertyVetoException
Throws:
WTException
WTPropertyVetoException

appendOpionalAnd

protected static void appendOpionalAnd(QueryNodes.QueryScope scope)

appendJoint

protected static void appendJoint(QueryNodes.QueryScope scope,
                                  QueryNodes.ClassNode source,
                                  String sourceAttribute,
                                  QueryNodes.ClassNode target)
                           throws WTException
Throws:
WTException

appendJoint

protected static void appendJoint(QueryNodes.QueryScope scope,
                                  QueryNodes.ClassNode source,
                                  String sourceAttribute,
                                  QueryNodes.ClassNode target,
                                  int outerJoint)
                           throws WTException
Throws:
WTException