Class Limit
- java.lang.Object
-
- com.github.eikecochu.sqlbuilder.QueryPartImpl<Limit>
-
- com.github.eikecochu.sqlbuilder.mysql.Limit
-
- All Implemented Interfaces:
QueryBuilder<Limit>,QueryPart,QueryPartLinked<Limit>,QueryPartSQL<Limit>
public class Limit extends QueryPartImpl<Limit> implements QueryBuilder<Limit>
Limit statement Supported by MySQL
-
-
Constructor Summary
Constructors Modifier Constructor Description Limit(int limit)Create a new Limit statement with the amount of rows to be fetchedprotectedLimit(QueryPartLinked<?> parent, int limit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Offsetoffset(int offset)Creates a new Offset instance with the offset to skip when selecting datajava.lang.Stringstring(QueryOptions options)Transforms this statement into an SQL string-
Methods inherited from class com.github.eikecochu.sqlbuilder.QueryPartImpl
parent, sql
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryBuilder
query, query
-
Methods inherited from interface com.github.eikecochu.sqlbuilder.QueryPartLinked
ext, parent, parent
-
-
-
-
Constructor Detail
-
Limit
public Limit(int limit)
Create a new Limit statement with the amount of rows to be fetched- Parameters:
limit- The amount of rows to be fetched
-
Limit
protected Limit(QueryPartLinked<?> parent, int limit)
-
-
Method Detail
-
offset
public Offset offset(int offset)
Creates a new Offset instance with the offset to skip when selecting data- Parameters:
offset- The offset to skip from the start- Returns:
- The new Offset instance
-
string
public java.lang.String string(QueryOptions options)
Description copied from interface:QueryPartTransforms this statement into an SQL string
-
-