Package com.nt.udc.db

Class DBConnectionFactory

java.lang.Object
com.nt.udc.db.DBConnectionFactory
All Implemented Interfaces:
JDBCConnectionFactoryIfc
Direct Known Subclasses:
OracleConnectionFactory

public class DBConnectionFactory extends Object implements JDBCConnectionFactoryIfc
  • Field Details

  • Constructor Details

    • DBConnectionFactory

      public DBConnectionFactory(String connURL, String user, String pword, String dbdriver) throws SQLException
      Construct the connection factory with the information necessary for creating a java.sql.Connection object for communicating with an Oracle database.
      Parameters:
      connURL - The URL used by the JDBC driver to make the connection to the database.
      user - The user ID to be used for the database login.
      pword - The password to be used for the database login.
      dbdriver - The class name of the JDBC driver.
      Throws:
      SQLException
    • DBConnectionFactory

      public DBConnectionFactory(String connURL, String user, String pword, String dbdriver, boolean commit) throws SQLException
      Construct the connection factory with the information necessary for creating a java.sql.Connection object for communicating with an Oracle database.
      Parameters:
      connURL - The URL used by the JDBC driver to make the connection to the database.
      user - The user ID to be used for the database login.
      pword - The password to be used for the database login.
      dbdriver - The class name of the JDBC driver.
      commit - true, if each statement will be automatically commited.
      Throws:
      SQLException
    • DBConnectionFactory

      public DBConnectionFactory(String host, String port, String sid, String serviceName, String user, String pword, String dbdriver, String urltemplate) throws SQLException
      Construct the connection factory with the information necessary for creating a java.sql.Connection object for communicating with an Oracle database.
      Parameters:
      host - The host name where the Oracle database is running.
      port - The port on which the Oracle communication software is running.
      sid - The identifier used to indicate the Oracle database instance to which to connect.
      serviceName - The identifier used to indicate the Oracle database service Name to which to connect.
      user - The user ID to be used for the database login.
      pword - The password to be used for the database login.
      dbdriver - The class name of the JDBC driver.
      urltemplate - The template of the JDBC URL.
      Throws:
      SQLException
    • DBConnectionFactory

      public DBConnectionFactory(String host, String port, String sid, String serviceName, String user, String pword, String dbdriver, String urltemplate, boolean commit) throws SQLException
      Construct the connection factory with the information necessary for creating a java.sql.Connection object for communicating with an Oracle database.
      Parameters:
      host - The host name where the Oracle database is running.
      port - The port on which the Oracle communication software is running.
      sid - The identifier used to indicate the Oracle database instance to which to connect.
      serviceName - The identifier used to indicate the Oracle database service name to which to connect.
      user - The user ID to be used for the database login.
      pword - The password to be used for the database login.
      dbdriver - The class name of the JDBC driver.
      urltemplate - The template of the JDBC URL.
      commit - true, if each statement will be automatically commited.
      Throws:
      SQLException
  • Method Details