public class JpaStore extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
JpaStore.JpaWork<T>
Perform work using a provided Hibernate Session.
|
Constructor and Description |
---|
JpaStore(String persistenceUnit)
Deprecated.
|
JpaStore(String persistenceUnit,
String jndiProperty)
Deprecated.
|
JpaStore(URL configXml)
The constructor.
|
JpaStore(URL configXml,
String jndiProperty)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
withJpa(JpaStore.JpaWork<T> work)
This method performs the supplied work in a transaction.
|
public JpaStore(URL configXml, String jndiProperty)
configXml
- The hibernate.cfg.xml URLjndiProperty
- The jndi namepublic JpaStore(URL configXml)
configXml
- The hibernate.cfg.xml URL@Deprecated public JpaStore(String persistenceUnit, String jndiProperty)
persistenceUnit
- The persistence unit namejndiProperty
- The jndi name@Deprecated public JpaStore(String persistenceUnit)
persistenceUnit
- The persistence unit namepublic <T> T withJpa(JpaStore.JpaWork<T> work)
T
- The type if the return valuework
- The unit of workCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.