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.
|
int |
hashCode() |
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()
Parameter
ISCConstants
).public java.lang.String getValueAsString()
Parameter
The implementation may throw a RuntimeException if the parameter isn't a string (or shouldn't be used as a string).
getValueAsString
in interface Parameter
public int getValueAsInt()
Parameter
The implementation may throw a RuntimeException if the parameter isn't an int (or shouldn't be used as an int).
getValueAsInt
in interface Parameter
public long getValueAsLong()
Parameter
The implementation may throw a RuntimeException if the parameter isn't a long (or shouldn't be used as a long).
getValueAsLong
in interface Parameter
public 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 (eg the length of the value).public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.