public static class TopiaUtil.ConnectionProviderSupplier extends Object implements com.google.common.base.Supplier<org.hibernate.engine.jdbc.connections.spi.ConnectionProvider>, Closeable
| Modifier and Type | Field and Description |
|---|---|
protected org.hibernate.engine.jdbc.connections.spi.ConnectionProvider |
connectionProvider |
protected org.hibernate.SessionFactory |
sessionFactory
If provided, the SessionFactory will be used instead of the StandardServiceRegistry
|
protected org.hibernate.boot.registry.StandardServiceRegistry |
standardServiceRegistry
StandardServiceRegistry will be used if no SessionFactory is provided
|
| Constructor and Description |
|---|
TopiaUtil.ConnectionProviderSupplier(org.hibernate.cfg.Configuration configuration) |
TopiaUtil.ConnectionProviderSupplier(TopiaHibernateSupport topiaHibernateSupport) |
protected org.hibernate.SessionFactory sessionFactory
protected org.hibernate.boot.registry.StandardServiceRegistry standardServiceRegistry
protected org.hibernate.engine.jdbc.connections.spi.ConnectionProvider connectionProvider
public TopiaUtil.ConnectionProviderSupplier(TopiaHibernateSupport topiaHibernateSupport)
public TopiaUtil.ConnectionProviderSupplier(org.hibernate.cfg.Configuration configuration)
public org.hibernate.engine.jdbc.connections.spi.ConnectionProvider get()
get in interface com.google.common.base.Supplier<org.hibernate.engine.jdbc.connections.spi.ConnectionProvider>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2004–2014 CodeLutin. All rights reserved.