Class ResultSetNode.QueryExpressionClauses
java.lang.Object
org.apache.derby.impl.sql.compile.ResultSetNode.QueryExpressionClauses
- Enclosing class:
ResultSetNode
For ease of pushing order by, offset and fetch first/next clauses into
nodes. Clauses on the same nesting level have the same index in the
lists, so at any level, any of the lists' elements may be empty. For
example,
(select * from t order by a fetch next 5 rows only) order by b
would have
obl[0] = "order by a", offset[0] = null, fetchFirst[0] = "next 5 rows"and
obl[1] = "order by b", offset[1] = null fetchFirst[1] = nullWhen starting pushing clauses for a new level, always remember to do a
push()
before adding the clauses via setOffset(org.apache.derby.impl.sql.compile.ValueNode)
, setFetchFirst(org.apache.derby.impl.sql.compile.ValueNode)
, setOrderByList(org.apache.derby.impl.sql.compile.OrderByList)
and setHasJDBCLimitClause(java.lang.Boolean)
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) ValueNode
getFetchFirst
(int i) (package private) Boolean[]
(package private) ValueNode
getOffset
(int i) (package private) OrderByList
getOrderByList
(int i) (package private) boolean
(package private) void
push()
(package private) void
setFetchFirst
(int i, ValueNode v) (package private) void
(package private) void
(package private) void
(package private) void
(package private) void
setOrderByList
(int i, OrderByList obl) (package private) void
(package private) int
size()
-
Field Details
-
obl
-
offset
-
fetchFirst
-
hasJDBCLimitClause
-
-
Constructor Details
-
QueryExpressionClauses
public QueryExpressionClauses()
-
-
Method Details
-
size
int size() -
push
void push() -
setOrderByList
-
setOffset
-
setFetchFirst
-
setHasJDBCLimitClause
-
getOrderByList
-
setOrderByList
-
getOffset
-
setOffset
-
getFetchFirst
-
setFetchFirst
-
getHasJDBCLimitClause
Boolean[] getHasJDBCLimitClause() -
hasOffsetFetchFirst
boolean hasOffsetFetchFirst()
-