Package org.nuxeo.ecm.core.persistence
Class NuxeoConnectionProvider
- java.lang.Object
-
- org.nuxeo.ecm.core.persistence.NuxeoConnectionProvider
-
- All Implemented Interfaces:
org.hibernate.connection.ConnectionProvider
public class NuxeoConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
ConnectionProvider for Hibernate that looks up the datasource from the nuxeo's container.- Since:
- 5.7
-
-
Field Summary
Fields Modifier and Type Field Description protected DataSourceds
-
Constructor Summary
Constructors Constructor Description NuxeoConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcloseConnection(Connection connection)voidconfigure(Properties props)ConnectiongetConnection()booleansupportsAggressiveRelease()
-
-
-
Field Detail
-
ds
protected DataSource ds
-
-
Method Detail
-
configure
public void configure(Properties props)
- Specified by:
configurein interfaceorg.hibernate.connection.ConnectionProvider
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnectionin interfaceorg.hibernate.connection.ConnectionProvider- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection connection) throws SQLException
- Specified by:
closeConnectionin interfaceorg.hibernate.connection.ConnectionProvider- Throws:
SQLException
-
close
public void close() throws org.hibernate.HibernateException- Specified by:
closein interfaceorg.hibernate.connection.ConnectionProvider- Throws:
org.hibernate.HibernateException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveReleasein interfaceorg.hibernate.connection.ConnectionProvider
-
-