Package com.j_spaces.jdbc.parser
Class PreparedNode
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.PreparedNode
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
This is a Prepared node. it represents a literal node when used in a prepared statement. in
addition to the value object, it holds the index of the parameter in the statement.
- Author:
- Michael Mitrani, 2Train4, 2004
- See Also:
-
Field Summary
Fields 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 TypeMethodDescriptionclone()Override the clone method.getConvertedObject(ITypeDesc typeDesc, String propertyName) Gets the node's object converted to the provided property's object type.intgetIndex()booleanprepareTemplateValues(TreeMap values, String colName) PreparedNodes will set their values through this methods.voidprepareValues(Object[] values) PreparedNodes will set their values through this methods.voidvoidMethods inherited from class com.j_spaces.jdbc.parser.LiteralNode
getValue, setValue, toStringMethods inherited from class com.j_spaces.jdbc.parser.ValueNode
accept, accept, isJoined, isValidCompare, newInstanceMethods inherited from class com.j_spaces.jdbc.parser.ExpNode
createIndex, createJoinIndex, forEachChild, getLeftChild, getRightChild, getTemplate, isContainsItemNode, isContainsItemsRootNode, isInnerQuery, 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
-
PreparedNode
public PreparedNode() -
PreparedNode
-
PreparedNode
-
-
Method Details
-
getIndex
public int getIndex() -
isPreparedValue
public boolean isPreparedValue()- Overrides:
isPreparedValuein classLiteralNode
-
prepareValues
Description copied from class:ExpNodePreparedNodes will set their values through this methods. this one just calls the prepareValues on the children- Overrides:
prepareValuesin classExpNode- Throws:
SQLException
-
prepareTemplateValues
Description copied from class:ExpNodePreparedNodes will set their values through this methods. this one just calls the prepareValues on the children. This method will be used only for SQLTemplate.- Overrides:
prepareTemplateValuesin classExpNode- 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
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classLiteralNode- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classLiteralNode- Throws:
IOExceptionClassNotFoundException
-