| Constructor and Description |
|---|
ProtocolImpl(String url,
Properties props) |
public ProtocolImpl(String url, Properties props)
public String getUserName()
getUserName in interface Protocolpublic String getPassword()
getPassword in interface Protocolpublic String getCredentials()
public void setReadOnly(boolean readOnly)
setReadOnly in interface Protocolpublic boolean getReadOnly()
getReadOnly in interface Protocolpublic void connect()
throws Exception
public Cluster handleClusterResponse(org.apache.http.client.methods.CloseableHttpResponse response) throws IOException
IOExceptionpublic CBResultSet query(CBStatement statement, String sql) throws SQLException
query in interface ProtocolSQLExceptionpublic int executeUpdate(CBStatement statement, String query) throws SQLException
executeUpdate in interface ProtocolSQLExceptionpublic CouchResponse handleResponse(String sql, org.apache.http.client.methods.CloseableHttpResponse response) throws SQLException, IOException
SQLExceptionIOExceptionpublic CouchResponse doQuery(String query, Map queryParameters) throws SQLException
doQuery in interface ProtocolSQLExceptionpublic boolean execute(CBStatement statement, String query) throws SQLException
execute in interface ProtocolSQLExceptionpublic CouchResponse prepareStatement(String sql, String[] returning) throws SQLException
prepareStatement in interface ProtocolSQLExceptionpublic int[] executeBatch()
throws SQLException
executeBatch in interface ProtocolSQLExceptionpublic void addBatch(String query) throws SQLException
addBatch in interface ProtocolSQLExceptionpublic void clearBatch()
clearBatch in interface Protocolpublic long getUpdateCount()
getUpdateCount in interface Protocolpublic CBResultSet getResultSet()
getResultSet in interface Protocolpublic void setConnectionTimeout(String timeout)
setConnectionTimeout in interface Protocolpublic void setConnectionTimeout(int timeout)
setConnectionTimeout in interface Protocolpublic void setQueryTimeout(int seconds)
throws SQLException
setQueryTimeout in interface ProtocolSQLExceptionpublic int getQueryTimeout()
throws SQLException
getQueryTimeout in interface ProtocolSQLExceptionpublic void close()
throws Exception
public SQLWarning getWarnings() throws SQLException
getWarnings in interface ProtocolSQLExceptionpublic void clearWarning()
throws SQLException
clearWarning in interface ProtocolSQLExceptionpublic void setSchema(String schema) throws SQLException
setSchema in interface ProtocolSQLExceptionpublic String getSchema() throws SQLException
getSchema in interface ProtocolSQLExceptionpublic Cluster getCluster()
public void setCluster(Cluster cluster)
public Instance getNextEndpoint()
public void invalidateEndpoint(Instance instance)
public void pollCluster()
throws SQLException
pollCluster in interface ProtocolSQLExceptionCopyright © 2016. All rights reserved.