Class BigIntArgument
- java.lang.Object
- 
- org.firebirdsql.gds.impl.argument.Argument
- 
- org.firebirdsql.gds.impl.argument.BigIntArgument
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- Parameter
 
 public final class BigIntArgument extends Argument Argumentimplementation for bigint (long) values.- Since:
- 3.0
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description BigIntArgument(int type, ArgumentType argumentType, long value)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcopyTo(ParameterBuffer buffer, Encoding encoding)Copies this argument into the supplied buffer, uses the suppliedEncodingfor string arguments.booleanequals(java.lang.Object other)intgetLength()longgetValueAsLong()The value of the parameter as long.inthashCode()voidwriteTo(java.io.OutputStream outputStream)Writes the arguments to the suppliedOutputStreamin the XDR format of the type.protected voidwriteValue(java.io.OutputStream outputStream, long value)- 
Methods inherited from class org.firebirdsql.gds.impl.argument.ArgumentgetType, getValueAsInt, getValueAsString
 
- 
 
- 
- 
- 
Constructor Detail- 
BigIntArgumentpublic BigIntArgument(int type, ArgumentType argumentType, long value)
 
- 
 - 
Method Detail- 
writeTopublic void writeTo(java.io.OutputStream outputStream) throws java.io.IOExceptionDescription copied from class:ArgumentWrites the arguments to the suppliedOutputStreamin the XDR format of the type.
 - 
getLengthpublic int getLength() - Specified by:
- getLengthin class- Argument
- Returns:
- Total length of the buffer item when written to the OutputStream by Argument.writeTo(java.io.OutputStream). This includes the item, the value and other items contributing to the total length (eg the length of the value).
 
 - 
writeValueprotected void writeValue(java.io.OutputStream outputStream, long value) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
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
- Overrides:
- getValueAsLongin class- Argument
- Returns:
- The value as long
 
 - 
copyTopublic void copyTo(ParameterBuffer buffer, Encoding encoding) Description copied from interface:ParameterCopies this argument into the supplied buffer, uses the suppliedEncodingfor string arguments.An instance of Parametershould know how to copy itself into another buffer (eg an instance ofStringArgumentwould know to callParameterBuffer.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). - Parameters:
- buffer- ParameterBuffer instance
- encoding- Encoding to use for string properties. A value of- nullcan be used to signal that the original encoding should be used.
 
 - 
equalspublic boolean equals(java.lang.Object other) - Overrides:
- equalsin class- java.lang.Object
 
 
- 
 
-