Class DriverConnectionFactory

    • Constructor Summary

      Constructors 
      Constructor Description
      DriverConnectionFactory​(Driver driver, boolean useProxies)
      Constructs a new DriverConnectionFactory with given database and mapping.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.sql.Connection createConnection()
      Creates a new JDBC Connection instance.
      void initializeFactory()
      Initialize the concrete factory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DriverConnectionFactory

        public DriverConnectionFactory​(Driver driver,
                                       boolean useProxies)
        Constructs a new DriverConnectionFactory with given database and mapping.
        Parameters:
        driver - Driver configuration.
        useProxies - Wrap JDBC connections by proxies?
    • Method Detail

      • createConnection

        public java.sql.Connection createConnection()
                                             throws java.sql.SQLException
        Creates a new JDBC Connection instance.
        Specified by:
        createConnection in interface ConnectionFactory
        Returns:
        A JDBC Connection.
        Throws:
        java.sql.SQLException - If the JDBC connection cannot be created.