org.jooq
Interface SimpleSelectLimitStep<R extends Record>

Type Parameters:
R - The record type being returned by this query
All Superinterfaces:
Adapter, Attachable, FieldLike, FieldProvider, Query, QueryPart, ResultQuery<R>, Select<R>, Serializable, SimpleSelectFinalStep<R>, SimpleSelectForUpdateStep<R>, TableLike<R>
All Known Subinterfaces:
SimpleSelectConditionStep<R>, SimpleSelectOrderByStep<R>, SimpleSelectWhereStep<R>

public interface SimpleSelectLimitStep<R extends Record>
extends SimpleSelectForUpdateStep<R>

This type is used for the Select's DSL API when selecting specific Record types.

Example:

 create.selectFrom(T_AUTHOR)
       .where(TBook.LANGUAGE.equal("DE"))
       .and(TBook.PUBLISHED.greaterThan(parseDate('2008-01-01')))
       .orderBy(TAuthor.LAST_NAME.asc().nullsFirst())
       .limit(2)
       .offset(1)
       .forUpdate()
       .of(TAuthor.FIRST_NAME, TAuthor.LAST_NAME)
       .noWait();
 
Refer to the manual for more details

Author:
Lukas Eder

Method Summary
 SimpleSelectOffsetStep<R> limit(int numberOfRows)
          Add a LIMIT clause to the query If there is no LIMIT or TOP clause in your RDBMS, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.
 SimpleSelectForUpdateStep<R> limit(int offset, int numberOfRows)
          Add a LIMIT clause to the query Note that some dialects do not support bind values at all in LIMIT or TOP clauses!
 SimpleSelectForUpdateStep<R> limit(int offset, Param<Integer> numberOfRows)
          Add a LIMIT clause to the query using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses!
 SimpleSelectOffsetStep<R> limit(Param<Integer> numberOfRows)
          Add a LIMIT clause to the query using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses!
 SimpleSelectForUpdateStep<R> limit(Param<Integer> offset, int numberOfRows)
          Add a LIMIT clause to the query using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses!
 SimpleSelectForUpdateStep<R> limit(Param<Integer> offset, Param<Integer> numberOfRows)
          Add a LIMIT clause to the query using named parameters Note that some dialects do not support bind values at all in LIMIT or TOP clauses!
 
Methods inherited from interface org.jooq.SimpleSelectForUpdateStep
forShare, forUpdate
 
Methods inherited from interface org.jooq.SimpleSelectFinalStep
getQuery
 
Methods inherited from interface org.jooq.Select
except, getSelect, intersect, union, unionAll
 
Methods inherited from interface org.jooq.ResultQuery
bind, bind, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetch, fetchAny, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArray, fetchArrays, fetchGroups, fetchGroups, fetchInto, fetchInto, fetchInto, fetchLater, fetchLater, fetchLazy, fetchLazy, fetchMany, fetchMap, fetchMap, fetchMaps, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOne, fetchOneArray, fetchOneMap, fetchResultSet, getRecordType, getResult
 
Methods inherited from interface org.jooq.Query
execute, getBindValues, getParam, getParams, getSQL, getSQL, isExecutable
 
Methods inherited from interface org.jooq.QueryPart
attach
 
Methods inherited from interface org.jooq.Adapter
internalAPI
 
Methods inherited from interface org.jooq.TableLike
asTable, asTable
 
Methods inherited from interface org.jooq.FieldLike
asField, asField
 
Methods inherited from interface org.jooq.FieldProvider
getField, getField, getField, getFields, getIndex
 

Method Detail

limit

SimpleSelectOffsetStep<R> limit(int numberOfRows)
Add a LIMIT clause to the query

If there is no LIMIT or TOP clause in your RDBMS, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.

This is the same as calling limit(int, int) with offset = 0, or calling .limit(numberOfRows).offset(0)


limit

SimpleSelectOffsetStep<R> limit(Param<Integer> numberOfRows)
Add a LIMIT clause to the query using named parameters

Note that some dialects do not support bind values at all in LIMIT or TOP clauses!

If there is no LIMIT or TOP clause in your RDBMS, or the LIMIT or TOP clause does not support bind values, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.

This is the same as calling limit(int, int) with offset = 0, or calling .limit(numberOfRows).offset(0)


limit

SimpleSelectForUpdateStep<R> limit(int offset,
                                   int numberOfRows)
Add a LIMIT clause to the query

Note that some dialects do not support bind values at all in LIMIT or TOP clauses!

If there is no LIMIT or TOP clause in your RDBMS, or if your RDBMS does not natively support offsets, this is simulated with a ROW_NUMBER() window function and nested SELECT statements.


limit

SimpleSelectForUpdateStep<R> limit(int offset,
                                   Param<Integer> numberOfRows)
Add a LIMIT clause to the query using named parameters

Note that some dialects do not support bind values at all in LIMIT or TOP clauses!

If there is no LIMIT or TOP clause in your RDBMS, or the LIMIT or TOP clause does not support bind values, or if your RDBMS does not natively support offsets, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.


limit

SimpleSelectForUpdateStep<R> limit(Param<Integer> offset,
                                   int numberOfRows)
Add a LIMIT clause to the query using named parameters

Note that some dialects do not support bind values at all in LIMIT or TOP clauses!

If there is no LIMIT or TOP clause in your RDBMS, or the LIMIT or TOP clause does not support bind values, or if your RDBMS does not natively support offsets, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.


limit

SimpleSelectForUpdateStep<R> limit(Param<Integer> offset,
                                   Param<Integer> numberOfRows)
Add a LIMIT clause to the query using named parameters

Note that some dialects do not support bind values at all in LIMIT or TOP clauses!

If there is no LIMIT or TOP clause in your RDBMS, or the LIMIT or TOP clause does not support bind values, or if your RDBMS does not natively support offsets, this may be simulated with a ROW_NUMBER() window function and nested SELECT statements.



Copyright © 2012. All Rights Reserved.