org.apache.empire.db.h2
Class DBDatabaseDriverH2.DBCommandH2

java.lang.Object
  extended by org.apache.empire.db.DBObject
      extended by org.apache.empire.db.DBExpr
          extended by org.apache.empire.db.DBCommandExpr
              extended by org.apache.empire.db.DBCommand
                  extended by org.apache.empire.db.h2.DBDatabaseDriverH2.DBCommandH2
All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
DBDatabaseDriverH2

public static class DBDatabaseDriverH2.DBCommandH2
extends DBCommand

Defines the H2 command type.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery
 
Field Summary
protected  int limitRows
           
protected  int skipRows
           
 
Fields inherited from class org.apache.empire.db.DBCommand
cmdParams, groupBy, having, joins, log, select, selectDistinct, set, where
 
Fields inherited from class org.apache.empire.db.DBCommandExpr
cmdQuery, orderBy
 
Fields inherited from class org.apache.empire.db.DBExpr
CTX_ALIAS, CTX_ALL, CTX_DEFAULT, CTX_FULLNAME, CTX_NAME, CTX_NOPARENTHESES, CTX_VALUE
 
Constructor Summary
DBDatabaseDriverH2.DBCommandH2(DBDatabase db)
           
 
Method Summary
 void clearLimit()
          Clears a limit or offset set by calling limit() or offset()
 void getSelect(StringBuilder buf)
           
 void limitRows(int limitRows)
          set the maximum number of rows to return when executing a query command A negative value will remove the limit.
 void skipRows(int skipRows)
          sets the offset of the first row to return when executing a query command.
 
Methods inherited from class org.apache.empire.db.DBCommand
addFrom, addGrouping, addJoins, addOrder, addParam, addParam, addParam, addParam, addReferencedColumns, addSelect, addWhere, addWhere, addWhereConstraints, clear, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getDatabase, getDelete, getInsert, getJoins, getParamValues, getRowSetList, getSelectExprList, getUpdate, getWhereConstraints, groupBy, hasConstraintOn, hasJoinOn, hasJoinOn, hasSelectExpr, hasSetExprOn, hasWhereConstraints, having, isPreparedStatementsEnabled, isSelectDistinct, isValid, isValidQuery, isValidUpdate, join, join, join, join, join, notifyParamUsage, removeConstraintOn, removeHavingConstraintOn, removeJoinsOn, removeJoinsOn, removeWhereConstraintOn, resetParamUsage, select, select, select, selectDistinct, set, setConstraint, useCmdParam, where
 
Methods inherited from class org.apache.empire.db.DBCommandExpr
addListExpr, addSQL, clearOrderBy, getCmdColumn, getInsertInto, getInsertInto, getInsertInto, getSelect, intersect, orderBy, orderBy, orderBy, union
 
Methods inherited from class org.apache.empire.db.DBExpr
getObjectValue, getValueClass
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

limitRows

protected int limitRows

skipRows

protected int skipRows
Constructor Detail

DBDatabaseDriverH2.DBCommandH2

public DBDatabaseDriverH2.DBCommandH2(DBDatabase db)
Method Detail

limitRows

public void limitRows(int limitRows)
Description copied from class: DBCommandExpr
set the maximum number of rows to return when executing a query command A negative value will remove the limit.

Overrides:
limitRows in class DBCommandExpr

skipRows

public void skipRows(int skipRows)
Description copied from class: DBCommandExpr
sets the offset of the first row to return when executing a query command. A negative value will remove the offset.

Overrides:
skipRows in class DBCommandExpr

clearLimit

public void clearLimit()
Description copied from class: DBCommandExpr
Clears a limit or offset set by calling limit() or offset()

Overrides:
clearLimit in class DBCommandExpr

getSelect

public void getSelect(StringBuilder buf)
Overrides:
getSelect in class DBCommand


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.