Package com.google.cloud.spanner
Enum DecodeMode
- All Implemented Interfaces:
Serializable
,Comparable<DecodeMode>
Specifies how and when to decode a value from protobuf to a plain Java object.
-
Enum Constant Summary
Enum ConstantDescriptionDecodes all columns of a row directly when aResultSet
is advanced to the next row withResultSet.next()
Decodes a columns of a row the first time the value of that column is retrieved from the row.Decodes all columns of a row the first time aResultSet
value is retrieved from the row. -
Method Summary
Modifier and TypeMethodDescriptionstatic DecodeMode
Returns the enum constant of this type with the specified name.static DecodeMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DIRECT
Decodes all columns of a row directly when aResultSet
is advanced to the next row withResultSet.next()
-
LAZY_PER_ROW
Decodes all columns of a row the first time aResultSet
value is retrieved from the row. -
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
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
-