Class NoJdbcConnectionProvider

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.Service, org.hibernate.service.spi.Wrapped

    public class NoJdbcConnectionProvider
    extends java.lang.Object
    implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
    A dummy Hibernate ConnectionProvider throws an exception if a JDBC connection is requested.
    See Also:
    Serialized Form
    • Constructor Detail

      • NoJdbcConnectionProvider

        public NoJdbcConnectionProvider()
    • Method Detail

      • getConnection

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

        public void closeConnection​(java.sql.Connection conn)
        Specified by:
        closeConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
      • supportsAggressiveRelease

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

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

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