Skip to content
This repository was archived by the owner on Apr 7, 2026. It is now read-only.

Commit 19b1629

Browse files
authored
fix: make enums in the Connection API public (#579)
Some enums were defined as package-private, but these were used in the public API of the Connection API. That made the specific methods in the Connection API unusable from outside the Spanner client library. Towards #253
1 parent 643b116 commit 19b1629

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/AutocommitDmlMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.cloud.spanner.connection;
1818

1919
/** Enum used to define the behavior of DML statements in autocommit mode */
20-
enum AutocommitDmlMode {
20+
public enum AutocommitDmlMode {
2121
TRANSACTIONAL,
2222
PARTITIONED_NON_ATOMIC;
2323

google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/TransactionMode.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package com.google.cloud.spanner.connection;
1818

1919
/** Enum used to define the transaction type of a {@link Connection} */
20-
enum TransactionMode {
20+
public enum TransactionMode {
2121
READ_ONLY_TRANSACTION("READ ONLY"),
2222
READ_WRITE_TRANSACTION("READ WRITE");
2323

0 commit comments

Comments
 (0)