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)
Deprecated.
In general,
parseDpbString(String, String) should be used; this method is not planned for
removal |
static java.lang.Object |
parseDpbString(java.lang.String name,
java.lang.String value)
Parse string to DPB 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.@Deprecated
public static java.lang.Object parseDpbString(java.lang.String name,
java.lang.Object value)
parseDpbString(String, String) should be used; this method is not planned for
removalname - Name of DPB itemvalue - Value to parsepublic static java.lang.Object parseDpbString(java.lang.String name,
java.lang.String value)
name - Name of DPB itemvalue - Value to parsepublic static java.lang.Integer getTpbParam(java.lang.String name)
name - string representation of TPB parameter, can have "isc_tpb_" prefix.null if nothing was found.Copyright © 2001-2022 Jaybird (Firebird JDBC/JCA) team. All rights reserved.