Subject | Re: AW: [Firebird-Java] urgend charset problem |
---|---|
Author | Roman Rokytskyy |
Post date | 2004-10-13T06:52:38Z |
> Hims
> And what unit is pingInterval messured in? ms? s?
> What are the uses of these:Setter with one parameter provides a possibility to set a DPB parameter
> nonStandardProperty a non-standard connection parameter in form
> name[=value].
using following syntax:
dataSource.setNonStandardProperty("isc_dpb_sql_dialect=3");
Such syntax is not very common in Java code, it would be much more natural
to use two-parameter setter. However there's no possibility to use
two-parameter setter method in configuration files. Usually, when setting a
configuration parameter of a data source, web-containers use Java reflection
API and consider only those setters that take one parameter. In Tomcat
configuration parameter would look like this:
<parameter>
<name>nonStandardProperty</name>
<value>sql_dialect=3</value>
</parameter>
> tpbMapping mapping of the TPB parameters to JDBC transactionResource bundle (.properties file) with mapping between standard isolation
> isolation levels.
levels in JDBC to the TPB parameters in Firebird. For more information on
TPB see Firebird API reference.
> And what is the difference between:ds.setTransationIsolationLevel(2) or
> transactionIsolationLevel default transaction isolation level,
> number from Connection interface.
ds.setTransactionIsolationLevel(Connection.TRANSACTION_READ_COMMITTED)
> isolation default transaction isolation level for connections asds.setIsolation("TRANSACTION_READ_COMMITTED");
> string;
more useful for config files, since "transactionIsolationLevel = 2" is not
very informative.
Roman