home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 November / Chip_1998-11_cd.bin / tema / Cafe / ddetour.bin / ConnectionManager1.java < prev    next >
Text File  |  1998-03-19  |  837b  |  39 lines

  1.  
  2. import symantec.itools.db.beans.jdbc.*;
  3. import java.sql.*;
  4.  
  5. public class ConnectionManager1 extends ConnectionManager
  6. {
  7.  
  8.     public ConnectionManager1()
  9.     {
  10.         super();
  11.         init();
  12.     }
  13.  
  14.     public void init()
  15.     {
  16.         //{{INIT_CONTROLS
  17.         jdbcConnection1 = new symantec.itools.db.beans.jdbc.JdbcConnection();
  18.         jdbcConnection1.setIdentifier("jdbcConnection1");
  19.         jdbcConnection1.setURL("jdbc:dbaw://localhost:8889/Tutorial");
  20.         jdbcConnection1.setUserName("dba");
  21.         jdbcConnection1.setPassword("sql");
  22.         try {
  23.         jdbcConnection1.setReadOnly(false);
  24.         } catch (java.sql.SQLException e) {
  25.             System.out.println(e.getMessage());
  26.             return;
  27.         }
  28.         add(jdbcConnection1);
  29.         //$$ jdbcConnection1.move(0,0);
  30.         //}}
  31.     }
  32.  
  33. //{{DECLARE_CONTROLS
  34.     static symantec.itools.db.beans.jdbc.JdbcConnection jdbcConnection1;
  35.     //}}
  36.  
  37. }
  38.  
  39.