public class CloudSpannerDataSource extends AbstractCloudSpannerWrapper implements DataSource
| Constructor and Description |
|---|
CloudSpannerDataSource() |
extractColumnType, getClassName, getClassName, getGoogleTypeName, isWrapperFor, unwrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisWrapperFor, unwrappublic PrintWriter getLogWriter() throws SQLException
getLogWriter in interface CommonDataSourceSQLExceptionpublic void setLogWriter(PrintWriter out) throws SQLException
setLogWriter in interface CommonDataSourceSQLExceptionpublic void setLoginTimeout(int seconds)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLExceptionpublic int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLExceptionpublic Logger getParentLogger() throws SQLFeatureNotSupportedException
getParentLogger in interface CommonDataSourceSQLFeatureNotSupportedExceptionpublic Connection getConnection() throws SQLException
getConnection in interface DataSourceSQLExceptionpublic Connection getConnection(String username, String password) throws SQLException
getConnection() as a username and
password is not needed for a connection. Instead you need to supply a key
file.getConnection in interface DataSourceSQLExceptionpublic String getHost()
public void setHost(String host)
DataSource. Setting this property
also automatically sets the property UseCustomHost to true.host - The host to usepublic String getProjectId()
public void setProjectId(String projectId)
public String getInstanceId()
public void setInstanceId(String instanceId)
public String getDatabase()
public void setDatabase(String database)
public String getPvtKeyPath()
public void setPvtKeyPath(String pvtKeyPath)
public String getOauthAccessToken()
public void setOauthAccessToken(String oauthAccessToken)
public String getSimulateProductName()
public void setSimulateProductName(String simulateProductName)
public boolean isAllowExtendedMode()
public void setAllowExtendedMode(boolean allowExtendedMode)
public boolean isUseCustomHost()
public void setUseCustomHost(boolean useCustomHost)
Copyright © 2018. All rights reserved.