Class TopiaConnectionProviderHardCoded

java.lang.Object
org.nuiton.topia.framework.TopiaConnectionProviderHardCoded
All Implemented Interfaces:
Serializable, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable, org.hibernate.service.spi.Wrapped

public class TopiaConnectionProviderHardCoded extends Object implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
Customized connection provider.
Since:
2.5.3
Author:
tchemit <chemit@codelutin.com>
See Also:
  • Field Details

    • pool

      protected final List<Connection> pool
      Our pool of connections which are not closed and availables.
  • Constructor Details

    • TopiaConnectionProviderHardCoded

      public TopiaConnectionProviderHardCoded()
  • Method Details

    • configure

      public void configure(Map configurationValues) throws org.hibernate.HibernateException
      Specified by:
      configure in interface org.hibernate.service.spi.Configurable
      Throws:
      org.hibernate.HibernateException
    • getConnection

      public Connection getConnection() throws SQLException
      Specified by:
      getConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      Throws:
      SQLException
    • closeConnection

      public void closeConnection(Connection conn) throws SQLException
      Specified by:
      closeConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      Throws:
      SQLException
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • stop

      public void stop()
      Specified by:
      stop in interface org.hibernate.service.spi.Stoppable
    • supportsAggressiveRelease

      public boolean supportsAggressiveRelease()
      Specified by:
      supportsAggressiveRelease in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
    • isUnwrappableAs

      public boolean isUnwrappableAs(Class unwrapType)
      Specified by:
      isUnwrappableAs in interface org.hibernate.service.spi.Wrapped
    • unwrap

      public <T> T unwrap(Class<T> unwrapType)
      Specified by:
      unwrap in interface org.hibernate.service.spi.Wrapped