Class ConnectionOptionsHelper (0.27.1)

publicclass 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)

publicstaticSpannergetSpanner(Connectionconnection)
Parameter
Name Description
connection Connection
Returns
Type Description
com.google.cloud.spanner.Spanner

setCredentials(ConnectionOptions.Builder connectionOptionsBuilder, Credentials credentials)

publicstaticConnectionOptions.BuildersetCredentials(ConnectionOptions.BuilderconnectionOptionsBuilder,Credentialscredentials)
Parameters
Name Description
connectionOptionsBuilder Builder
credentials com.google.auth.Credentials
Returns
Type Description
Builder

Constructors

ConnectionOptionsHelper()

publicConnectionOptionsHelper()

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.