Package com.google.cloud.spanner.jdbc (2.19.3)

GitHub Repository

Classes

Class Description
com.google.cloud.spanner.jdbc.JdbcConstants Constants for special values used by the Cloud Spanner JDBC driver.
com.google.cloud.spanner.jdbc.JdbcDataSource DataSource implementation for Google Cloud Spanner.
com.google.cloud.spanner.jdbc.JdbcDriver JDBC Driver for Google Cloud Spanner.

Usage:

com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory Factory class for creating SQLExceptions for Cloud Spanner
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcSqlExceptionImpl Base SQLException for Cloud Spanner
com.google.cloud.spanner.jdbc.JsonType Custom SQL type for Spanner JSON data type. This type (or the vendor type number) must be used when setting a JSON parameter using PreparedStatement#setObject(int, Object, SQLType).
com.google.cloud.spanner.jdbc.PgJsonbType
com.google.cloud.spanner.jdbc.ProtoEnumType Custom SQL type for Spanner PROTO data type. This type (or the vendor type number) must be used when setting a PROTO parameter using PreparedStatement#setObject(int, Object, SQLType).
com.google.cloud.spanner.jdbc.ProtoMessageType Custom SQL type for Spanner PROTO data type. This type (or the vendor type number) must be used when setting a PROTO parameter using PreparedStatement#setObject(int, Object, SQLType).
com.google.cloud.spanner.jdbc.SpannerPool See Also: com.google.cloud.spanner.connection.SpannerPool

Interfaces

Interface Description
com.google.cloud.spanner.jdbc.CloudSpannerJdbcConnection JDBC connection with a number of additional Cloud Spanner specific methods. JDBC connections that are returned by the Cloud Spanner JdbcDriver will implement this interface.

Calling Connection#unwrap(Class) with CloudSpannerJdbcConnection class as

com.google.cloud.spanner.jdbc.CloudSpannerJdbcPartitionedQueryResultSet Result set that is returned for partitioned queries, e.g. for 'run partitioned query select ...' or for CloudSpannerJdbcPreparedStatement#runPartitionedQuery(PartitionOptions, QueryOption...).
com.google.cloud.spanner.jdbc.CloudSpannerJdbcPreparedStatement This interface is implemented by PreparedStatements that are created on Cloud Spanner JDBC connections.
com.google.cloud.spanner.jdbc.CloudSpannerJdbcStatement This interface is implemented by Statements that are created on Cloud Spanner JDBC connections.
com.google.cloud.spanner.jdbc.TransactionRetryListener Use com.google.cloud.spanner.connection.TransactionRetryListener

Enums

Enum Description
com.google.cloud.spanner.jdbc.TransactionRetryListener.RetryResult Use com.google.cloud.spanner.connection.TransactionRetryListener.RetryResult

Exceptions

Exception Description
com.google.cloud.spanner.jdbc.JdbcSqlException Base interface for all Cloud Spanner SQLExceptions. All SQLExceptions that are thrown by the Cloud Spanner JDBC driver implement this interface.
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcAbortedDueToConcurrentModificationException Specific SQLException that is thrown when a transaction was aborted and could not be retried due to a concurrent modification.
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcAbortedException Specific SQLException that is thrown when a transaction was aborted and could not be successfully retried.
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcSqlBatchUpdateException Specific SQLException that is thrown when a SpannerBatchUpdateException occurs.
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcSqlClientInfoException Specific SQLException that is thrown when setting client info on a connection
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcSqlFeatureNotSupportedException Specific SQLException that is thrown for unsupported methods and values
com.google.cloud.spanner.jdbc.JdbcSqlExceptionFactory.JdbcSqlTimeoutException Specific SQLException that is thrown when a statement times out