Package org.nuiton.topia.framework
Class TopiaConnectionProviderHardCoded
java.lang.Object
org.nuiton.topia.framework.TopiaConnectionProviderHardCoded
- All Implemented Interfaces:
Serializable,org.hibernate.engine.jdbc.connections.spi.ConnectionProvider,org.hibernate.service.Service,org.hibernate.service.spi.Configurable,org.hibernate.service.spi.Stoppable,org.hibernate.service.spi.Wrapped
public class TopiaConnectionProviderHardCoded
extends Object
implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
Customized connection provider.
- Since:
- 2.5.3
- Author:
- tchemit <chemit@codelutin.com>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final List<Connection>Our pool of connections which are not closed and availables. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection conn) voidprotected voidfinalize()booleanisUnwrappableAs(Class unwrapType) voidstop()boolean<T> T
-
Field Details
-
pool
Our pool of connections which are not closed and availables.
-
-
Constructor Details
-
TopiaConnectionProviderHardCoded
public TopiaConnectionProviderHardCoded()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.hibernate.service.spi.Configurable- Throws:
org.hibernate.HibernateException
-
getConnection
- Specified by:
getConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
closeConnection
- Specified by:
closeConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
finalize
-
stop
public void stop()- Specified by:
stopin interfaceorg.hibernate.service.spi.Stoppable
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveReleasein interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
isUnwrappableAs
- Specified by:
isUnwrappableAsin interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
- Specified by:
unwrapin interfaceorg.hibernate.service.spi.Wrapped
-