public abstract class Argument extends java.lang.Object implements Parameter, java.io.Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Argument(int type) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getLength() |
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.
|
abstract Argument |
transformTo(ParameterBufferMetaData parameterBufferMetaData)
If needed, returns a new argument to transform to a suitable argument type, otherwise returns this instance.
|
abstract void |
writeTo(java.io.OutputStream outputStream)
Writes the arguments to the supplied
OutputStream in the XDR format of the type. |
public final int getType()
ParameterISCConstants).public java.lang.String getValueAsString()
ParameterThe implementation may throw a RuntimeException if the parameter isn't a string (or shouldn't be used as a string).
getValueAsString in interface Parameterpublic int getValueAsInt()
ParameterThe implementation may throw a RuntimeException if the parameter isn't an int (or shouldn't be used as an int).
getValueAsInt in interface Parameterpublic long getValueAsLong()
ParameterThe implementation may throw a RuntimeException if the parameter isn't a long (or shouldn't be used as a long).
getValueAsLong in interface Parameterpublic abstract void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
OutputStream in the XDR format of the type.outputStream - OutputStreamjava.io.IOException - For errors writing to the OutputStreampublic abstract int getLength()
writeTo(java.io.OutputStream).
This includes the item, the value and other items contributing to the total length (e.g. the length of the value).public abstract Argument transformTo(ParameterBufferMetaData parameterBufferMetaData)
parameterBufferMetaData - parameter buffer metadata (used to determine the needed argument type)java.lang.IllegalArgumentException - if transformation is needed, but the creation of the new instance fails (e.g. downgrading from
ArgumentType.Wide to ArgumentType.TraditionalDpb, and the value is too long)Copyright © 2001-2026 Jaybird (Firebird JDBC) team. All rights reserved.