Package com.j_spaces.jdbc.parser
Class InnerQueryNode
java.lang.Object
com.j_spaces.jdbc.parser.ExpNode
com.j_spaces.jdbc.parser.ValueNode
com.j_spaces.jdbc.parser.LiteralNode
com.j_spaces.jdbc.parser.InnerQueryNode
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
Represents an inner (sub) query in a WHERE clause condition.
- Since:
- 8.0
- Author:
- idan
- See Also:
-
Field Summary
FieldsFields inherited from class com.j_spaces.jdbc.parser.LiteralNode
valueFields inherited from class com.j_spaces.jdbc.parser.ExpNode
leftChild, rightChild, template -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IQueryExecutor executor, ISpaceProxy space, Transaction txn, int readModifier, int max) Accept the query executorclone()Override the clone method.getConvertedObject(ITypeDesc typeDesc, String propertyName) Gets the node's object converted to the provided property's object type.Gets the inner query's single resultgetValue()booleanGets whether the result is emptybooleanGets whether this node has a child which is an inner query nodebooleanGets whether the result only contains one column.booleanGets whether the result is a single value resultvoidvoidsetResults(ResultEntry resultEntry) toString()voidMethods inherited from class com.j_spaces.jdbc.parser.LiteralNode
isPreparedValue, setValueMethods inherited from class com.j_spaces.jdbc.parser.ValueNode
accept, isJoined, isValidCompare, newInstanceMethods inherited from class com.j_spaces.jdbc.parser.ExpNode
createIndex, createJoinIndex, forEachChild, getLeftChild, getRightChild, getTemplate, isContainsItemNode, isContainsItemsRootNode, prepareTemplateValues, prepareValues, reverse, setLeftChild, setRightChild, setTemplate, toString, traverse, traverseReverse, validateInnerQueryResultMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Field Details
-
_innerQuery
-
_results
-
-
Constructor Details
-
InnerQueryNode
public InnerQueryNode() -
InnerQueryNode
-
-
Method Details
-
getInnerQuery
-
getResult
-
setResults
-
isSingleResult
public boolean isSingleResult()Gets whether the result is a single value result -
isEmptyResult
public boolean isEmptyResult()Gets whether the result is empty -
isSingleColumnResult
public boolean isSingleColumnResult()Gets whether the result only contains one column. -
getSingleResult
Gets the inner query's single result -
getValue
- Overrides:
getValuein classLiteralNode
-
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 classValueNode- Throws:
SQLException
-
getConvertedObject
Description copied from class:LiteralNodeGets the node's object converted to the provided property's object type.- Overrides:
getConvertedObjectin classLiteralNode- Throws:
SQLException
-
clone
Description copied from class:ExpNodeOverride the clone method.- Overrides:
clonein classLiteralNode
-
isInnerQuery
public boolean isInnerQuery()Description copied from class:ExpNodeGets whether this node has a child which is an inner query node- Overrides:
isInnerQueryin classExpNode
-
toString
- Overrides:
toStringin classLiteralNode
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classLiteralNode- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classLiteralNode- Throws:
IOExceptionClassNotFoundException
-