net.sf.jsqlparser.statement.select.Top Maven / Gradle / Ivy
Go to download
JSqlParser transforms a SQL statement into a hierarchy of java classes.
Operations on the classes of JSqlParser are executed using the Visitor pattern.
package net.sf.jsqlparser.statement.select;
/**
* A top clause in the form [TOP row_count]
*/
public class Top {
private long rowCount ;
private boolean rowCountJdbcParameter = false;
public long getRowCount() {
return rowCount;
}
public void setRowCount(long l) {
rowCount = l;
}
public boolean isRowCountJdbcParameter() {
return rowCountJdbcParameter;
}
public void setRowCountJdbcParameter(boolean b) {
rowCountJdbcParameter = b;
}
public String toString() {
return "TOP "+(rowCountJdbcParameter?"?":rowCount+"");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy