com.aceql.jdbc.commons.main.http.LastSelectStore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aceql-http-client-jdbc-driver Show documentation
Show all versions of aceql-http-client-jdbc-driver Show documentation
The AceQL Java Client JDBC Driver allows to wrap the AceQL HTTP APIs and eliminates the tedious works of handling communications errors and parsing JSON results.
Android and Java Desktop application developers can access remote SQL databases and/or SQL databases in the cloud by simply including standard JDBC calls in their code, just like they would for a local database.
The newest version!
/**
*
*/
package com.aceql.jdbc.commons.main.http;
/**
* Stores the last SELECT in order to replay in order to get the ResultSetMetaData.
* @author Nicolas de Pomereu
*
*/
public class LastSelectStore {
private String sql;
private boolean isPreparedStatement;
private boolean isStoredProcedure;
private boolean gzipResult;
private boolean prettyPrinting;
/**
* Constructor.
* @param sql
* @param isPreparedStatement
* @param isStoredProcedure
* @param gzipResult
* @param prettyPrinting
*/
public LastSelectStore(String sql, boolean isPreparedStatement, boolean isStoredProcedure, boolean gzipResult,
boolean prettyPrinting) {
super();
this.sql = sql;
this.isPreparedStatement = isPreparedStatement;
this.isStoredProcedure = isStoredProcedure;
this.gzipResult = gzipResult;
this.prettyPrinting = prettyPrinting;
}
public String getSql() {
return sql;
}
public boolean isPreparedStatement() {
return isPreparedStatement;
}
public boolean isStoredProcedure() {
return isStoredProcedure;
}
public boolean isGzipResult() {
return gzipResult;
}
public boolean isPrettyPrinting() {
return prettyPrinting;
}
@Override
public String toString() {
return "LastSelectStore [sql=" + sql + ", isPreparedStatement=" + isPreparedStatement + ", isStoredProcedure="
+ isStoredProcedure + ", gzipResult=" + gzipResult + ", prettyPrinting=" + prettyPrinting + "]";
}
}