public class HibernateDatabaseSetup extends Object
Modifier and Type | Field and Description |
---|---|
protected Configuration |
configuration |
static String |
copyright |
static org.slf4j.Logger |
logger |
protected SessionFactory |
sessionFactory |
protected ThreadLocal<Session> |
threadSessions |
Constructor and Description |
---|
HibernateDatabaseSetup(Configuration configuration,
SessionFactory sessionFactory) |
Modifier and Type | Method and Description |
---|---|
Configuration |
getConfiguration() |
SessionFactory |
getSessionFactory() |
Session |
getThreadSession() |
Session |
getThreadSession(boolean create) |
ThreadLocal<Session> |
getThreadSessions() |
void |
removeThreadSession() |
void |
setThreadSession(Session session) |
public static final String copyright
protected final Configuration configuration
protected final SessionFactory sessionFactory
protected final ThreadLocal<Session> threadSessions
public static final org.slf4j.Logger logger
public HibernateDatabaseSetup(Configuration configuration, SessionFactory sessionFactory)
public SessionFactory getSessionFactory()
public Configuration getConfiguration()
public ThreadLocal<Session> getThreadSessions()
public Session getThreadSession()
public Session getThreadSession(boolean create)
public void setThreadSession(Session session)
public void removeThreadSession()