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 HibernateConnectionProviderthrows an exception if a JDBC connection is requested.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NoJdbcConnectionProviderINSTANCE
-
Constructor Summary
Constructors Constructor Description NoJdbcConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseConnection(Connection conn)ConnectiongetConnection()booleanisUnwrappableAs(Class unwrapType)booleansupportsAggressiveRelease()<T> Tunwrap(Class<T> unwrapType)
-
-
-
Field Detail
-
INSTANCE
public static final NoJdbcConnectionProvider INSTANCE
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceConnectionProvider- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection conn)
- Specified by:
closeConnectionin interfaceConnectionProvider
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveReleasein interfaceConnectionProvider
-
isUnwrappableAs
public boolean isUnwrappableAs(Class unwrapType)
- Specified by:
isUnwrappableAsin interfaceWrapped
-
-