- All Superinterfaces:
Iterable<Parameter>,ParameterBuffer,Serializable
- All Known Implementing Classes:
TransactionParameterBufferImpl
Instances of this interface represent Transaction Parameter Buffer from the Firebird API.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidcopyTo(TransactionParameterBuffer destination) Copies the contents of this transaction parameter buffer todestination.deepCopy()Make a deep copy of this object.default booleanReturns if this TPB has the auto-commit flag set.default booleanDetermine whether this TPB is set to read-only.default voidsetAutoCommit(boolean autoCommit) Sets the Firebird auto-commit flag on this TPB.default voidsetReadOnly(boolean readOnly) Set the read-only flag (isc_tpb_read) or read/write flag (isc_tpb_write) on this TPB.Methods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.firebirdsql.gds.ParameterBuffer
addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, addArgument, getArgumentAsInt, getArgumentAsString, getType, hasArgument, iterator, removeArgument, size, toBytes, toBytesWithType, toXdrable, writeArgumentsTo
-
Method Details
-
deepCopy
TransactionParameterBuffer deepCopy()Make a deep copy of this object.- Returns:
- deep copy of this object.
-
copyTo
Copies the contents of this transaction parameter buffer todestination.- Parameters:
destination- destination transaction parameter buffer- Since:
- 6
-
setReadOnly
default void setReadOnly(boolean readOnly) Set the read-only flag (isc_tpb_read) or read/write flag (isc_tpb_write) on this TPB.- Parameters:
readOnly- iftrue, this TPB will be set to read-only, otherwise it will be read/write- Since:
- 6
-
isReadOnly
default boolean isReadOnly()Determine whether this TPB is set to read-only.- Returns:
trueif this TPB is read-only, otherwisefalse- Since:
- 6
-
setAutoCommit
default void setAutoCommit(boolean autoCommit) Sets the Firebird auto-commit flag on this TPB.This shouldn't be confused with the normal JDBC auto-commit behavior. Effectively, setting this to
truewill result in Firebird using commit retain after each executed statement.- Parameters:
autoCommit-trueadd the auto-commit flag, otherwise remove it- Since:
- 6
- See Also:
-
isAutoCommit
default boolean isAutoCommit()Returns if this TPB has the auto-commit flag set.- Returns:
trueif this TPB has the auto-commit flag,falseotherwise- Since:
- 6
- See Also:
-