Subject | Re: FireBird isolation |
---|---|
Author | jcahg2000 |
Post date | 2005-02-19T21:09:13Z |
Dear Roman,
my class of test is thus:
/*
* testeconct.java
*
* Created on 16 de Fevereiro de 2005, 18:02
*/
package STI.conecta;
import java.lang.*;
import javax.swing.JOptionPane;
import java.sql.*;
import org.firebirdsql.jdbc.*;
/**
*
* @author Jean
*/
public class testeconct {
/** Creates a new instance of testeconct */
public testeconct() {
try
{
Class.forName("org.firebirdsql.jdbc.FBDriver");
org.firebirdsql.jdbc.FBConnection conn = (FBConnection)
DriverManager.getConnection("vvvvvvvv");
conn.setTransactionIsolation
(java.sql.Connection.TRANSACTION_READ_COMMITTED);
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
}
catch(Exception E)
{
JOptionPane.showMessageDialog(null,"ERRO na classe
conecta ao se"+
"
conectar: " + E);
}
}
}
Only that it continues giving error! he sees if you can help me!!!
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : method setTransactionParameters (int,int[])
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
4 errors
Errors compiling testeconct.
thanks, JC
my class of test is thus:
/*
* testeconct.java
*
* Created on 16 de Fevereiro de 2005, 18:02
*/
package STI.conecta;
import java.lang.*;
import javax.swing.JOptionPane;
import java.sql.*;
import org.firebirdsql.jdbc.*;
/**
*
* @author Jean
*/
public class testeconct {
/** Creates a new instance of testeconct */
public testeconct() {
try
{
Class.forName("org.firebirdsql.jdbc.FBDriver");
org.firebirdsql.jdbc.FBConnection conn = (FBConnection)
DriverManager.getConnection("vvvvvvvv");
conn.setTransactionIsolation
(java.sql.Connection.TRANSACTION_READ_COMMITTED);
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
}
catch(Exception E)
{
JOptionPane.showMessageDialog(null,"ERRO na classe
conecta ao se"+
"
conectar: " + E);
}
}
}
Only that it continues giving error! he sees if you can help me!!!
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : class FirebirdConnection
location: package jdbc
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
STI/conecta/testeconct.java [26:1] cannot resolve symbol
symbol : method setTransactionParameters (int,int[])
location: class org.firebirdsql.jdbc.FBConnection
conn.setTransactionParameters
(java.sql.Connection.TRANSACTION_READ_COMMITTED,new int[]
{org.firebirdsql.jdbc.FirebirdConnection.TPB_READ_COMMITTED,org.fireb
irdsql.jdbc.FirebirdConnection.TPB_REC_VERSION,org.firebirdsql.jdbc.F
irebirdConnection.TPB_NOWAIT});
^
4 errors
Errors compiling testeconct.
thanks, JC