public enum TransactionMode extends Enum<TransactionMode>
Connection
Enum Constant and Description |
---|
READ_ONLY_TRANSACTION |
READ_WRITE_TRANSACTION |
Modifier and Type | Method and Description |
---|---|
String |
getStatementString()
Use this method to get the correct format for use in a SQL statement.
|
String |
toString() |
static TransactionMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionMode READ_ONLY_TRANSACTION
public static final TransactionMode READ_WRITE_TRANSACTION
public static TransactionMode[] values()
for (TransactionMode c : TransactionMode.values()) System.out.println(c);
public static TransactionMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getStatementString()
SET TRANSACTION READ ONLY
TransactionMode
that can be used in a SQL
statement to set the transaction mode.public String toString()
toString
in class Enum<TransactionMode>
Copyright © 2022 Google LLC. All rights reserved.