org.firebirdsql.gds

Interface TransactionParameterBuffer

public interface TransactionParameterBuffer

Instances of this interface represent Transaction Parameter Buffer from the Firebird API.

Field Summary

static int
AUTOCOMMIT
static int
COMMIT_TIME
static int
CONCURRENCY
static int
CONSISTENCY
static int
EXCLUSIVE
static int
IGNORE_LIMBO
static int
LOCK_READ
static int
LOCK_WRITE
static int
NOWAIT
static int
NO_AUTO_UNDO
static int
NO_REC_VERSION
static int
PROTECTED
static int
READ
static int
READ_COMMITTED
static int
REC_VERSION
static int
RESTART_REQUESTS
static int
SHARED
static int
VERB_TIME
static int
WAIT
static int
WRITE

Method Summary

void
addArgument(int argumentType)
Add argument.
void
addArgument(int argumentType, String value)
Add string argument.
void
addArgument(int argumentType, byte[] content)
Add array of bytes.
void
addArgument(int argumentType, int value)
Add integer argument.
TransactionParameterBuffer
deepCopy()
Make a deep copy of this object.
int
getArgumentAsInt(int argumentType)
Get argument as int.
String
getArgumentAsString(int argumentType)
Get argument as string.
boolean
hasArgument(int argumentType)
Check if this parameter buffer has specified argument.
void
removeArgument(int argumentType)
Remove specified argument.

Field Details

AUTOCOMMIT

public static final int AUTOCOMMIT
Field Value:
16

COMMIT_TIME

public static final int COMMIT_TIME
Field Value:
13

CONCURRENCY

public static final int CONCURRENCY
Field Value:
2

CONSISTENCY

public static final int CONSISTENCY
Field Value:
1

EXCLUSIVE

public static final int EXCLUSIVE
Field Value:
5

IGNORE_LIMBO

public static final int IGNORE_LIMBO
Field Value:
14

LOCK_READ

public static final int LOCK_READ
Field Value:
10

LOCK_WRITE

public static final int LOCK_WRITE
Field Value:
11

NOWAIT

public static final int NOWAIT
Field Value:
7

NO_AUTO_UNDO

public static final int NO_AUTO_UNDO
Field Value:
20

NO_REC_VERSION

public static final int NO_REC_VERSION
Field Value:
18

PROTECTED

public static final int PROTECTED
Field Value:
4

READ

public static final int READ
Field Value:
8

READ_COMMITTED

public static final int READ_COMMITTED
Field Value:
15

REC_VERSION

public static final int REC_VERSION
Field Value:
17

RESTART_REQUESTS

public static final int RESTART_REQUESTS
Field Value:
19

SHARED

public static final int SHARED
Field Value:
3

VERB_TIME

public static final int VERB_TIME
Field Value:
12

WAIT

public static final int WAIT
Field Value:
6

WRITE

public static final int WRITE
Field Value:
9

Method Details

addArgument

public void addArgument(int argumentType)
Add argument.
Parameters:
argumentType - type of argument.

addArgument

public void addArgument(int argumentType,
                        String value)
Add string argument.
Parameters:
argumentType - type of argument.
value - string value to add.

addArgument

public void addArgument(int argumentType,
                        byte[] content)
Add array of bytes.
Parameters:
argumentType - type of argument.
content - content of argument.

addArgument

public void addArgument(int argumentType,
                        int value)
Add integer argument.
Parameters:
argumentType - type of argument.
value - integer value to add.

deepCopy

public TransactionParameterBuffer deepCopy()
Make a deep copy of this object.
Returns:
deep copy of this object.

getArgumentAsInt

public int getArgumentAsInt(int argumentType)
Get argument as int.
Parameters:
argumentType - type of argument to find.
Returns:
argument as string or 0 if nothing found.

getArgumentAsString

public String getArgumentAsString(int argumentType)
Get argument as string.
Parameters:
argumentType - type of argument to find.
Returns:
argument as string or null if nothing found.

hasArgument

public boolean hasArgument(int argumentType)
Check if this parameter buffer has specified argument.
Parameters:
argumentType - type of argument to find.
Returns:
true if this buffer contains specified argument.

removeArgument

public void removeArgument(int argumentType)
Remove specified argument.
Parameters:
argumentType - type of argument to remove.

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