◆ DaoTransaction()
org.turro.jpa.DaoTransaction.DaoTransaction |
( |
Dao |
dao | ) |
|
Definition at line 43 of file DaoTransaction.java.
44 this.manager =
new DaoManager(dao);
45 this.transaction = manager.
getManager().getTransaction();
EntityManager getManager()
◆ close()
void org.turro.jpa.DaoTransaction.close |
( |
| ) |
|
Definition at line 106 of file DaoTransaction.java.
107 if(transaction !=
null && transaction.isActive()) {
109 transaction.commit();
110 }
catch (Exception ex) {
111 Logger.getLogger(
DaoTransaction.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
113 transaction.rollback();
114 }
catch (Exception e) {
115 throw new ElephantException(e);
119 openTransactions.decrement();
◆ createNativeQuery() [1/2]
Query org.turro.jpa.DaoTransaction.createNativeQuery |
( |
String |
clause | ) |
|
Definition at line 91 of file DaoTransaction.java.
Query createNativeQuery(String clause, Class resultClass)
◆ createNativeQuery() [2/2]
Query org.turro.jpa.DaoTransaction.createNativeQuery |
( |
String |
clause, |
|
|
Class |
resultClass |
|
) |
| |
◆ createQuery() [1/3]
Query org.turro.jpa.DaoTransaction.createQuery |
( |
CriteriaDelete |
delete | ) |
|
◆ createQuery() [2/3]
Query org.turro.jpa.DaoTransaction.createQuery |
( |
CriteriaUpdate |
update | ) |
|
◆ createQuery() [3/3]
Query org.turro.jpa.DaoTransaction.createQuery |
( |
String |
clause | ) |
|
◆ getCounter()
static AtomicCounter org.turro.jpa.DaoTransaction.getCounter |
( |
| ) |
|
|
static |
◆ getDao()
Dao org.turro.jpa.DaoTransaction.getDao |
( |
| ) |
|
◆ persist()
void org.turro.jpa.DaoTransaction.persist |
( |
Object |
obj | ) |
|
◆ remove()
void org.turro.jpa.DaoTransaction.remove |
( |
Object |
obj | ) |
|
◆ setNamedParameters()
void org.turro.jpa.DaoTransaction.setNamedParameters |
( |
Query |
q, |
|
|
Map< String, Object > |
parameters |
|
) |
| |
Definition at line 95 of file DaoTransaction.java.
void setNamedParameters(Query q, Map< String, Object > parameters)
The documentation for this class was generated from the following file: