home *** CD-ROM | disk | FTP | other *** search
Java Source | 1998-03-19 | 837 b | 39 lines |
-
- import symantec.itools.db.beans.jdbc.*;
- import java.sql.*;
-
- public class ConnectionManager1 extends ConnectionManager
- {
-
- public ConnectionManager1()
- {
- super();
- init();
- }
-
- public void init()
- {
- //{{INIT_CONTROLS
- jdbcConnection1 = new symantec.itools.db.beans.jdbc.JdbcConnection();
- jdbcConnection1.setIdentifier("jdbcConnection1");
- jdbcConnection1.setURL("jdbc:dbaw://localhost:8889/Tutorial");
- jdbcConnection1.setUserName("dba");
- jdbcConnection1.setPassword("sql");
- try {
- jdbcConnection1.setReadOnly(false);
- } catch (java.sql.SQLException e) {
- System.out.println(e.getMessage());
- return;
- }
- add(jdbcConnection1);
- //$$ jdbcConnection1.move(0,0);
- //}}
- }
-
- //{{DECLARE_CONTROLS
- static symantec.itools.db.beans.jdbc.JdbcConnection jdbcConnection1;
- //}}
-
- }
-
-