Subject Re: FireBird isolation
Author jcahg2000
I tried of this form and I appeared this error!



Class.forName("org.firebirdsql.jdbc.FBDriver");

FBConnection conn = (FBConnection)DriverManager.getConnection(
"jdbc:firebirdsql:ip_ou_nome_servidor:caminho_banco" +
"?sql_role_name=NOME_ROLE" + "&lc_ctype=NOME_CHARSET",
USUARIO, SENHA);

conn.setTransactionIsolation(
FBConnection.TRANSACTION_READ_COMMITTED);

conn.setTransactionParameters(
FBConnection.TRANSACTION_READ_COMMITTED,
new int[] {
FBConnection.TPB_READ_COMMITTED,
FBConnection.TPB_REC_VERSION,
FBConnection.TPB_NOWAIT});


error!!!!!!!!!!

STI/conecta/testeconct.java [25:1] cannot resolve symbol
symbol : variable TPB_READ_COMMITTED
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(FBConnection.TRANSACTION_READ_COMMITTED,
new int[]
{FBConnection.TPB_READ_COMMITTED,FBConnection.TPB_REC_VERSION,
FBConnection.TPB_NOWAIT});

^
STI/conecta/testeconct.java [25:1] cannot resolve symbol
symbol : variable TPB_REC_VERSION
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(FBConnection.TRANSACTION_READ_COMMITTED,
new int[]
{FBConnection.TPB_READ_COMMITTED,FBConnection.TPB_REC_VERSION,
FBConnection.TPB_NOWAIT});

^
STI/conecta/testeconct.java [25:1] cannot resolve symbol
symbol : variable TPB_NOWAIT
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(FBConnection.TRANSACTION_READ_COMMITTED,
new int[]
{FBConnection.TPB_READ_COMMITTED,FBConnection.TPB_REC_VERSION,
FBConnection.TPB_NOWAIT});

^
STI/conecta/testeconct.java [25:1] cannot resolve symbol
symbol : method setTransactionParameters (int,int[])
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(FBConnection.TRANSACTION_READ_COMMITTED,
new int[]
{FBConnection.TPB_READ_COMMITTED,FBConnection.TPB_REC_VERSION,
FBConnection.TPB_NOWAIT});
^
4 errors
Errors compiling testeconct.

T+
JC
Petroli/PE - Brazil