public class ParameterBufferHelper extends 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 String |
DPB_PREFIX |
static String |
ISC_DPB_TYPES_RESOURCE |
static String |
TPB_PREFIX |
Constructor and Description |
---|
ParameterBufferHelper() |
Modifier and Type | Method and Description |
---|---|
static Integer |
getDpbKey(String name)
Get integer value of the DPB key corresponding to the specified name.
|
static Map<String,Integer> |
getDpbMap()
Get mapping between DPB names and their keys.
|
static ParameterBufferHelper.DpbParameterType |
getDpbParameterType(String name)
Gets the
ParameterBufferHelper.DpbParameterType for the specified dpb item name (short or long) |
static Integer |
getTpbParam(String name)
Get value of TPB parameter for the specified name.
|
static Object |
parseDpbString(String name,
Object value)
Deprecated.
In general,
parseDpbString(String, String) should be used; this method is not planned for
removal |
static Object |
parseDpbString(String name,
String value)
Parse string to DPB value.
|
public static final String DPB_PREFIX
public static final String TPB_PREFIX
public static final String ISC_DPB_TYPES_RESOURCE
public static Integer getDpbKey(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(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 Map<String,Integer> getDpbMap()
Map
, where key is the name of DPB parameter, value is its DPB key.@Deprecated public static Object parseDpbString(String name, Object value)
parseDpbString(String, String)
should be used; this method is not planned for
removalname
- Name of DPB itemvalue
- Value to parsepublic static Object parseDpbString(String name, String value)
name
- Name of DPB itemvalue
- Value to parsepublic static Integer getTpbParam(String name)
name
- string representation of TPB parameter, can have "isc_tpb_" prefix.null
if nothing was found.Copyright © 2001-2019 Jaybird (Firebird JDBC/JCA) team. All rights reserved.