- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 37 of file DaoManager.java.
◆ DaoManager()
org.turro.jpa.DaoManager.DaoManager |
( |
Dao |
dao | ) |
|
Definition at line 42 of file DaoManager.java.
45 openManagers.increment();
abstract EntityManager createEntityManager()
◆ clear()
void org.turro.jpa.DaoManager.clear |
( |
| ) |
|
◆ close()
void org.turro.jpa.DaoManager.close |
( |
| ) |
|
◆ createNativeQuery() [1/2]
Query org.turro.jpa.DaoManager.createNativeQuery |
( |
String |
clause | ) |
|
Definition at line 98 of file DaoManager.java.
99 return manager.createNativeQuery(clause);
◆ createNativeQuery() [2/2]
Query org.turro.jpa.DaoManager.createNativeQuery |
( |
String |
clause, |
|
|
Class |
resultClass |
|
) |
| |
Definition at line 94 of file DaoManager.java.
95 return manager.createNativeQuery(clause, resultClass);
◆ createQuery() [1/3]
Query org.turro.jpa.DaoManager.createQuery |
( |
CriteriaDelete |
delete | ) |
|
Definition at line 86 of file DaoManager.java.
87 return manager.createQuery(
delete);
◆ createQuery() [2/3]
Query org.turro.jpa.DaoManager.createQuery |
( |
CriteriaUpdate |
update | ) |
|
Definition at line 90 of file DaoManager.java.
91 return manager.createQuery(update);
◆ createQuery() [3/3]
Query org.turro.jpa.DaoManager.createQuery |
( |
String |
clause | ) |
|
Definition at line 82 of file DaoManager.java.
83 return manager.createQuery(clause);
◆ getCounter()
static AtomicCounter org.turro.jpa.DaoManager.getCounter |
( |
| ) |
|
|
static |
◆ getDao()
Dao org.turro.jpa.DaoManager.getDao |
( |
| ) |
|
◆ getManager()
EntityManager org.turro.jpa.DaoManager.getManager |
( |
| ) |
|
◆ isClosed()
boolean org.turro.jpa.DaoManager.isClosed |
( |
| ) |
|
◆ persist()
void org.turro.jpa.DaoManager.persist |
( |
Object |
obj | ) |
|
Definition at line 58 of file DaoManager.java.
61 }
catch (Exception ex) {
62 Logger.getLogger(
DaoManager.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(
null), ex);
◆ remove()
void org.turro.jpa.DaoManager.remove |
( |
Object |
obj | ) |
|
◆ setNamedParameters()
void org.turro.jpa.DaoManager.setNamedParameters |
( |
Query |
q, |
|
|
Map< String, Object > |
parameters |
|
) |
| |
Definition at line 102 of file DaoManager.java.
103 for (Map.Entry<String, Object> e : parameters.entrySet()) {
104 q.setParameter(e.getKey(), e.getValue());
The documentation for this class was generated from the following file: