- All Implemented Interfaces:
Serializable
,Comparable<FbBlob.SeekMode>
,Constable
- Enclosing interface:
- FbBlob
Seek mode for
FbBlob.seek(int, org.firebirdsql.gds.ng.FbBlob.SeekMode)
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAbsolute seek from start of blob.Absolute seek from end of blob.Relative seek from current position in blob. -
Method Summary
Modifier and TypeMethodDescriptionstatic FbBlob.SeekMode
getById
(int seekModeId) Get the SeekMode instance by the (Firebird) seekmode id.int
static FbBlob.SeekMode
Returns the enum constant of this class with the specified name.static FbBlob.SeekMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABSOLUTE
Absolute seek from start of blob. -
RELATIVE
Relative seek from current position in blob. -
ABSOLUTE_FROM_END
Absolute seek from end of blob.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getSeekModeId
public int getSeekModeId()- Returns:
- Seek mode value used within Firebird (and the native API, wire protocol)
-
getById
Get the SeekMode instance by the (Firebird) seekmode id.Valid values are:
0
- forABSOLUTE
1
- forRELATIVE
2
- forABSOLUTE_FROM_END
- Parameters:
seekModeId
- The seekmode id.- Returns:
- Instance of SeekMode matching the id.
- Throws:
IllegalArgumentException
- For values that do not have a SeekMode instance.
-