public class ParameterBufferHelper
extends java.lang.Object
java.lang.reflection
to determine correct type of the parameter
passed to the Driver.connect(String, Properties)
method.Modifier and Type | Class and Description |
---|---|
static class |
ParameterBufferHelper.DpbParameterType
Dpb type, which is the name, the key for the dpb and its value type.
|
static class |
ParameterBufferHelper.DpbValueType
Enum with the various Dpb value types, and conversion from String to that type.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DPB_PREFIX |
static java.lang.String |
ISC_DPB_TYPES_RESOURCE |
static java.lang.String |
TPB_PREFIX |
Constructor and Description |
---|
ParameterBufferHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
getDpbKey(java.lang.String name)
Get integer value of the DPB key corresponding to the specified name.
|
static java.util.Map<java.lang.String,java.lang.Integer> |
getDpbMap()
Get mapping between DPB names and their keys.
|
static ParameterBufferHelper.DpbParameterType |
getDpbParameterType(java.lang.String name)
Gets the
ParameterBufferHelper.DpbParameterType for the specified dpb item name (short or long) |
static java.lang.Integer |
getTpbParam(java.lang.String name)
Get value of TPB parameter for the specified name.
|
static java.lang.Object |
parseDpbString(java.lang.String name,
java.lang.Object value) |
public static final java.lang.String DPB_PREFIX
public static final java.lang.String TPB_PREFIX
public static final java.lang.String ISC_DPB_TYPES_RESOURCE
public static java.lang.Integer getDpbKey(java.lang.String name)
name
- name of the key.Integer
corresponding to the specified name
or null
if value is not known.public static ParameterBufferHelper.DpbParameterType getDpbParameterType(java.lang.String name)
ParameterBufferHelper.DpbParameterType
for the specified dpb item name (short or long)name
- Name of the dpb itemDpbParameterType
instance, or null
if there is no item with this namepublic static java.util.Map<java.lang.String,java.lang.Integer> getDpbMap()
Map
, where key is the name of DPB parameter,
value is its DPB key.public static java.lang.Object parseDpbString(java.lang.String name, java.lang.Object value)
public static java.lang.Integer getTpbParam(java.lang.String name)
name
- string representation of TPB parameter, can have "isc_tpb_"
prefix.Copyright © 2001-2021 Jaybird (Firebird JDBC/JCA) team. All rights reserved.