src.main.java.com.aceql.client.metadata.ResultSetMetaDataPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aceql-http-client-sdk Show documentation
Show all versions of aceql-http-client-sdk Show documentation
The AceQL Java Client SDK allows to wrap the AceQL HTTP APIs and eliminate 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.
/**
*
*/
package com.aceql.client.metadata;
import com.aceql.client.jdbc.AceQLConnection;
/**
* Defines the policy for {@code ResultSetMetaData} access:
*
* - on: ResulSetMetaData will be always accessible, because downloaded along
* with ResultSet for each SELECT.
* - off: {@code ResulSetMetaData} will not be accessible because not
* downloaded along with {@code ResultSet} for each {@code SELECT} call. This
* may be changed with a
* {@link AceQLConnection#setResultSetMetaDataPolicy(ResultSetMetaDataPolicy)}
* call.
*
*
* Default value for a new AceQLConnection is off. If the AceQL Driver is used, the default value
* {@code ResultSetMetaDataPolicy.on}.
*
* @since 5.0
* @author Nicolas de Pomereu
*
*/
public enum ResultSetMetaDataPolicy {
/**
* {@code ResulSetMetaData} will be always accessible, because downloaded along
* with {@code ResultSet}.
*/
on,
/**
* {@code ResulSetMetaData} will not be accessible because not downloaded along
* with {@code ResultSet}. This may be changed with a
* {@link AceQLConnection#setResultSetMetaDataPolicy(ResultSetMetaDataPolicy)}
* call.
*/
off
}