Enum DecodeMode

java.lang.Object
java.lang.Enum<DecodeMode>
com.google.cloud.spanner.DecodeMode
All Implemented Interfaces:
Serializable, Comparable<DecodeMode>

public enum DecodeMode extends Enum<DecodeMode>
Specifies how and when to decode a value from protobuf to a plain Java object.
  • Enum Constant Details

    • DIRECT

      public static final DecodeMode DIRECT
      Decodes all columns of a row directly when a ResultSet is advanced to the next row with ResultSet.next()
    • LAZY_PER_ROW

      public static final DecodeMode LAZY_PER_ROW
      Decodes all columns of a row the first time a ResultSet value is retrieved from the row.
    • LAZY_PER_COL

      public static final DecodeMode LAZY_PER_COL
      Decodes a columns of a row the first time the value of that column is retrieved from the row.
  • Method Details

    • values

      public static DecodeMode[] 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 DecodeMode 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