Package com.j_spaces.jdbc.parser
Class AndNode
java.lang.Object
com.j_spaces.jdbc.parser.ExpNode
com.j_spaces.jdbc.parser.AndNode
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
This is the AndNode, expressing an 'and' between conditions.
- Author:
- Michael Mitrani, 2Train4
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.jdbc.parser.ExpNode
leftChild, rightChild, template -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(QueryTemplateBuilder builder) Accept the query builder Default implementation returns null - no QueryTemplatePacket is definedvoidaccept(IQueryExecutor executor, ISpaceProxy space, Transaction txn, int readModifier, int max) Accept the query executorbooleancreateJoinIndex(QueryTableData tableData) booleanisJoined()is there somewhere in the tree a join condition.booleanisValidCompare(Object ob1, Object ob2) Operator nodes implement this method to return whether two objects satisfy the given condition.Prototype method - Create new instance of the classtoString()Methods inherited from class com.j_spaces.jdbc.parser.ExpNode
clone, createIndex, forEachChild, getLeftChild, getRightChild, getTemplate, isContainsItemNode, isContainsItemsRootNode, isInnerQuery, prepareTemplateValues, prepareValues, readExternal, reverse, setLeftChild, setRightChild, setTemplate, toString, traverse, traverseReverse, validateInnerQueryResult, writeExternalMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
AndNode
-
AndNode
public AndNode()
-
-
Method Details
-
isValidCompare
Description copied from class:ExpNodeOperator nodes implement this method to return whether two objects satisfy the given condition.- Specified by:
isValidComparein classExpNode- Returns:
- true if the two given objects satisfy the condition
-
isJoined
public boolean isJoined()Description copied from class:ExpNodeis there somewhere in the tree a join condition. -
newInstance
Description copied from class:ExpNodePrototype method - Create new instance of the class- Specified by:
newInstancein classExpNode
-
accept
Description copied from class:ExpNodeAccept the query builder Default implementation returns null - no QueryTemplatePacket is defined- Specified by:
acceptin classExpNode- Throws:
SQLException
-
accept
public void accept(IQueryExecutor executor, ISpaceProxy space, Transaction txn, int readModifier, int max) throws SQLException Description copied from class:ExpNodeAccept the query executor- Overrides:
acceptin classExpNode- Throws:
SQLException
-
createJoinIndex
- Overrides:
createJoinIndexin classExpNode- Returns:
- true if created join index
-
toString
-