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

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.sqlserver.DBDatabaseDriverMSSQL.DBCommandMSSQL
All Implemented Interfaces:
Serializable, Cloneable
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.DBCommandExpr
DBCommandExpr.DBCmdColumn, DBCommandExpr.DBCmdQuery
 
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(StringBuilder buf)
           
 void clearLimit()
          Clears a limit or offset set by calling limit() or offset()
 void 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, addWhere, addWhereConstraints, clear, clearGroupBy, clearHaving, clearJoin, clearSelect, clearSelectDistinct, clearSet, clearWhere, clone, getDatabase, getDelete, getInsert, getJoins, getParamValues, getRowSetList, getSelect, 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, skipRows, 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

limit

protected int limit
Constructor Detail

DBDatabaseDriverMSSQL.DBCommandMSSQL

public DBDatabaseDriverMSSQL.DBCommandMSSQL(DBDatabase db)
Method Detail

limitRows

public void limitRows(int numRows)
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

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

addSelect

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


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