Class ConnectionFactoryImpl

java.lang.Object
com.softwaremining.sql.ConnectionFactory
com.softwaremining.sql.ConnectionFactoryImpl

public class ConnectionFactoryImpl extends ConnectionFactory
  • Constructor Details

    • ConnectionFactoryImpl

      public ConnectionFactoryImpl()
  • Method Details

    • getConnection

      public Connection getConnection(String resourceName, Long sessionId)
      create a connection taking the details (name, password, driver, etc) from the information specified in the property file - identified by "resourceName"
      Specified by:
      getConnection in class ConnectionFactory
      Parameters:
      properties -
      Returns:
    • getConnection

      public Connection getConnection(Long sessionId)
      create a connection taking the details (name, password, driver, etc) from the information specified in the property file - LOCATED IN THE ROOT DIRECTORY
      Specified by:
      getConnection in class ConnectionFactory
      Parameters:
      properties -
      Returns:
    • getConnection

      public Connection getConnection(Properties properties, Long sessionId)
      create a connection taking the details from the specified property file
      Specified by:
      getConnection in class ConnectionFactory
      Parameters:
      properties -
      Returns:
    • initializeDbFeatures

      public void initializeDbFeatures(Long sessionId, String dbPropertiesName)
      Description copied from class: ConnectionFactory
      dbFeatuers refers to a class representing the underlying database: DB2, Oracle, MySQL , MSSQL , ... ALso read all properties - but do not create connection
      Specified by:
      initializeDbFeatures in class ConnectionFactory
    • getConnectionStrategy

      public int getConnectionStrategy(String resourceName)
      Specified by:
      getConnectionStrategy in class ConnectionFactory
    • getConnectionStrategy

      public int getConnectionStrategy(Properties properties)
    • setProperties

      public static void setProperties(Properties theProperties)
      Issue 0011014: Change-Request: new method "setProperties" required for ConnectionFactoryImpl Usage: setProperties( (EsqlProcessor) this.getDbPropertiesURI(), properties);
      Parameters:
      theProperties -