Package com.google.cloud.spanner
Enum DatabaseInfo.DatabaseField
- java.lang.Object
-
- java.lang.Enum<DatabaseInfo.DatabaseField>
-
- com.google.cloud.spanner.DatabaseInfo.DatabaseField
-
- All Implemented Interfaces:
com.google.cloud.FieldSelector
,Serializable
,Comparable<DatabaseInfo.DatabaseField>
- Enclosing class:
- DatabaseInfo
public static enum DatabaseInfo.DatabaseField extends Enum<DatabaseInfo.DatabaseField> implements com.google.cloud.FieldSelector
Represent an updatable field in a Cloud Spanner database.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DROP_PROTECTION
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSelector()
static DatabaseInfo.DatabaseField
valueOf(String name)
Returns the enum constant of this type with the specified name.static DatabaseInfo.DatabaseField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DROP_PROTECTION
public static final DatabaseInfo.DatabaseField DROP_PROTECTION
-
-
Method Detail
-
values
public static DatabaseInfo.DatabaseField[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DatabaseInfo.DatabaseField c : DatabaseInfo.DatabaseField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DatabaseInfo.DatabaseField 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 nameNullPointerException
- if the argument is null
-
getSelector
public String getSelector()
- Specified by:
getSelector
in interfacecom.google.cloud.FieldSelector
-
-