public enum ArgumentType extends java.lang.Enum<ArgumentType>
Indicates how the argument should be represented in the parameter buffer. Primary use case is to distinguish between 3.0 "wide" arguments, and 2.5 and earlier "traditional" arguments.
Enum Constant and Description |
---|
BigIntSpb |
ByteSpb |
IntSpb |
SingleTpb |
StringSpb |
TraditionalDpb |
Wide |
Modifier and Type | Method and Description |
---|---|
abstract int |
getLengthSize() |
abstract int |
getMaxLength() |
static ArgumentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ArgumentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract void |
writeLength(int length,
java.io.OutputStream outputStream)
Writes the length into the stream in the proper format.
|
public static final ArgumentType TraditionalDpb
public static final ArgumentType SingleTpb
public static final ArgumentType StringSpb
public static final ArgumentType BigIntSpb
public static final ArgumentType IntSpb
public static final ArgumentType ByteSpb
public static final ArgumentType Wide
public static ArgumentType[] values()
for (ArgumentType c : ArgumentType.values()) System.out.println(c);
public static ArgumentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract int getLengthSize()
0
(zero) if the length is not part of the message.public abstract int getMaxLength()
public abstract void writeLength(int length, java.io.OutputStream outputStream) throws java.io.IOException
For arguments without encoded length, this method should not do anything.
length
- length to encodeoutputStream
- Output streamjava.io.IOException
- For errors writing to the streamCopyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.