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>

public static enum ConnectionProperty.Context extends Enum<ConnectionProperty.Context>
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 Details

    • STARTUP

      public static final ConnectionProperty.Context STARTUP
      The property can only be set at startup of the connection.
    • USER

      public static final ConnectionProperty.Context 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

      public static ConnectionProperty.Context[] 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

      public static ConnectionProperty.Context valueOf(String name)
      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 name
      NullPointerException - if the argument is null