예제 #1
0
  static {
    String title = ING_TRACE_NAME + "-Driver";

    /*
     ** Initialize Ingres driver tracing.
     */
    IngConfig.setDriverVers(driverMajorVersion, driverMinorVersion, driverPatchVersion);
    TraceLog traceLog = IngTrace.getTraceLog();

    /*
     ** Create IngresDriver object and register with DriverManager.
     */
    try {
      DriverManager.registerDriver(new IngresDriver());
      DriverManager.println(
          ING_DRIVER_NAME
              + ": Version "
              + driverMajorVersion
              + "."
              + driverMinorVersion
              + "."
              + driverPatchVersion
              + " ("
              + driverJdbcVersion
              + ")");
      DriverManager.println(driverVendor);
      traceLog.write(title + ": registered");
    } catch (Exception ex) {
      DriverManager.println(ING_DRIVER_NAME + ": registration failed!");
      traceLog.write(title + ": registration failed!");
    }
  } // <class initializer>
예제 #2
0
 protected Config loadConfig() {
   return (IngConfig.getConfig());
 }