All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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.

There is a newer version: 0.8.0
Show newest version
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