public class CloudSpannerConnection extends AbstractCloudSpannerConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLE| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
commit() |
Statement |
createStatement() |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency) |
Statement |
createStatement(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
Void |
executeDDL(String sql) |
boolean |
getAutoCommit() |
static com.google.auth.oauth2.GoogleCredentials |
getCredentialsFromFile(String credentialsPath) |
DatabaseMetaData |
getMetaData() |
int |
getTransactionIsolation() |
String |
getUrl() |
boolean |
isClosed() |
boolean |
isReadOnly() |
String |
nativeSQL(String sql) |
CallableStatement |
prepareCall(String sql) |
PreparedStatement |
prepareStatement(String sql) |
PreparedStatement |
prepareStatement(String sql,
int autoGeneratedKeys) |
PreparedStatement |
prepareStatement(String sql,
int[] columnIndexes) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency) |
PreparedStatement |
prepareStatement(String sql,
int resultSetType,
int resultSetConcurrency,
int resultSetHoldability) |
PreparedStatement |
prepareStatement(String sql,
String[] columnNames) |
void |
rollback() |
void |
setAutoCommit(boolean autoCommit) |
void |
setReadOnly(boolean readOnly) |
void |
setSimulateProductName(String productName) |
void |
setTransactionIsolation(int level) |
protected void |
startNewTransaction() |
abort, clearWarnings, createArrayOf, createBlob, createClob, createNClob, createSQLXML, createStruct, getCatalog, getClientInfo, getClientInfo, getHoldability, getNetworkTimeout, getSchema, getTypeMap, getWarnings, isValid, isWrapperFor, prepareCall, prepareCall, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setSavepoint, setSavepoint, setSchema, setTypeMap, unwrappublic static com.google.auth.oauth2.GoogleCredentials getCredentialsFromFile(String credentialsPath) throws IOException
IOExceptionpublic void setSimulateProductName(String productName)
public Void executeDDL(String sql) throws SQLException
SQLExceptionpublic Statement createStatement() throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql) throws SQLException
SQLExceptionpublic CallableStatement prepareCall(String sql) throws SQLException
SQLExceptionpublic String nativeSQL(String sql) throws SQLException
SQLExceptionpublic void setAutoCommit(boolean autoCommit)
throws SQLException
SQLExceptionpublic boolean getAutoCommit()
throws SQLException
SQLExceptionpublic void commit()
throws SQLException
SQLExceptionpublic void rollback()
throws SQLException
SQLExceptionprotected void startNewTransaction()
public void close()
throws SQLException
SQLExceptionpublic boolean isClosed()
throws SQLException
SQLExceptionpublic DatabaseMetaData getMetaData() throws SQLException
SQLExceptionpublic void setReadOnly(boolean readOnly)
throws SQLException
SQLExceptionpublic boolean isReadOnly()
throws SQLException
SQLExceptionpublic void setTransactionIsolation(int level)
throws SQLException
SQLExceptionpublic int getTransactionIsolation()
throws SQLException
SQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency) throws SQLException
SQLExceptionpublic Statement createStatement(int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int resultSetType, int resultSetConcurrency, int resultSetHoldability) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int autoGeneratedKeys) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, int[] columnIndexes) throws SQLException
SQLExceptionpublic PreparedStatement prepareStatement(String sql, String[] columnNames) throws SQLException
SQLExceptionpublic String getUrl()
Copyright © 2017. All rights reserved.