Enum CursorStateEnum
- java.lang.Object
-
- java.lang.Enum<CursorStateEnum>
-
- org.apache.directory.api.ldap.model.cursor.CursorStateEnum
-
- All Implemented Interfaces:
Serializable
,Comparable<CursorStateEnum>
public enum CursorStateEnum extends Enum<CursorStateEnum>
An enumeration to represent the various states of a Cursor.- Author:
- Apache Directory Project
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_INNER
the Cursor is positioned just after an element but not on any elementAFTER_LAST
the Cursor is positioned just after the last elementBEFORE_FIRST
the Cursor is positioned just before the first elementBEFORE_INNER
the Cursor is positioned just before an element but not on any elementCLOSED
the Cursor is closed and not operations can be performed on itJUST_OPENED
the Cursor has been created and so has not been positioned yetON_FIRST
the Cursor is positioned on the first elementON_INNER
the Cursor is positioned on an elementON_LAST
the Cursor is positioned on the last element
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CursorStateEnum
valueOf(String name)
Returns the enum constant of this type with the specified name.static CursorStateEnum[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JUST_OPENED
public static final CursorStateEnum JUST_OPENED
the Cursor has been created and so has not been positioned yet
-
BEFORE_FIRST
public static final CursorStateEnum BEFORE_FIRST
the Cursor is positioned just before the first element
-
AFTER_LAST
public static final CursorStateEnum AFTER_LAST
the Cursor is positioned just after the last element
-
BEFORE_INNER
public static final CursorStateEnum BEFORE_INNER
the Cursor is positioned just before an element but not on any element
-
AFTER_INNER
public static final CursorStateEnum AFTER_INNER
the Cursor is positioned just after an element but not on any element
-
ON_FIRST
public static final CursorStateEnum ON_FIRST
the Cursor is positioned on the first element
-
ON_LAST
public static final CursorStateEnum ON_LAST
the Cursor is positioned on the last element
-
ON_INNER
public static final CursorStateEnum ON_INNER
the Cursor is positioned on an element
-
CLOSED
public static final CursorStateEnum CLOSED
the Cursor is closed and not operations can be performed on it
-
-
Method Detail
-
values
public static CursorStateEnum[] 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 (CursorStateEnum c : CursorStateEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CursorStateEnum 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
-
-