Class Argument
- java.lang.Object
- 
- org.firebirdsql.gds.impl.argument.Argument
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Parameter
 - Direct Known Subclasses:
- BigIntArgument,- ByteArrayArgument,- NumericArgument,- SingleItem,- StringArgument
 
 public abstract class Argument extends java.lang.Object implements Parameter, java.io.Serializable Base class for arguments to the parameter buffer.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedArgument(int type)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intgetLength()intgetType()The type identifier of the parameter (usually one of the constant values inISCConstants).intgetValueAsInt()The value of the parameter as int.longgetValueAsLong()The value of the parameter as long.java.lang.StringgetValueAsString()The value of the parameter as String.inthashCode()abstract voidwriteTo(java.io.OutputStream outputStream)Writes the arguments to the suppliedOutputStreamin the XDR format of the type.
 
- 
- 
- 
Method Detail- 
getTypepublic final int getType() Description copied from interface:ParameterThe type identifier of the parameter (usually one of the constant values inISCConstants).
 - 
getValueAsStringpublic java.lang.String getValueAsString() Description copied from interface:ParameterThe value of the parameter as String.The implementation may throw a RuntimeException if the parameter isn't a string (or shouldn't be used as a string). - Specified by:
- getValueAsStringin interface- Parameter
- Returns:
- The value as string
 
 - 
getValueAsIntpublic int getValueAsInt() Description copied from interface:ParameterThe value of the parameter as int.The implementation may throw a RuntimeException if the parameter isn't an int (or shouldn't be used as an int). - Specified by:
- getValueAsIntin interface- Parameter
- Returns:
- The value as int
 
 - 
getValueAsLongpublic long getValueAsLong() Description copied from interface:ParameterThe value of the parameter as long.The implementation may throw a RuntimeException if the parameter isn't a long (or shouldn't be used as a long). - Specified by:
- getValueAsLongin interface- Parameter
- Returns:
- The value as long
 
 - 
writeTopublic abstract void writeTo(java.io.OutputStream outputStream) throws java.io.IOExceptionWrites the arguments to the suppliedOutputStreamin the XDR format of the type.- Parameters:
- outputStream- OutputStream
- Throws:
- java.io.IOException- For errors writing to the OutputStream
 
 - 
getLengthpublic abstract int getLength() - Returns:
- Total length of the buffer item when written to the OutputStream by writeTo(java.io.OutputStream). This includes the item, the value and other items contributing to the total length (eg the length of the value).
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 
- 
 
-