public interface ParameterBuffer extends java.lang.Iterable<Parameter>
ParameterBuffer,
ServiceRequestBuffer,
TransactionParameterBuffer,
ServiceParameterBuffer| Modifier and Type | Method and Description |
|---|---|
void |
addArgument(int argumentType)
Add argument with no parameters.
|
void |
addArgument(int argumentType,
byte value)
Add a byte argument.
|
void |
addArgument(int argumentType,
byte[] content)
Add array of bytes.
|
void |
addArgument(int argumentType,
int value)
Add integer argument.
|
void |
addArgument(int argumentType,
long value)
Add long argument.
|
void |
addArgument(int argumentType,
java.lang.String value)
Add string argument with the default encoding.
|
void |
addArgument(int argumentType,
java.lang.String value,
Encoding encoding)
Add string argument.
|
int |
getArgumentAsInt(int argumentType)
Get argument as int.
|
java.lang.String |
getArgumentAsString(int argumentType)
Get argument as string.
|
int |
getType() |
boolean |
hasArgument(int argumentType)
Check if this parameter buffer has specified argument.
|
default boolean |
isEmpty() |
java.util.Iterator<Parameter> |
iterator()
Returns an iterator over a copy of the parameters in this parameter buffer.
|
void |
removeArgument(int argumentType)
Remove specified argument.
|
int |
size() |
byte[] |
toBytes()
Converts this parameter buffer to a byte array.
|
byte[] |
toBytesWithType()
Converts this parameter buffer to a byte array with type information.
|
Xdrable |
toXdrable() |
void |
writeArgumentsTo(java.io.OutputStream outputStream)
Writes the arguments in the implementation specific serialization into the
OutputStream. |
int getType()
void addArgument(int argumentType)
argumentType - type of argument.void addArgument(int argumentType,
java.lang.String value)
argumentType - type of argument.value - string value to add.void addArgument(int argumentType,
java.lang.String value,
Encoding encoding)
argumentType - type of argument.value - string value to add.encoding - encoding to use for conversion to bytesvoid addArgument(int argumentType,
byte value)
argumentType - type of argument.value - byte value to add.void addArgument(int argumentType,
int value)
argumentType - type of argument.value - integer value to add.void addArgument(int argumentType,
long value)
argumentType - type of argument.value - long value to add.void addArgument(int argumentType,
byte[] content)
argumentType - type of argument.content - content of argument.void removeArgument(int argumentType)
argumentType - type of argument to remove.java.lang.String getArgumentAsString(int argumentType)
argumentType - type of argument to find.null if nothing found.int getArgumentAsInt(int argumentType)
argumentType - type of argument to find.0 if nothing found.boolean hasArgument(int argumentType)
argumentType - type of argument to find.true if this buffer contains specified argument.java.util.Iterator<Parameter> iterator()
It is safe to iterate over this iterator while modifying the parameter buffer. Changes will not be reflected in the iterator.
iterator in interface java.lang.Iterable<Parameter>void writeArgumentsTo(java.io.OutputStream outputStream)
throws java.io.IOException
OutputStream.outputStream - The OutputStream to write tojava.io.IOException - Errors produced by the output stream during writesXdrable toXdrable()
Xdrable to write (and optionally read) this instance as Xdr.byte[] toBytes()
This byte array includes the extra header-bytes (if any), but does not include the type information
toBytesWithType()byte[] toBytesWithType()
This byte array includes the type information and the extra header bytes (if any).
toBytes()int size()
default boolean isEmpty()
true if empty, false if this buffer contains at least one parameterCopyright © 2001-2025 Jaybird (Firebird JDBC) team. All rights reserved.