Package org.firebirdsql.gds
Interface BlobParameterBuffer
- All Superinterfaces:
Iterable<Parameter>,ParameterBuffer
- All Known Implementing Classes:
BlobParameterBufferImp
Instance of this interface represents a BLOB Parameter Buffer from the
Firebird API documentation and specifies attributes for
FbDatabase.createBlobForOutput(org.firebirdsql.gds.ng.FbTransaction, BlobParameterBuffer)
or
FbDatabase.createBlobForInput(org.firebirdsql.gds.ng.FbTransaction, BlobParameterBuffer, long)
operations.
Two features are available:
- Specifying the source and target BLOB types (server uses BLOB filters to perform the conversion)
- Specifying type of the BLOB - either segmented or stream. The only
visible to user difference between segmented and stream BLOBs is the fact
that "seek" operation is not defined for segmented BLOBs (see
FbBlob.seek(int, org.firebirdsql.gds.ng.FbBlob.SeekMode)for more details).
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidaddArgument(int argumentType) Set a void (valueless) parameter on thisBlobParameterBuffer.voidaddArgument(int argumentType, int value) Set anintparameter on thisBlobParameterBuffer.voidaddArgument(int argumentType, String value) Set aStringparameter on thisBlobParameterBuffer.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.firebirdsql.gds.ParameterBuffer
addArgument, addArgument, addArgument, getArgumentAsInt, getArgumentAsString, getType, hasArgument, iterator, removeArgument, size, toBytes, toBytesWithType, toXdrable, writeArgumentsTo
-
Field Details
-
SOURCE_TYPE
static final int SOURCE_TYPE- See Also:
-
TARGET_TYPE
static final int TARGET_TYPE- See Also:
-
SOURCE_INTERP
static final int SOURCE_INTERP- See Also:
-
TARGET_INTERP
static final int TARGET_INTERP- See Also:
-
FILTER_PARAMETER
static final int FILTER_PARAMETER- See Also:
-
TYPE
static final int TYPE- See Also:
-
TYPE_SEGMENTED
static final int TYPE_SEGMENTED- See Also:
-
TYPE_STREAM
static final int TYPE_STREAM- See Also:
-
-
Method Details
-
addArgument
void addArgument(int argumentType) Set a void (valueless) parameter on thisBlobParameterBuffer.- Specified by:
addArgumentin interfaceParameterBuffer- Parameters:
argumentType- The parameter to be set, either anISCConstants.isc_bpb_*constant, or one of the constants of this interface
-
addArgument
Set aStringparameter on thisBlobParameterBuffer.- Specified by:
addArgumentin interfaceParameterBuffer- Parameters:
argumentType- The parameter to be set, either anISCConstants.isc_bpb_*constant, or one of the constants of this interfacevalue- The value to set for the given parameter
-
addArgument
void addArgument(int argumentType, int value) Set anintparameter on thisBlobParameterBuffer.- Specified by:
addArgumentin interfaceParameterBuffer- Parameters:
argumentType- The parameter to be set, either anISCConstants.isc_bpb_*constant, or one of the constants of this interfacevalue- The value to set for the given parameter
-