public interface GDS
GDS
has most of the C client interface functions
lightly mapped to java, as well as the constants returned from the server.Modifier and Type | Method and Description |
---|---|
void |
close()
Close this GDS instance.
|
BlobParameterBuffer |
createBlobParameterBuffer()
Create a new
BlobParameterBuffer instance for setting blob
parameters in the current GDS implementation. |
DatabaseParameterBuffer |
createDatabaseParameterBuffer()
Create a new
DatabaseParameterBuffer instance for setting
database parameters in the current GDS implementation. |
EventHandle |
createEventHandle(java.lang.String eventName)
Create a new
EventHandle specific to a given
GDS implementation. |
IscBlobHandle |
createIscBlobHandle()
Factory method to create a new
IscBlobHandle instance
specific to the implementation of this interface. |
IscDbHandle |
createIscDbHandle()
Factory method to create a new
IscDbHandle instance specific to
the implementation of this interface. |
IscStmtHandle |
createIscStmtHandle()
Factory method to create a new
IscStmtHandle instance
specific to the implementation of this interface. |
IscSvcHandle |
createIscSvcHandle()
Factory method to create a new
IscSvcHandle instance
that is linked to the current GDS implemenation. |
IscTrHandle |
createIscTrHandle()
Factory method to create a new
IscTrHandle instance that
is linked to the current GDS implementation. |
ServiceParameterBuffer |
createServiceParameterBuffer()
Create a new
ServiceParameterBuffer instance for setting
service parameters in the current GDS implementation. |
ServiceRequestBuffer |
createServiceRequestBuffer(int taskIdentifier)
Create a new
ServiceRequestBuffer instance for setting
service request parameters in the current GDS implementation. |
void |
fbCancelOperation(IscDbHandle dbHandle,
int kind)
Cancel the currently running operation on the server
|
void |
getSqlCounts(IscStmtHandle stmt)
Fetch count information for a statement.
|
org.firebirdsql.gds.impl.GDSType |
getType()
Get type of this instance.
|
void |
iscAttachDatabase(java.lang.String fileName,
IscDbHandle dbHandle,
DatabaseParameterBuffer databaseParameterBuffer)
Attach to an existing database via a filename.
|
byte[] |
iscBlobInfo(IscBlobHandle handle,
byte[] items,
int bufferLength)
Retrieve data about an existing blob.
|
void |
iscCancelEvents(IscDbHandle dbHandle,
EventHandle eventHandle)
Cancel event listening based on an
EventHandle . |
void |
iscCloseBlob(IscBlobHandle blob)
Close an open blob.
|
void |
iscCommitRetaining(IscTrHandle trHandle) |
void |
iscCommitTransaction(IscTrHandle trHandle)
Commit a transaction.
|
void |
iscCreateBlob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
BlobParameterBuffer blobParameterBuffer)
Create a new blob within a given transaction.
|
void |
iscCreateDatabase(java.lang.String fileName,
IscDbHandle dbHandle,
DatabaseParameterBuffer databaseParameterBuffer)
Create a database based on the supplied filename and database parameters.
|
byte[] |
iscDatabaseInfo(IscDbHandle dbHandle,
byte[] items,
int bufferLength)
Get information about the database to which
IscDbHandle is
attached. |
void |
iscDetachDatabase(IscDbHandle dbHandle)
Detach the given database handle from its database.
|
void |
iscDropDatabase(IscDbHandle dbHandle)
Drop (delete) the database to which
IscDbHandle is attached. |
void |
iscDsqlAllocateStatement(IscDbHandle dbHandle,
IscStmtHandle stmtHandle)
Allocate a dynamic SQL (DSQL) statement on the database to which
IscDbHandle is attached. |
XSQLDA |
iscDsqlDescribe(IscStmtHandle stmtHandle,
int daVersion)
Retrieve data for a statement.
|
XSQLDA |
iscDsqlDescribeBind(IscStmtHandle stmtHandle,
int daVersion)
Retrieve data for a bind statement.
|
void |
iscDsqlExecImmed2(IscDbHandle dbHandle,
IscTrHandle trHandle,
byte[] statement,
int dialect,
XSQLDA inXSQLDA,
XSQLDA outXSQLDA)
Execute a string SQL statement directly, without first allocating a
statement handle.
|
void |
iscDsqlExecImmed2(IscDbHandle dbHandle,
IscTrHandle trHandle,
java.lang.String statement,
int dialect,
XSQLDA inXSQLDA,
XSQLDA outXSQLDA)
Execute a string SQL statement directly, without first allocating a
statement handle.
|
void |
iscDsqlExecImmed2(IscDbHandle dbHandle,
IscTrHandle trHandle,
java.lang.String statement,
java.lang.String encoding,
int dialect,
XSQLDA inXSQLDA,
XSQLDA outXSQLDA)
|
void |
iscDsqlExecute(IscTrHandle trHandle,
IscStmtHandle stmtHandle,
int daVersion,
XSQLDA xsqlda)
Execute a statement with only outgoing data.
|
void |
iscDsqlExecute2(IscTrHandle trHandle,
IscStmtHandle stmtHandle,
int daVersion,
XSQLDA inXSQLDA,
XSQLDA outXSQLDA)
Execute a statement with outgoing and incoming data.
|
void |
iscDsqlExecuteImmediate(IscDbHandle dbHandle,
IscTrHandle trHandle,
byte[] statement,
int dialect,
XSQLDA xsqlda)
Execute a string SQL statement directly, without first allocating a
statement handle.
|
void |
iscDsqlExecuteImmediate(IscDbHandle dbHandle,
IscTrHandle trHandle,
java.lang.String statement,
int dialect,
XSQLDA xsqlda)
Execute a string SQL statement directly, without first allocating a
statement handle.
|
void |
iscDsqlExecuteImmediate(IscDbHandle dbHandle,
IscTrHandle trHandle,
java.lang.String statement,
java.lang.String encoding,
int dialect,
XSQLDA xsqlda)
|
void |
iscDsqlFetch(IscStmtHandle stmt_handle,
int daVersion,
XSQLDA xsqlda,
int fetchSize)
Retrieve record data from a statement.
|
void |
iscDsqlFreeStatement(IscStmtHandle stmtHandle,
int option)
Free a statement in the database that is pointed to by a valid handle.
|
XSQLDA |
iscDsqlPrepare(IscTrHandle trHandle,
IscStmtHandle stmtHandle,
byte[] statement,
int dialect)
Prepare a string SQL statement for execution in the database.
|
XSQLDA |
iscDsqlPrepare(IscTrHandle trHandle,
IscStmtHandle stmtHandle,
java.lang.String statement,
int dialect)
Prepare a string SQL statement for execution in the database.
|
XSQLDA |
iscDsqlPrepare(IscTrHandle trHandle,
IscStmtHandle stmtHandle,
java.lang.String statement,
java.lang.String encoding,
int dialect)
Deprecated.
|
void |
iscDsqlSetCursorName(IscStmtHandle stmtHandle,
java.lang.String cursorName,
int type)
Set the name to be used for a given statement.
|
byte[] |
iscDsqlSqlInfo(IscStmtHandle stmtHandle,
byte[] items,
int bufferLength)
Retrieve data about a statement.
|
void |
iscEventBlock(EventHandle eventHandle)
Initialize the internal databastructures for an
EventHandle . |
void |
iscEventCounts(EventHandle eventHandle)
Retrieve count information after an event has occurred.
|
byte[] |
iscGetSegment(IscBlobHandle blob,
int maxread)
Fetch a segment of a blob.
|
void |
iscOpenBlob2(IscDbHandle db,
IscTrHandle tr,
IscBlobHandle blob,
BlobParameterBuffer blobParameterBuffer)
Open a blob within a given transaction.
|
void |
iscPrepareTransaction(IscTrHandle trHandle) |
void |
iscPrepareTransaction2(IscTrHandle trHandle,
byte[] bytes) |
void |
iscPutSegment(IscBlobHandle blob_handle,
byte[] buffer)
Write a segment of data to a blob.
|
int |
iscQueueEvents(IscDbHandle dbHandle,
EventHandle eventHandle,
EventHandler eventHandler)
Queue an EventHandler.
|
void |
iscReconnectTransaction(IscTrHandle trHandle,
IscDbHandle dbHandle,
long transactionId)
Reconnect "in limbo" transaction using new database handle.
|
void |
iscRollbackRetaining(IscTrHandle trHandle) |
void |
iscRollbackTransaction(IscTrHandle trHandle)
Rollback a transaction.
|
void |
iscSeekBlob(IscBlobHandle handle,
int position,
int seekMode)
Seek to a given position in a blob.
|
void |
iscServiceAttach(java.lang.String service,
IscSvcHandle serviceHandle,
ServiceParameterBuffer serviceParameterBuffer)
Attach to a Service Manager.
|
void |
iscServiceDetach(IscSvcHandle serviceHandle)
Detach from a Service Manager.
|
void |
iscServiceQuery(IscSvcHandle serviceHandle,
ServiceParameterBuffer serviceParameterBuffer,
ServiceRequestBuffer serviceRequestBuffer,
byte[] resultBuffer)
Query a service manager
|
void |
iscServiceStart(IscSvcHandle serviceHandle,
ServiceRequestBuffer serviceRequestBuffer)
Start a service operation.
|
void |
iscStartTransaction(IscTrHandle trHandle,
IscDbHandle dbHandle,
TransactionParameterBuffer tpb)
Start a transaction based on a handle to a transaction.
|
byte[] |
iscTransactionInformation(IscTrHandle trHandle,
byte[] requestBuffer,
int bufferLen) |
int |
iscVaxInteger(byte[] buffer,
int pos,
int length)
Retrieve an integer value from a sequence of bytes.
|
long |
iscVaxLong(byte[] buffer,
int pos,
int length)
Retrieve an long value from a sequence of bytes.
|
TransactionParameterBuffer |
newTransactionParameterBuffer()
Create new
TransactionParameterBuffer instance for setting
transaction parameters in the current GDS implementation. |
IscDbHandle createIscDbHandle()
IscDbHandle
instance specific to
the implementation of this interface.IscDbHandle
IscTrHandle createIscTrHandle()
IscTrHandle
instance that
is linked to the current GDS
implementation.IscTrHandle
instanceIscStmtHandle createIscStmtHandle()
IscStmtHandle
instance
specific to the implementation of this interface.IscStmtHandle
instanceIscBlobHandle createIscBlobHandle()
IscBlobHandle
instance
specific to the implementation of this interface.IscBlobHandle
instanceIscSvcHandle createIscSvcHandle()
IscSvcHandle
instance
that is linked to the current GDS
implemenation.IscSvcHandle
instanceServiceParameterBuffer createServiceParameterBuffer()
ServiceParameterBuffer
instance for setting
service parameters in the current GDS implementation.ServiceParameterBuffer
ServiceRequestBuffer createServiceRequestBuffer(int taskIdentifier)
ServiceRequestBuffer
instance for setting
service request parameters in the current GDS implementation. The
returned ServiceRequestBuffer
is linked to a specific
Services API task, and must be one of the isc_info_svc_*
or isc_action_svc
constants from ISCConstants
.taskIdentifier
- The specific Services API task for which the
ServiceRequestBuffer
is createdServiceRequestBuffer
DatabaseParameterBuffer createDatabaseParameterBuffer()
DatabaseParameterBuffer
instance for setting
database parameters in the current GDS implementation.DatabaseParameterBuffer
BlobParameterBuffer createBlobParameterBuffer()
BlobParameterBuffer
instance for setting blob
parameters in the current GDS implementation.BlobParameterBuffer
TransactionParameterBuffer newTransactionParameterBuffer()
TransactionParameterBuffer
instance for setting
transaction parameters in the current GDS implementation.TransactionParameterBuffer
.void close()
void iscCreateDatabase(java.lang.String fileName, IscDbHandle dbHandle, DatabaseParameterBuffer databaseParameterBuffer) throws GDSException
IscDbHandle
is attached to the newly
created database.fileName
- The filename for the new database, including host and port.
The expected format is host:port:filepath. The value for host
is localhost if not supplied. The value for port is 3050 if
not supplied.dbHandle
- The handle to attach to the new databasedatabaseParameterBuffer
- The parameters for the new database and attachment to itGDSException
- if an error occurs while creating the databasevoid iscAttachDatabase(java.lang.String fileName, IscDbHandle dbHandle, DatabaseParameterBuffer databaseParameterBuffer) throws GDSException
fileName
- The filename for the database, including host and port. The
expected format is
<host name>/<port>:<file path>
.
The value for host is localhost if not supplied. The value for
port is 3050 if not supplied.dbHandle
- The handle to attach to the databasedatabaseParameterBuffer
- parameters for the database attachmentGDSException
- if an error occurs while attaching to the databasebyte[] iscDatabaseInfo(IscDbHandle dbHandle, byte[] items, int bufferLength) throws GDSException
IscDbHandle
is
attached. The requested parameters are values set in items
,
and the values in the returned byte-array correspond to the requested
parameters in items
dbHandle
- Handle to the database for which info is to be retrieveditems
- An array of values from the isc_info_*
constant
fields from ISCConstants
bufferLength
- The size of the byte array that is to be returneditems
GDSException
- if an error occurs while retrieving database infovoid iscDetachDatabase(IscDbHandle dbHandle) throws GDSException
dbHandle
- The handle to be detachedGDSException
- if an error occurs while detaching from the databasevoid iscDropDatabase(IscDbHandle dbHandle) throws GDSException
IscDbHandle
is attached.dbHandle
- Handle to the database to be droppedGDSException
- if an error occurs while dropping the databasevoid iscStartTransaction(IscTrHandle trHandle, IscDbHandle dbHandle, TransactionParameterBuffer tpb) throws GDSException
trHandle
- Handle to the transaction that is to be starteddbHandle
- Handle to the database in which the transaction is to be
startedtpb
- Transaction Parameter Block in the form of a byte array,
contains parameter data for the transaction attributesGDSException
- if an error occurs while starting the transactioncreateIscTrHandle()
void iscReconnectTransaction(IscTrHandle trHandle, IscDbHandle dbHandle, long transactionId) throws GDSException
trHandle
- transaction handle that will be reconnected.dbHandle
- database handle in which "in limbo" transaction will be
reconnected.transactionId
- ID of the transaction to reconnect.GDSException
- if something went wrong.void iscCommitTransaction(IscTrHandle trHandle) throws GDSException
trHandle
- Handle to the transaction to be committed.GDSException
- if an error occurs while committing the transactioniscRollbackTransaction(IscTrHandle)
void iscCommitRetaining(IscTrHandle trHandle) throws GDSException
GDSException
void iscPrepareTransaction(IscTrHandle trHandle) throws GDSException
GDSException
void iscPrepareTransaction2(IscTrHandle trHandle, byte[] bytes) throws GDSException
GDSException
void iscRollbackTransaction(IscTrHandle trHandle) throws GDSException
trHandle
- Handle to the transaction that is to be rolled backGDSException
- if an error occurs while rolling backiscCommitTransaction(IscTrHandle)
void iscRollbackRetaining(IscTrHandle trHandle) throws GDSException
GDSException
byte[] iscTransactionInformation(IscTrHandle trHandle, byte[] requestBuffer, int bufferLen) throws GDSException
GDSException
void iscDsqlAllocateStatement(IscDbHandle dbHandle, IscStmtHandle stmtHandle) throws GDSException
IscDbHandle
is attached.dbHandle
- Handle to the database where the statement is to be allocatedstmtHandle
- Handle to attach to the newly allocated statementGDSException
- if an error occurs while allocating the statementXSQLDA iscDsqlDescribe(IscStmtHandle stmtHandle, int daVersion) throws GDSException
stmtHandle
- Handle to the statement about which data is to be retrieveddaVersion
- Version of the XSQLDA to be retrievedGDSException
- if an error occurs while retrieving statement dataXSQLDA iscDsqlDescribeBind(IscStmtHandle stmtHandle, int daVersion) throws GDSException
stmtHandle
- Handle to the bind statement about which bind data is to be
retrieveddaVersion
- Version of the XSQLDA to be retrievedGDSException
- if an error occurs while retrieving statement datavoid iscDsqlExecute(IscTrHandle trHandle, IscStmtHandle stmtHandle, int daVersion, XSQLDA xsqlda) throws GDSException
trHandle
- Handle to the transaction in which the statement is to be
executedstmtHandle
- Handle to the statement to be executeddaVersion
- Version of XSQLDA to be usedxsqlda
- Input data for executing the statementGDSException
- if an error occurs while executing the statementvoid iscDsqlExecute2(IscTrHandle trHandle, IscStmtHandle stmtHandle, int daVersion, XSQLDA inXSQLDA, XSQLDA outXSQLDA) throws GDSException
trHandle
- Handle to the transaction in which the statement is to be
executedstmtHandle
- Handle to the statement to be executeddaVersion
- Version of XSQLDA to be usedinXSQLDA
- Data to be sent to the database for the statementoutXSQLDA
- Holder for data to be received from executing the statementGDSException
- if an error occurs while executing the statementvoid iscDsqlExecuteImmediate(IscDbHandle dbHandle, IscTrHandle trHandle, java.lang.String statement, int dialect, XSQLDA xsqlda) throws GDSException
dbHandle
- Handle to the database where the statement is to be executedtrHandle
- Handle to the transaction in which the statement is to be
executedstatement
- SQL command to be executeddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
xsqlda
- Data to be sent to the database for the statementGDSException
- if an error occurs while executing the statementvoid iscDsqlExecuteImmediate(IscDbHandle dbHandle, IscTrHandle trHandle, java.lang.String statement, java.lang.String encoding, int dialect, XSQLDA xsqlda) throws GDSException
GDSException
void iscDsqlExecuteImmediate(IscDbHandle dbHandle, IscTrHandle trHandle, byte[] statement, int dialect, XSQLDA xsqlda) throws GDSException
dbHandle
- Handle to the database where the statement is to be executedtrHandle
- Handle to the transaction in which the statement is to be
executedstatement
- byte array holding the SQL to be executeddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
xsqlda
- Data to be sent to the database for the statementGDSException
- if an error occurs while executing the statementvoid iscDsqlExecImmed2(IscDbHandle dbHandle, IscTrHandle trHandle, java.lang.String statement, int dialect, XSQLDA inXSQLDA, XSQLDA outXSQLDA) throws GDSException
dbHandle
- Handle to the database where the statement is to be executedtrHandle
- Handle to the transaction in which the statement is to be
executedstatement
- byte array holding the SQL to be executeddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
inXSQLDA
- Data to be sent to the database for the statementoutXSQLDA
- Placeholder for data retrieved from executing the SQL
statementGDSException
- if an error occurs while executing the statementvoid iscDsqlExecImmed2(IscDbHandle dbHandle, IscTrHandle trHandle, java.lang.String statement, java.lang.String encoding, int dialect, XSQLDA inXSQLDA, XSQLDA outXSQLDA) throws GDSException
GDSException
void iscDsqlExecImmed2(IscDbHandle dbHandle, IscTrHandle trHandle, byte[] statement, int dialect, XSQLDA inXSQLDA, XSQLDA outXSQLDA) throws GDSException
dbHandle
- Handle to the database where the statement is to be executedtrHandle
- Handle to the transaction in which the statement is to be
executedstatement
- byte array holding the SQL to be executeddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
inXSQLDA
- Data to be sent to the database for the statementoutXSQLDA
- Holder for data retrieved from the databaseGDSException
- if an error occurs while executing the statementvoid iscDsqlFetch(IscStmtHandle stmt_handle, int daVersion, XSQLDA xsqlda, int fetchSize) throws GDSException
fetchSize
records will be fetched.stmt_handle
- Handle to the statement for which records are to be fetcheddaVersion
- Version of XSQLDA to be usedxsqlda
- Holder for records that are fetchedfetchSize
- The maximum number of records to be fetchedGDSException
- if an error occurs while fetching the recordsvoid iscDsqlFreeStatement(IscStmtHandle stmtHandle, int option) throws GDSException
option
. option
should be one of
ISCConstants.DSQL_drop
or ISCConstants.DSQL_close
.stmtHandle
- Handle to the statement to be freedoption
- Option to be used when freeing the statement. If the value is
ISCConstants.DSQL_drop
, the statement will be
deallocated, if the value is ISCConstants.DSQL_close
,
the statement will only be closedGDSException
- If an error occurs freeing the statementXSQLDA iscDsqlPrepare(IscTrHandle trHandle, IscStmtHandle stmtHandle, java.lang.String statement, int dialect) throws GDSException
trHandle
- Handle to the transaction in which the SQL statement is to be
preparedstmtHandle
- Handle to the statement for which the SQL is to be preparedstatement
- The SQL statement to be prepareddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
GDSException
- if an error occurs while preparing the SQLXSQLDA iscDsqlPrepare(IscTrHandle trHandle, IscStmtHandle stmtHandle, java.lang.String statement, java.lang.String encoding, int dialect) throws GDSException
iscDsqlPrepare(IscTrHandle, IscStmtHandle, byte[], int)
GDSException
XSQLDA iscDsqlPrepare(IscTrHandle trHandle, IscStmtHandle stmtHandle, byte[] statement, int dialect) throws GDSException
trHandle
- Handle to the transaction in which the SQL statement is to be
preparedstmtHandle
- Handle to the statement for which the SQL is to be preparedstatement
- byte-array with containing the SQL to be prepareddialect
- Interbase dialect for the SQL, should be one of the
SQL_DIALECT_*
constants from
ISCConstants
GDSException
- if an error occurs while preparing the SQLvoid iscDsqlSetCursorName(IscStmtHandle stmtHandle, java.lang.String cursorName, int type) throws GDSException
stmtHandle
- Handle to the statement for which the cursor name is to be setcursorName
- Name to set for the cursortype
- Reserved for future useGDSException
- if an error occurs while setting the cursor namebyte[] iscDsqlSqlInfo(IscStmtHandle stmtHandle, byte[] items, int bufferLength) throws GDSException
isc_info_sql_*
constants defined in
ISCConstants
. An array with corresponding values for the
requested parameters is returned.stmtHandle
- Handle to the statement about which data is to be retrieveditems
- Array of parameters whose values are to be retrievedbufferLength
- The length of the byte-array to be returnedGDSException
- if an error occurs while retrieving the statement infovoid getSqlCounts(IscStmtHandle stmt) throws GDSException
stmt
- Handle to the statement for which count data is to be
retrievedGDSException
- if an error occurs while retrieving the count dataint iscVaxInteger(byte[] buffer, int pos, int length)
buffer
- The byte array from which the integer is to be retrievedpos
- The offset starting position from which to start retrieving
byte valueslength
- The number of bytes to use in retrieving the integer value.long iscVaxLong(byte[] buffer, int pos, int length)
buffer
- The byte array from which the integer is to be retrievedpos
- The offset starting position from which to start retrieving
byte valueslength
- The number of bytes to use in retrieving the long value.void iscCreateBlob2(IscDbHandle db, IscTrHandle tr, IscBlobHandle blob, BlobParameterBuffer blobParameterBuffer) throws GDSException
db
- Handle to the database in which the blob will be createdtr
- Handle to the transaction in which the blob will be createdblob
- Handle to be attached to the newly created blobblobParameterBuffer
- contains parameters for creation of the new blob, can be nullGDSException
- if an error occurs while creating the blobvoid iscOpenBlob2(IscDbHandle db, IscTrHandle tr, IscBlobHandle blob, BlobParameterBuffer blobParameterBuffer) throws GDSException
db
- Handle to the database in which the blob will be openedtr
- Handle to the transaction in which the blob will be openedblob
- Handle to the blob to be openedblobParameterBuffer
- Contains parameters for the blobGDSException
- if an error occurs while opening the blobbyte[] iscGetSegment(IscBlobHandle blob, int maxread) throws GDSException
blob
- Handle to the blob from which a segment is to be fetchedmaxread
- The maximum number of bytes to attempt to fetchmaxread
GDSException
- if an error occurs while fetching the blob segmentvoid iscPutSegment(IscBlobHandle blob_handle, byte[] buffer) throws GDSException
blob_handle
- Handle to the blob to which data is to be writtenbuffer
- Data to be written to the blobGDSException
- if an error occurs while writing to the blobvoid iscCloseBlob(IscBlobHandle blob) throws GDSException
blob
- Handle to the blob to be closedGDSException
- if an error occurs while closing the blobbyte[] iscBlobInfo(IscBlobHandle handle, byte[] items, int bufferLength) throws GDSException
items
, and the corresponding values are
returned. The values in items
should be
isc_info_blob_*
constants from ISCConstants
.handle
- Handle to the blob for which data is to be retrieveditems
- Parameters to be fetched about the blobbufferLength
- Length of the byte array to be returneditems
GDSException
- if an error occurs while fetching data about the blobvoid iscSeekBlob(IscBlobHandle handle, int position, int seekMode) throws GDSException
seekMode
is used in
the same way as the system fseek call, i.e.:
position
is the offset number of bytes to seek to,
relative to the position described by seekMode
. Seeking
can only be done in a forward direction.
handle
- Handle to the blob for which seeking will be doneposition
- The offset number of bytes to seek toseekMode
- Describes the base point to be used in seeking, should be
negative if seekMode
is equal to 2GDSException
- if an error occurs while seekingvoid iscServiceAttach(java.lang.String service, IscSvcHandle serviceHandle, ServiceParameterBuffer serviceParameterBuffer) throws GDSException
service
- The name/path to the service managerserviceHandle
- Handle to be linked to the attached service managerserviceParameterBuffer
- Contains parameters for attaching to the service managerGDSException
- if an error occurs while attachingvoid iscServiceDetach(IscSvcHandle serviceHandle) throws GDSException
serviceHandle
- Handle to the service manager that is to be detachedGDSException
- if an error occurs while detachingvoid iscServiceStart(IscSvcHandle serviceHandle, ServiceRequestBuffer serviceRequestBuffer) throws GDSException
serviceHandle
- Handle to the service manager where the operation is to be
startedserviceRequestBuffer
- parameters about the service to be startedGDSException
void iscServiceQuery(IscSvcHandle serviceHandle, ServiceParameterBuffer serviceParameterBuffer, ServiceRequestBuffer serviceRequestBuffer, byte[] resultBuffer) throws GDSException
serviceHandle
- Handle to the service manager to be queriedserviceParameterBuffer
- parameters about the serviceserviceRequestBuffer
- parameters requested in the queryresultBuffer
- buffer to hold the query resultsGDSException
- if an error occurs while queryingint iscQueueEvents(IscDbHandle dbHandle, EventHandle eventHandle, EventHandler eventHandler) throws GDSException
dbHandle
- Handle to the database where events are to be listened foreventHandle
- Handle for event managementeventHandler
- Callback to be called when an event occursGDSException
- If a database communication error occursvoid iscEventBlock(EventHandle eventHandle) throws GDSException
EventHandle
.eventHandle
- The event handle to be initializedGDSException
- If a database communication error occursvoid iscEventCounts(EventHandle eventHandle) throws GDSException
eventHandle
- The handle containing event dataGDSException
- If a database communication error occursvoid iscCancelEvents(IscDbHandle dbHandle, EventHandle eventHandle) throws GDSException
EventHandle
.dbHandle
- Handle to the database where events are being
listened foreventHandle
- Datastructure for handling event dataGDSException
- If a database communication error occursEventHandle createEventHandle(java.lang.String eventName)
EventHandle
specific to a given
GDS
implementation.EventHandle
void fbCancelOperation(IscDbHandle dbHandle, int kind) throws GDSException
dbHandle
- Handle to the database operation of which should be
cancelled.kind
- one of ISCConstants.fb_cancel_disable
,
ISCConstants.fb_cancel_enable
, ISCConstants.fb_cancel_raise
or ISCConstants.fb_cancel_abort
GDSException
- If a database communication error happens.org.firebirdsql.gds.impl.GDSType getType()
GDSType
.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.