Class ConnectionOptionsHelper (0.18.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, Credentials credentials)

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

Constructors

ConnectionOptionsHelper()

public ConnectionOptionsHelper()