home *** CD-ROM | disk | FTP | other *** search
- import java.sql.SQLException;
- import symantec.itools.db.beans.jdbc.ConnectionManager;
- import symantec.itools.db.beans.jdbc.JdbcConnection;
-
- public class ConnectionManager1 extends ConnectionManager {
- static JdbcConnection jdbcConnection1;
-
- public ConnectionManager1() {
- this.init();
- }
-
- public void init() {
- jdbcConnection1 = new JdbcConnection();
- jdbcConnection1.setIdentifier("jdbcConnection1");
- jdbcConnection1.setURL("jdbc:dbaw://localhost:8889/Tutorial");
- jdbcConnection1.setUserName("dba");
- jdbcConnection1.setPassword("sql");
-
- try {
- jdbcConnection1.setReadOnly(false);
- } catch (SQLException e) {
- System.out.println(((Throwable)e).getMessage());
- return;
- }
-
- ((ConnectionManager)this).add(jdbcConnection1);
- }
- }
-