public final class FBConnectionProperties extends java.lang.Object implements FirebirdConnectionProperties, java.io.Serializable, java.lang.Cloneable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTH_PLUGINS
Deprecated.
|
static java.lang.String |
BLOB_BUFFER_SIZE_PROPERTY
Deprecated.
|
static java.lang.String |
BUFFERS_NUMBER_PROPERTY
Deprecated.
|
static java.lang.String |
CONNECT_TIMEOUT
Deprecated.
|
static java.lang.String |
DATA_TYPE_BIND
Deprecated.
|
static java.lang.String |
DATABASE_PROPERTY
Deprecated.
|
static java.lang.String |
DB_CRYPT_CONFIG
Deprecated.
|
static java.lang.String |
DEFAULT_HOLDABLE_RS_PROPERTY
Deprecated.
|
static java.lang.String |
DEFAULT_ISOLATION_PROPERTY
Deprecated.
|
static java.lang.String |
ENCODING_PROPERTY
Deprecated.
|
static java.lang.String |
GENERATED_KEYS_ENABLED
Deprecated.
|
static java.lang.String |
IGNORE_PROCEDURE_TYPE
Deprecated.
|
static java.lang.String |
ISOLATION_PROPERTY
Deprecated.
|
static java.lang.String |
LOCAL_ENCODING_PROPERTY
Deprecated.
|
static java.lang.String |
PASSWORD_PROPERTY
Deprecated.
|
static java.lang.String |
ROLE_NAME_PROPERTY
Deprecated.
|
static java.lang.String |
SESSION_TIME_ZONE
Deprecated.
|
static java.lang.String |
SO_TIMEOUT
Deprecated.
|
static java.lang.String |
SOCKET_BUFFER_SIZE_PROPERTY
Deprecated.
|
static java.lang.String |
SQL_DIALECT_PROPERTY
Deprecated.
|
static java.lang.String |
TIMESTAMP_USES_LOCAL_TIMEZONE_PROPERTY
Deprecated.
|
static java.lang.String |
TYPE_PROPERTY
Deprecated.
|
static java.lang.String |
USE_FIREBIRD_AUTOCOMMIT
Deprecated.
|
static java.lang.String |
USE_STREAM_BLOBS_PROPERTY
Deprecated.
|
static java.lang.String |
USER_NAME_PROPERTY
Deprecated.
|
static java.lang.String |
WIRE_COMPRESSION
Deprecated.
|
static java.lang.String |
WIRE_CRYPT_LEVEL
Deprecated.
|
| Constructor and Description |
|---|
FBConnectionProperties() |
| Modifier and Type | Method and Description |
|---|---|
IConnectionProperties |
asIConnectionProperties() |
java.lang.Object |
clone() |
java.util.Map<ConnectionProperty,java.lang.Object> |
connectionPropertyValues()
An unmodifiable view on the connection properties held by this BaseProperties implementation.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getBooleanProperty(java.lang.String name)
Retrieves a
boolean property value by name. |
java.lang.Integer |
getIntProperty(java.lang.String name)
Retrieves an
int property value by name. |
FBTpbMapper |
getMapper() |
java.lang.String |
getProperty(java.lang.String name)
Retrieves a string property value by name.
|
TransactionParameterBuffer |
getTransactionParameters(int isolation)
Get the transaction parameter buffer corresponding to the current
connection request information.
|
int |
hashCode() |
void |
setBooleanProperty(java.lang.String name,
java.lang.Boolean value)
Sets a
boolean property by name. |
void |
setIntProperty(java.lang.String name,
java.lang.Integer value)
Sets an
int property by name. |
void |
setNonStandardProperty(java.lang.String propertyMapping)
Set the property that does not have corresponding setter method.
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets a property by name.
|
void |
setTransactionParameters(int isolation,
TransactionParameterBuffer tpb)
Set transaction parameters for the specified transaction isolation level.
|
finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBuffersNumber, getDatabase, getNonStandardProperty, getUserName, setBuffersNumber, setDatabase, setNonStandardProperty, setUserNamegetBlobBufferSize, getDatabaseName, getDataTypeBind, getDecfloatRound, getDecfloatTraps, getDefaultIsolation, getDefaultTransactionIsolation, getGeneratedKeysEnabled, getPageCacheSize, getScrollableCursor, getServerBatchBufferSize, getSessionTimeZone, getSqlDialect, getTpbMapping, isColumnLabelForName, isDefaultResultSetHoldable, isIgnoreProcedureType, isTimestampUsesLocalTimezone, isUseFirebirdAutocommit, isUseServerBatch, isUseStreamBlobs, setBlobBufferSize, setColumnLabelForName, setDatabaseName, setDataTypeBind, setDecfloatRound, setDecfloatTraps, setDefaultIsolation, setDefaultResultSetHoldable, setDefaultTransactionIsolation, setGeneratedKeysEnabled, setIgnoreProcedureType, setPageCacheSize, setScrollableCursor, setServerBatchBufferSize, setSessionTimeZone, setSqlDialect, setTimestampUsesLocalTimezone, setTpbMapping, setUseFirebirdAutocommit, setUseServerBatch, setUseStreamBlobsgetAuthPlugins, getCharSet, getConnectTimeout, getDbCryptConfig, getEncoding, getParallelWorkers, getPassword, getPortNumber, getProcessId, getProcessName, getRoleName, getServerName, getSocketBufferSize, getSoTimeout, getType, getUser, getWireCrypt, isWireCompression, setAuthPlugins, setCharSet, setConnectTimeout, setDbCryptConfig, setEncoding, setParallelWorkers, setPassword, setPortNumber, setProcessId, setProcessName, setRoleName, setServerName, setSocketBufferSize, setSoTimeout, setType, setUser, setWireCompression, setWireCryptgetBooleanProperty, getIntProperty, getProperty@Deprecated public static final java.lang.String DATABASE_PROPERTY
@Deprecated public static final java.lang.String TYPE_PROPERTY
@Deprecated public static final java.lang.String ISOLATION_PROPERTY
PropertyNames.defaultIsolation@Deprecated public static final java.lang.String DEFAULT_ISOLATION_PROPERTY
PropertyNames.defaultIsolation@Deprecated public static final java.lang.String BLOB_BUFFER_SIZE_PROPERTY
@Deprecated public static final java.lang.String LOCAL_ENCODING_PROPERTY
PropertyNames.charSet@Deprecated public static final java.lang.String ENCODING_PROPERTY
@Deprecated public static final java.lang.String ROLE_NAME_PROPERTY
@Deprecated public static final java.lang.String SQL_DIALECT_PROPERTY
@Deprecated public static final java.lang.String USE_STREAM_BLOBS_PROPERTY
@Deprecated public static final java.lang.String SOCKET_BUFFER_SIZE_PROPERTY
@Deprecated public static final java.lang.String TIMESTAMP_USES_LOCAL_TIMEZONE_PROPERTY
@Deprecated public static final java.lang.String USER_NAME_PROPERTY
PropertyNames.user@Deprecated public static final java.lang.String PASSWORD_PROPERTY
@Deprecated public static final java.lang.String BUFFERS_NUMBER_PROPERTY
PropertyNames.pageCacheSize@Deprecated public static final java.lang.String DEFAULT_HOLDABLE_RS_PROPERTY
PropertyNames.defaultResultSetHoldable@Deprecated public static final java.lang.String SO_TIMEOUT
@Deprecated public static final java.lang.String CONNECT_TIMEOUT
@Deprecated public static final java.lang.String USE_FIREBIRD_AUTOCOMMIT
@Deprecated public static final java.lang.String WIRE_CRYPT_LEVEL
@Deprecated public static final java.lang.String DB_CRYPT_CONFIG
@Deprecated public static final java.lang.String AUTH_PLUGINS
@Deprecated public static final java.lang.String GENERATED_KEYS_ENABLED
@Deprecated public static final java.lang.String DATA_TYPE_BIND
@Deprecated public static final java.lang.String SESSION_TIME_ZONE
@Deprecated public static final java.lang.String IGNORE_PROCEDURE_TYPE
@Deprecated public static final java.lang.String WIRE_COMPRESSION
public java.lang.String getProperty(java.lang.String name)
BaseProperties
For properties with an explicit default, this method should return the string presentation of that default, not
null. For int or boolean the string equivalent is returned.
getProperty in interface BasePropertiesname - Property name (not null or empty)null when not set or not a known propertypublic void setProperty(java.lang.String name,
java.lang.String value)
BaseProperties
This method can be used to set all defined properties, but also properties not known by Jaybird. When setting
int or boolean properties, the appropriate conversions are applied. Using null will
reset to the default value. For boolean properties, an empty string is taken to mean true.
setProperty in interface BasePropertiesname - Property name (not null or empty)value - Property value (use null to apply default)public java.lang.Integer getIntProperty(java.lang.String name)
BasePropertiesint property value by name.
For properties with an explicit default, this method should return the integer presentation of that default. For
implementation simplicity, it is allowed to convert any string property to int instead of checking if
something is actually an int property
getIntProperty in interface BasePropertiesname - Property name (not null or empty)null when not setpublic void setIntProperty(java.lang.String name,
java.lang.Integer value)
BasePropertiesint property by name.
For implementation simplicity, it is allowed to also set string properties. The value set will be the string equivalent.
setIntProperty in interface BasePropertiesname - Property name (not null or empty)value - Property value (use null to apply default)public java.lang.Boolean getBooleanProperty(java.lang.String name)
BasePropertiesboolean property value by name.
For properties with an explicit default, this method should return the boolean presentation of that default. For
implementation simplicity, it is allowed to convert any string property to boolean instead of checking
if something is actually an int property
getBooleanProperty in interface BasePropertiesname - Property name (not null or empty)null when not setpublic void setBooleanProperty(java.lang.String name,
java.lang.Boolean value)
BasePropertiesboolean property by name.
For implementation simplicity, it is allowed to also set string properties. The value set will be the string equivalent.
setBooleanProperty in interface BasePropertiesname - Property name (not null or empty)value - Property value (use null to apply default)public java.util.Map<ConnectionProperty,java.lang.Object> connectionPropertyValues()
BaseProperties
Be aware, implementations can have additional properties that are not mapped from ConnectionProperty.
Such properties will need to be retrieved in an implementation-specific manner.
connectionPropertyValues in interface BasePropertiespublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic void setNonStandardProperty(java.lang.String propertyMapping)
FirebirdConnectionPropertiessetNonStandardProperty in interface FirebirdConnectionPropertiespropertyMapping - parameter value in the propertyName[=propertyValue] form, this allows setting non-standard
parameters using configuration files.public TransactionParameterBuffer getTransactionParameters(int isolation)
FirebirdConnectionPropertiesgetTransactionParameters in interface FirebirdConnectionPropertiesisolation - transaction isolation level for which TPB should be returned.TransactionParameterBuffer.public void setTransactionParameters(int isolation,
TransactionParameterBuffer tpb)
FirebirdConnectionPropertiessetTransactionParameters in interface FirebirdConnectionPropertiesisolation - transaction isolation level.tpb - instance of TransactionParameterBuffer containing
transaction parameters.public FBTpbMapper getMapper() throws java.sql.SQLException
java.sql.SQLExceptionpublic IConnectionProperties asIConnectionProperties()
IConnectionPropertiesCopyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.