public class TopiaConnectionProvider extends Object implements org.hibernate.connection.ConnectionProvider
config.setProperty(Environment.CONNECTION_PROVIDER, TopiaConnectionProvider.class.getName());or in a properties file :
hibernate.connection.provider_class=org.nuiton.topia.framework.TopiaConnectionProvider
| Constructor and Description |
|---|
TopiaConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(Connection conn) |
void |
configure(Properties props) |
protected void |
finalize() |
Connection |
getConnection() |
Properties |
getConnectionProps() |
Integer |
getIsolation() |
List<Connection> |
getPool() |
int |
getPoolSize() |
String |
getUrl() |
boolean |
isAutocommit() |
boolean |
supportsAggressiveRelease() |
public void configure(Properties props) throws org.hibernate.HibernateException
configure in interface org.hibernate.connection.ConnectionProviderorg.hibernate.HibernateExceptionpublic Connection getConnection() throws SQLException
getConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionpublic void closeConnection(Connection conn) throws SQLException
closeConnection in interface org.hibernate.connection.ConnectionProviderSQLExceptionprotected void finalize()
throws Throwable
public void close()
close in interface org.hibernate.connection.ConnectionProviderpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.connection.ConnectionProviderpublic String getUrl()
public Properties getConnectionProps()
public Integer getIsolation()
public List<Connection> getPool()
public int getPoolSize()
public boolean isAutocommit()
Copyright © 2004-2012 CodeLutin. All Rights Reserved.