org.apache.empire.db.sqlserver
Class DBDatabaseDriverMSSQL.DBCommandMSSQL

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.sqlserver.DBDatabaseDriverMSSQL.DBCommandMSSQL
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, ErrorInfo
Enclosing class:
DBDatabaseDriverMSSQL

public static class DBDatabaseDriverMSSQL.DBCommandMSSQL
extends DBCommand

Defines the Microsoft SQL-Server 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
           
 
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
DBDatabaseDriverMSSQL.DBCommandMSSQL(DBDatabase db)
           
 
Method Summary
protected  void addSelect(java.lang.StringBuilder buf)
           
 void clearLimit()
          Clears a limit or offset set by calling limit() or offset()
 boolean limitRows(int numRows)
          set the maximum number of rows to return when executing a query command A negative value will remove the limit.
 
Methods inherited from class org.apache.empire.db.DBCommand
addFrom, addGrouping, addJoins, addOrder, addParam, addParam, addParam, addParam, addReferencedColumns, addWhere, addWhereConstraints, clear, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getDatabase, getDelete, getInsert, getJoins, getParamValues, getSelect, 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, skipRows, 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
Constructor Detail

DBDatabaseDriverMSSQL.DBCommandMSSQL

public DBDatabaseDriverMSSQL.DBCommandMSSQL(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

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

addSelect

protected void addSelect(java.lang.StringBuilder buf)
Overrides:
addSelect in class DBCommand


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