Class ConnectionOptionsHelper (0.5.1)

public class ConnectionOptionsHelper

Simple helper class to get access to a package-private method in the ConnectionOptions.

Inheritance

java.lang.Object > ConnectionOptionsHelper

Static Methods

getSpanner(Connection connection)

public static Spanner getSpanner(Connection connection)
Parameter
NameDescription
connectionConnection
Returns
TypeDescription
com.google.cloud.spanner.Spanner

setCredentials(ConnectionOptions.Builder connectionOptionsBuilder, GoogleCredentials credentials)

public static ConnectionOptions.Builder setCredentials(ConnectionOptions.Builder connectionOptionsBuilder, GoogleCredentials credentials)
Parameters
NameDescription
connectionOptionsBuilderBuilder
credentialscom.google.auth.oauth2.GoogleCredentials
Returns
TypeDescription
Builder

Constructors

ConnectionOptionsHelper()

public ConnectionOptionsHelper()