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

com.avaje.ebean.config.dbplatform.SqlLimitResponse Maven / Gradle / Ivy

There is a newer version: 2.8.1
Show newest version
package com.avaje.ebean.config.dbplatform;

/**
 * The resulting SQL from a SqlLimit process.
 */
public class SqlLimitResponse {

	final String sql;
	
	final boolean includesRowNumberColumn;
	
	/**
	 * Create the response.
	 */
	public SqlLimitResponse(String sql, boolean includesRowNumberColumn) {
		this.sql = sql;
		this.includesRowNumberColumn = includesRowNumberColumn;
	}

	/**
	 * The final query sql with SQL limit statements added.
	 */
	public String getSql() {
		return sql;
	}

	/**
	 * Returns true if a ROW_NUMBER column is used in the query. 
	 */
	public boolean isIncludesRowNumberColumn() {
		return includesRowNumberColumn;
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy