public class CloudSpannerConnection extends AbstractCloudSpannerConnection
TRANSACTION_NONE, TRANSACTION_READ_COMMITTED, TRANSACTION_READ_UNCOMMITTED, TRANSACTION_REPEATABLE_READ, TRANSACTION_SERIALIZABLEabort, clearWarnings, createBlob, createClob, createNClob, createSQLXML, createStruct, getCatalog, getClientInfo, getClientInfo, getHoldability, getNetworkTimeout, getSchema, getTypeMap, getWarnings, prepareCall, prepareCall, releaseSavepoint, rollback, setCatalog, setClientInfo, setClientInfo, setHoldability, setNetworkTimeout, setSavepoint, setSavepoint, setSchema, setTypeMapextractColumnType, getClassName, getGoogleTypeName, isWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic static com.google.auth.oauth2.GoogleCredentials getCredentialsFromOAuthToken(String oauthToken)
public static com.google.auth.oauth2.GoogleCredentials getCredentialsFromFile(String credentialsPath) throws IOException
IOExceptionpublic void setSimulateProductName(String productName)
public Void executeDDL(String sql) throws SQLException
SQLExceptionpublic CloudSpannerStatement createStatement() throws SQLException
SQLExceptionpublic CloudSpannerPreparedStatement 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
SQLExceptionpublic CloudSpannerTransaction getTransaction()
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()
public String getClientId()
public boolean isValid(int timeout)
throws SQLException
SQLExceptionpublic Array createArrayOf(String typeName, Object[] elements) throws SQLException
SQLExceptionpublic MetaDataStore.TableKeyMetaData getTable(String name) throws SQLException
SQLExceptionpublic Properties getSuppliedProperties()
public boolean isAllowExtendedMode()
public com.google.cloud.Timestamp getLastCommitTimestamp()
Copyright © 2017. All rights reserved.