Enum ConnectionProperty.Context
java.lang.Object
java.lang.Enum<ConnectionProperty.Context>
com.google.cloud.spanner.connection.ConnectionProperty.Context
- All Implemented Interfaces:
Serializable,Comparable<ConnectionProperty.Context>
- Enclosing class:
- ConnectionProperty<T>
Context indicates when a
ConnectionProperty may be set. Each higher-ordinal value
includes the preceding values, meaning that a ConnectionProperty with USER can be set both at connection startup and during the connection's lifetime.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectionProperty.ContextReturns the enum constant of this type with the specified name.static ConnectionProperty.Context[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STARTUP
The property can only be set at startup of the connection. -
USER
The property can be set at startup or by a user during the lifetime of a connection. The value is persisted until it is changed again by the user.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-