Class NoJdbcConnectionProvider
- java.lang.Object
-
- org.hibernate.reactive.provider.service.NoJdbcConnectionProvider
-
- All Implemented Interfaces:
Serializable
,ConnectionProvider
,Service
,Wrapped
public class NoJdbcConnectionProvider extends Object implements ConnectionProvider
A dummy HibernateConnectionProvider
throws an exception if a JDBC connection is requested.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NoJdbcConnectionProvider
INSTANCE
-
Constructor Summary
Constructors Constructor Description NoJdbcConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(Connection conn)
Connection
getConnection()
boolean
isUnwrappableAs(Class unwrapType)
boolean
supportsAggressiveRelease()
<T> T
unwrap(Class<T> unwrapType)
-
-
-
Field Detail
-
INSTANCE
public static final NoJdbcConnectionProvider INSTANCE
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceConnectionProvider
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection conn)
- Specified by:
closeConnection
in interfaceConnectionProvider
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interfaceConnectionProvider
-
isUnwrappableAs
public boolean isUnwrappableAs(Class unwrapType)
- Specified by:
isUnwrappableAs
in interfaceWrapped
-
-