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:

Field Summary

static int
FILTER_PARAMETER
static int
SOURCE_INTERP
static int
SOURCE_TYPE
static int
TARGET_INTERP
static int
TARGET_TYPE
static int
TYPE
static int
TYPE_SEGMENTED
static int
TYPE_STREAM

Method Summary

void
addArgument(int argumentType)
Set a void (valueless) parameter on this BlobParameterBuffer.
void
addArgument(int argumentType, String value)
Set a String parameter on this BlobParameterBuffer.
void
addArgument(int argumentType, int value)
Set an int parameter on this BlobParameterBuffer.

Field Details

FILTER_PARAMETER

public static final int FILTER_PARAMETER
Field Value:
6

SOURCE_INTERP

public static final int SOURCE_INTERP
Field Value:
4

SOURCE_TYPE

public static final int SOURCE_TYPE
Field Value:
1

TARGET_INTERP

public static final int TARGET_INTERP
Field Value:
5

TARGET_TYPE

public static final int TARGET_TYPE
Field Value:
2

TYPE

public static final int TYPE
Field Value:
3

TYPE_SEGMENTED

public static final int TYPE_SEGMENTED
Field Value:
0

TYPE_STREAM

public static final int TYPE_STREAM
Field Value:
1

Method Details

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,
                        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 interface
value - 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 interface
value - The value to set for the given parameter

Copyright B) 2001 David Jencks and other authors. All rights reserved.