Package org.firebirdsql.gds.ng
Enum FbBlob.SeekMode
- java.lang.Object
- 
- java.lang.Enum<FbBlob.SeekMode>
- 
- org.firebirdsql.gds.ng.FbBlob.SeekMode
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Comparable<FbBlob.SeekMode>
 - Enclosing interface:
- FbBlob
 
 public static enum FbBlob.SeekMode extends java.lang.Enum<FbBlob.SeekMode> Seek mode forFbBlob.seek(int, org.firebirdsql.gds.ng.FbBlob.SeekMode).
- 
- 
Enum Constant SummaryEnum Constants Enum Constant Description ABSOLUTEAbsolute seek from start of blob.ABSOLUTE_FROM_ENDAbsolute seek from end of blob.RELATIVERelative seek from current position in blob.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FbBlob.SeekModegetById(int seekModeId)Get the SeekMode instance by the (Firebird) seekmode id.intgetSeekModeId()static FbBlob.SeekModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FbBlob.SeekMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
 
- 
- 
- 
Enum Constant Detail- 
ABSOLUTEpublic static final FbBlob.SeekMode ABSOLUTE Absolute seek from start of blob.
 - 
RELATIVEpublic static final FbBlob.SeekMode RELATIVE Relative seek from current position in blob.
 - 
ABSOLUTE_FROM_ENDpublic static final FbBlob.SeekMode ABSOLUTE_FROM_END Absolute seek from end of blob.
 
- 
 - 
Method Detail- 
valuespublic static FbBlob.SeekMode[] 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 (FbBlob.SeekMode c : FbBlob.SeekMode.values()) System.out.println(c); - Returns:
- an array containing the constants of this enum type, in the order they are declared
 
 - 
valueOfpublic static FbBlob.SeekMode valueOf(java.lang.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:
- java.lang.IllegalArgumentException- if this enum type has no constant with the specified name
- java.lang.NullPointerException- if the argument is null
 
 - 
getSeekModeIdpublic int getSeekModeId() - Returns:
- Seek mode value used within Firebird (and the native API, wire protocol)
 
 - 
getByIdpublic static FbBlob.SeekMode getById(int seekModeId) Get the SeekMode instance by the (Firebird) seekmode id.Valid values are: - 0- for- ABSOLUTE
- 1- for- RELATIVE
- 2- for- ABSOLUTE_FROM_END
 - Parameters:
- seekModeId- The seekmode id.
- Returns:
- Instance of SeekMode matching the id.
- Throws:
- java.lang.IllegalArgumentException- For values that do not have a SeekMode instance.
 
 
- 
 
-