public class CloudSpannerConnectionPoolDataSource extends CloudSpannerDataSource implements ConnectionPoolDataSource, Serializable
| Constructor and Description |
|---|
CloudSpannerConnectionPoolDataSource() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
Logger |
getParentLogger() |
CloudSpannerPooledConnection |
getPooledConnection()
Gets a connection which may be pooled by the app server or middleware
implementation of DataSource.
|
CloudSpannerPooledConnection |
getPooledConnection(String user,
String password)
Gets a connection which may be pooled by the app server or middleware
implementation of DataSource.
|
boolean |
isDefaultAutoCommit()
Gets whether connections supplied by this pool will have autoCommit
turned on by default.
|
void |
setDefaultAutoCommit(boolean defaultAutoCommit)
Sets whether connections supplied by this pool will have autoCommit
turned on by default.
|
getConnection, getConnection, getDatabase, getInstanceId, getLoginTimeout, getLogWriter, getOauthAccessToken, getProjectId, getPvtKeyPath, getSimulateProductName, isAllowExtendedMode, setAllowExtendedMode, setDatabase, setInstanceId, setLoginTimeout, setLogWriter, setOauthAccessToken, setProjectId, setPvtKeyPath, setSimulateProductNameextractColumnType, getClassName, getClassName, getGoogleTypeName, isWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLoginTimeout, getLogWriter, setLoginTimeout, setLogWriterisWrapperFor, unwrappublic CloudSpannerConnectionPoolDataSource()
public String getDescription()
public CloudSpannerPooledConnection getPooledConnection() throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLException - Occurs when the physical database connection cannot be
established.public CloudSpannerPooledConnection getPooledConnection(String user, String password) throws SQLException
getPooledConnection in interface ConnectionPoolDataSourceSQLException - Occurs when the physical database connection cannot be
established.public boolean isDefaultAutoCommit()
public void setDefaultAutoCommit(boolean defaultAutoCommit)
defaultAutoCommit - whether connections supplied by this pool will have autoCommitpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourcegetParentLogger in class CloudSpannerDataSourceSQLFeatureNotSupportedExceptionCopyright © 2018. All rights reserved.