Package com.j_spaces.jdbc.parser
Class ContainsNode
java.lang.Object
com.j_spaces.jdbc.parser.ExpNode
com.j_spaces.jdbc.parser.ContainsNode
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
- Direct Known Subclasses:
ContainsItemNode
An expression node for a contains argument. SQL Syntax: collection[*] = ? array[*] = ?
- Since:
- 8.0
- Author:
- idan
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.jdbc.parser.ExpNode
leftChild, rightChild, template -
Constructor Summary
ConstructorsConstructorDescriptionContainsNode(ColumnNode columnNode, ExpNode operatorNode, short templateMatchCode) ContainsNode(ColumnNode columnNode, ExpNode operatorNode, short templateMatchCode, String relation) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(QueryTemplateBuilder builder) Accept the query builder Default implementation returns null - no QueryTemplatePacket is definedclone()Override the clone method.createIndex(QueryTableData table, IQueryResultSet<IEntryPacket> entries) getPath()shortbooleanbooleanisValidCompare(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 classvoidtoString()voidMethods inherited from class com.j_spaces.jdbc.parser.ExpNode
accept, createJoinIndex, forEachChild, getLeftChild, getRightChild, getTemplate, isContainsItemNode, isContainsItemsRootNode, isInnerQuery, isJoined, 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
-
Constructor Details
-
ContainsNode
public ContainsNode() -
ContainsNode
-
ContainsNode
public ContainsNode(ColumnNode columnNode, ExpNode operatorNode, short templateMatchCode, String relation)
-
-
Method Details
-
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
-
toString
-
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
-
createIndex
- Overrides:
createIndexin classExpNode
-
clone
Description copied from class:ExpNodeOverride the clone method. -
getPath
- Returns:
- The node's full path including the "[*]" operator.
-
getTemplateMatchCode
public short getTemplateMatchCode()- Returns:
- The template match code representing the comparison operator to be used for matching.
-
isRelationNode
public boolean isRelationNode() -
getRelation
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classExpNode- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classExpNode- Throws:
IOExceptionClassNotFoundException
-