public enum DpbType extends java.lang.Enum<DpbType>
In general, there is a 1-on-1 correspondence with ConnectionPropertyType
, but in some cases mapping might be
different (current expectation: boolean connection properties that map to either a single item or a 0 / 1 value).
Enum Constant and Description |
---|
BYTE
Parameter value as a byte.
|
INT
Parameter value is an integer.
|
NONE
Parameter is not sent at all (primarily to have a null-safe value for connection properties that should not be
sent to the server).
|
SINGLE
Parameter value is not sent (just presence or absence of the parameter item), corresponding value must be a
Boolean . |
STRING
Parameter value is a string.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addValue(ParameterBuffer pb,
int pbItem,
java.lang.Object value,
ConnectionPropertyType type)
Populate the parameter buffer
pb with pbItem and value . |
static DpbType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DpbType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DpbType STRING
public static final DpbType INT
public static final DpbType BYTE
public static final DpbType SINGLE
Boolean
.public static final DpbType NONE
public static DpbType[] values()
for (DpbType c : DpbType.values()) System.out.println(c);
public static DpbType 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 void addValue(ParameterBuffer pb, int pbItem, java.lang.Object value, ConnectionPropertyType type)
pb
with pbItem
and value
.pb
- Parameter bufferpbItem
- Parameter buffer itemvalue
- Valuetype
- Connection property typeCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.