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 DataSource
ds
-
Constructor Summary
Constructors Constructor Description NuxeoConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
closeConnection(Connection connection)
void
configure(Properties props)
Connection
getConnection()
boolean
supportsAggressiveRelease()
-
-
-
Field Detail
-
ds
protected DataSource ds
-
-
Method Detail
-
configure
public void configure(Properties props)
- Specified by:
configure
in interfaceorg.hibernate.connection.ConnectionProvider
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection connection) throws SQLException
- Specified by:
closeConnection
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
SQLException
-
close
public void close() throws org.hibernate.HibernateException
- Specified by:
close
in interfaceorg.hibernate.connection.ConnectionProvider
- Throws:
org.hibernate.HibernateException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.connection.ConnectionProvider
-
-