net.sf.jsqlparser.statement.select
Class Limit

java.lang.Object
  extended by net.sf.jsqlparser.statement.select.Limit

public class Limit
extends java.lang.Object

A limit clause in the form [LIMIT {[offset,] row_count) | (row_count | ALL) OFFSET offset}]


Field Summary
private  boolean limitAll
           
private  long offset
           
private  boolean offsetJdbcParameter
           
private  long rowCount
           
private  boolean rowCountJdbcParameter
           
 
Constructor Summary
Limit()
           
 
Method Summary
 long getOffset()
           
 long getRowCount()
           
 boolean isLimitAll()
           
 boolean isOffsetJdbcParameter()
           
 boolean isRowCountJdbcParameter()
           
 void setLimitAll(boolean b)
           
 void setOffset(long l)
           
 void setOffsetJdbcParameter(boolean b)
           
 void setRowCount(long l)
           
 void setRowCountJdbcParameter(boolean b)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

offset

private long offset

rowCount

private long rowCount

rowCountJdbcParameter

private boolean rowCountJdbcParameter

offsetJdbcParameter

private boolean offsetJdbcParameter

limitAll

private boolean limitAll
Constructor Detail

Limit

public Limit()
Method Detail

getOffset

public long getOffset()

getRowCount

public long getRowCount()

setOffset

public void setOffset(long l)

setRowCount

public void setRowCount(long l)

isOffsetJdbcParameter

public boolean isOffsetJdbcParameter()

isRowCountJdbcParameter

public boolean isRowCountJdbcParameter()

setOffsetJdbcParameter

public void setOffsetJdbcParameter(boolean b)

setRowCountJdbcParameter

public void setRowCountJdbcParameter(boolean b)

isLimitAll

public boolean isLimitAll()
Returns:
true if the limit is "LIMIT ALL [OFFSET ...])

setLimitAll

public void setLimitAll(boolean b)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object