public class JTASessionOpener extends Object
The main purpose of this class is to cache session options when possible; if we didn't care about caching, we could just replace any call to
| Constructor and Description |
|---|
JTASessionOpener(org.hibernate.SessionFactory sessionFactory,
org.hibernate.SessionBuilder<?> cachedOptions) |
| Modifier and Type | Method and Description |
|---|---|
static JTASessionOpener |
create(org.hibernate.SessionFactory sessionFactory) |
org.hibernate.Session |
openSession() |
public JTASessionOpener(org.hibernate.SessionFactory sessionFactory,
org.hibernate.SessionBuilder<?> cachedOptions)
public static JTASessionOpener create(org.hibernate.SessionFactory sessionFactory)
public org.hibernate.Session openSession()
Copyright © 2021 JBoss by Red Hat. All rights reserved.