public interface Parameter
ParameterBuffer
.Modifier and Type | Method and Description |
---|---|
void |
copyTo(ParameterBuffer buffer,
Encoding stringEncoding)
Copies this argument into the supplied buffer, uses the supplied
Encoding for string arguments. |
int |
getType()
The type identifier of the parameter (usually one of the constant values in
ISCConstants ). |
int |
getValueAsInt()
The value of the parameter as int.
|
long |
getValueAsLong()
The value of the parameter as long.
|
java.lang.String |
getValueAsString()
The value of the parameter as String.
|
int getType()
ISCConstants
).java.lang.String getValueAsString()
The implementation may throw a RuntimeException if the parameter isn't a string (or shouldn't be used as a string).
int getValueAsInt()
The implementation may throw a RuntimeException if the parameter isn't an int (or shouldn't be used as an int).
long getValueAsLong()
The implementation may throw a RuntimeException if the parameter isn't a long (or shouldn't be used as a long).
void copyTo(ParameterBuffer buffer, Encoding stringEncoding)
Encoding
for string arguments.
An instance of Parameter
should know how to copy itself into another buffer (eg an instance
of StringArgument
would know to call
ParameterBuffer.addArgument(int, String, Encoding)
).
The parameter does not need to check if it is the right type of destination buffer (if someone tries to add a TPB argument to a DPB he is free to try that).
buffer
- ParameterBuffer instancestringEncoding
- Encoding to use for string properties. A value of null
can be used to signal that the
original encoding should be used.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.