org.apache.empire.db.mysql
Class DBDatabaseDriverMySQL.DBCommandMySQL

java.lang.Object
  extended by org.apache.empire.commons.ErrorObject
      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.mysql.DBDatabaseDriverMySQL.DBCommandMySQL
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ErrorInfo
Enclosing class:
DBDatabaseDriverMySQL

public static class DBDatabaseDriverMySQL.DBCommandMySQL
extends DBCommand

Defines the MySQL command type.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommand
DBCommand.DBCommandParam
 
Nested classes/interfaces inherited from class org.apache.empire.db.DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery
 
Nested classes/interfaces inherited from class org.apache.empire.commons.ErrorObject
ErrorObject.ObjectErrorInfo
 
Field Summary
protected  int limit
           
protected  int skip
           
 
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
DBDatabaseDriverMySQL.DBCommandMySQL(DBDatabase db)
           
 
Method Summary
 void clearLimit()
          Clears a limit or offset set by calling limit() or offset()
 boolean getSelect(java.lang.StringBuilder buf)
           
 boolean limitRows(int numRows)
          set the maximum number of rows to return when executing a query command A negative value will remove the limit.
 boolean skipRows(int numRows)
          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, addWhereConstraints, clear, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getDatabase, getDelete, getInsert, getJoins, getParamValues, getSelectExprList, getTableList, getUpdate, getWhereConstraints, groupBy, hasJoinOn, hasSelectExpr, hasSetExprOn, hasWhereConstraints, having, isSelectDistinct, isValid, isValidQuery, isValidUpdate, join, join, join, join, join, removeConstraintOn, removeHavingConstraintOn, 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 org.apache.empire.db.DBObject
error, error
 
Methods inherited from class org.apache.empire.commons.ErrorObject
clearError, clearErrorInfo, error, error, error, error, error, getErrorInfo, getErrorMessage, getErrorParams, getErrorSource, getErrorType, getMessage, hasError, internalSetError, isExceptionsEnabled, setExceptionsEnabled, success
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

limit

protected int limit

skip

protected int skip
Constructor Detail

DBDatabaseDriverMySQL.DBCommandMySQL

public DBDatabaseDriverMySQL.DBCommandMySQL(DBDatabase db)
Method Detail

limitRows

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

Overrides:
limitRows in class DBCommand
Returns:
true if the database supports a limit or false otherwise

skipRows

public boolean skipRows(int numRows)
Description copied from class: DBCommand
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 DBCommand
Returns:
true if the database supports an offset or false otherwise

clearLimit

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

Overrides:
clearLimit in class DBCommand

getSelect

public boolean getSelect(java.lang.StringBuilder buf)
Overrides:
getSelect in class DBCommand


Copyright © 2008-2011 Apache Software Foundation. All Rights Reserved.