com.avaje.ebean.config.dbplatform
Class RownumSqlLimiter

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

public class RownumSqlLimiter
extends Object

    
implements SqlLimiter

    

Add ROWNUM column etc around SQL query to limit results.


Field Summary
 
Fields inherited from interface com.avaje.ebean.config.dbplatform.SqlLimiter
CARRIAGE_RETURN, NEW_LINE
 
Constructor Summary
RownumSqlLimiter()
          Create with default inner rownum column alias and used FIRST_ROWS hint.
RownumSqlLimiter(String rnum, boolean useFirstRowsHint)
          Specify the inner rownum column alias and whether to include the FIRST_ROWS hint.
 
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

RownumSqlLimiter

public RownumSqlLimiter()
Create with default inner rownum column alias and used FIRST_ROWS hint.


RownumSqlLimiter

public RownumSqlLimiter(String rnum,
                        boolean useFirstRowsHint)
Specify the inner rownum column alias and whether to include the FIRST_ROWS hint.

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 © 2010. All Rights Reserved.