org.firebirdsql.gds
Interface BlobParameterBuffer
- public interface BlobParameterBuffer
Instance of this interface represents a BLOB Parameter Buffer from the
Firebird API documentation and specifies attributes for
GDS.iscCreateBlob2(IscDbHandle, IscTrHandle, IscBlobHandle, BlobParameterBuffer)
or
GDS.iscOpenBlob2(IscDbHandle, IscTrHandle, IscBlobHandle, BlobParameterBuffer)
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
GDS.iscSeekBlob(IscBlobHandle, int, int)
for more details).
Method Summary |
void |
addArgument(int argumentType)
Set a void (valueless) parameter on this
BlobParameterBuffer . |
void |
addArgument(int argumentType,
int value)
Set an int parameter on this
BlobParameterBuffer . |
void |
addArgument(int argumentType,
java.lang.String value)
Set a String parameter on this
BlobParameterBuffer . |
SOURCE_TYPE
public static final int SOURCE_TYPE
TARGET_TYPE
public static final int TARGET_TYPE
SOURCE_INTERP
public static final int SOURCE_INTERP
TARGET_INTERP
public static final int TARGET_INTERP
FILTER_PARAMETER
public static final int FILTER_PARAMETER
TYPE
public static final int TYPE
TYPE_SEGMENTED
public static final int TYPE_SEGMENTED
TYPE_STREAM
public static final int TYPE_STREAM
addArgument
public void addArgument(int argumentType)
- Set a void (valueless) parameter on this
BlobParameterBuffer
.
- Parameters:
argumentType
- The parameter to be set, either an
ISCConstantsone.isc_bpb_*
constant, or one of the
fields of this interface
addArgument
public void addArgument(int argumentType,
java.lang.String value)
- Set a
String
parameter on this
BlobParameterBuffer
.
- Parameters:
argumentType
- The parameter to be set, either an
ISCConstantsone.isc_bpb_*
constant, or one of the
fields of this interfacevalue
- The value to set for the given parameter
addArgument
public void addArgument(int argumentType,
int value)
- Set an
int
parameter on this
BlobParameterBuffer
.
- Parameters:
argumentType
- The parameter to be set, either an
ISCConstantsone.isc_bpb_*
constant, or one of the
fields of this interfacevalue
- The value to set for the given parameter
Copyright © 2001 David Jencks and other authors. All rights reserved.