Package com.google.cloud.spanner
Enum AsyncResultSet.CursorState
- java.lang.Object
-
- java.lang.Enum<AsyncResultSet.CursorState>
-
- com.google.cloud.spanner.AsyncResultSet.CursorState
-
- All Implemented Interfaces:
Serializable
,Comparable<AsyncResultSet.CursorState>
- Enclosing interface:
- AsyncResultSet
public static enum AsyncResultSet.CursorState extends Enum<AsyncResultSet.CursorState>
Response code fromtryNext()
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AsyncResultSet.CursorState
valueOf(String name)
Returns the enum constant of this type with the specified name.static AsyncResultSet.CursorState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OK
public static final AsyncResultSet.CursorState OK
Cursor has been moved to a new row.
-
DONE
public static final AsyncResultSet.CursorState DONE
Read is complete, all rows have been consumed, and there are no more.
-
NOT_READY
public static final AsyncResultSet.CursorState NOT_READY
No further information known at this time, thus current row not available.
-
-
Method Detail
-
values
public static AsyncResultSet.CursorState[] 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 (AsyncResultSet.CursorState c : AsyncResultSet.CursorState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsyncResultSet.CursorState 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
-
-