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 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).Copyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.