Package com.j_spaces.jdbc.parser
Class RowNumNode
java.lang.Object
com.j_spaces.jdbc.parser.ExpNode
com.j_spaces.jdbc.parser.ValueNode
com.j_spaces.jdbc.parser.RowNumNode
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable,Cloneable
This node represents the rownum command. it has its start index and the number of rows to
collect
- Author:
- Michael Mitrani, 2Train4, 2004
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.jdbc.parser.ExpNode
leftChild, rightChild, template -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Return a cloned SelectQueryintgetLimit()intbooleanhasLimit()booleanisIndexOutOfRange(int i) voidvoidsetEndIndex(int endIndex) voidsetMaxResults(int maxResults) voidsetStartIndex(int startIndex) toString()voidMethods 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, 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
-
RowNumNode
public RowNumNode() -
RowNumNode
public RowNumNode(int start, int end)
-
-
Method Details
-
setEndIndex
public void setEndIndex(int endIndex) -
getStartIndex
public int getStartIndex() -
setStartIndex
public void setStartIndex(int startIndex) -
setMaxResults
public void setMaxResults(int maxResults) -
hasLimit
public boolean hasLimit()- Returns:
- return true if results number has a limit else return false
-
getLimit
public int getLimit()- Returns:
- true if RowNumNode has limitation on the results number
-
isIndexOutOfRange
public boolean isIndexOutOfRange(int i) -
toString
-
clone
Return a cloned SelectQuery -
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classExpNode- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classExpNode- Throws:
IOExceptionClassNotFoundException
-