public class CloudSpannerDataSource extends AbstractCloudSpannerWrapper implements DataSource
| Constructor and Description |
|---|
CloudSpannerDataSource() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection() |
Connection |
getConnection(String username,
String password)
This method will just call
getConnection() as a username and
password is not needed for a connection. |
String |
getDatabase() |
String |
getInstanceId() |
int |
getLoginTimeout() |
PrintWriter |
getLogWriter() |
String |
getOauthAccessToken() |
Logger |
getParentLogger() |
String |
getProjectId() |
String |
getPvtKeyPath() |
String |
getSimulateProductName() |
boolean |
isAllowExtendedMode() |
void |
setAllowExtendedMode(boolean allowExtendedMode) |
void |
setDatabase(String database) |
void |
setInstanceId(String instanceId) |
void |
setLoginTimeout(int seconds) |
void |
setLogWriter(PrintWriter out) |
void |
setOauthAccessToken(String oauthAccessToken) |
void |
setProjectId(String projectId) |
void |
setPvtKeyPath(String pvtKeyPath) |
void |
setSimulateProductName(String simulateProductName) |
extractColumnType, 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 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)
Copyright © 2017. All rights reserved.