com.avaje.ebean.config.dbplatform
Class MsSqlServer2005SqlLimiter

java.lang.Object
  extended by com.avaje.ebean.config.dbplatform.MsSqlServer2005SqlLimiter
All Implemented Interfaces:
SqlLimiter

public class MsSqlServer2005SqlLimiter
extends Object
implements SqlLimiter

Use top and row_number() function to limit sql results.


Field Summary
 
Fields inherited from interface com.avaje.ebean.config.dbplatform.SqlLimiter
CARRIAGE_RETURN, NEW_LINE
 
Constructor Summary
MsSqlServer2005SqlLimiter()
           
MsSqlServer2005SqlLimiter(String rowNumberWindowAlias)
          Specify the name of the rowNumberWindowAlias.
 
Method Summary
 SqlLimitResponse limit(SqlLimitRequest request)
          Add the SQL limiting statements around the query.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MsSqlServer2005SqlLimiter

public MsSqlServer2005SqlLimiter(String rowNumberWindowAlias)
Specify the name of the rowNumberWindowAlias.


MsSqlServer2005SqlLimiter

public MsSqlServer2005SqlLimiter()
Method Detail

limit

public SqlLimitResponse limit(SqlLimitRequest request)
Description copied from interface: SqlLimiter
Add the SQL limiting statements around the query.

Specified by:
limit in interface SqlLimiter


Copyright © 2012. All Rights Reserved.