BrightSide Workbench Full Report + Source Code
org.turro.erp.db.ErpPU Class Reference
Inheritance diagram for org.turro.erp.db.ErpPU:
Collaboration diagram for org.turro.erp.db.ErpPU:

Public Member Functions

EntityManager createCachedEntityManager ()
 
String getPath (Object object)
 
- Public Member Functions inherited from org.turro.jpa.Dao
 Dao ()
 
Query createQuery (String query)
 
Query createNamedQuery (String name)
 
void close ()
 
Dao clear ()
 
void persistObject (Object obj)
 
void saveEntities (Collection<? extends IDaoEntity > entities)
 
void saveCollection (Collection objs)
 
void saveCollection (Collection objs, DaoCallback callback)
 
void deleteObject (Object obj)
 
void deleteEntity (IDaoEntity entity)
 
void deleteCollection (Collection objs)
 
void deleteCollection (Collection objs, DaoCallback callback)
 
void deleteEntities (Collection< IDaoEntity > entities)
 
EntityManager getEntityManager ()
 
EntityManager getCachedEntityManager ()
 
boolean isLoaded (Object o, String attribute)
 
boolean isNotLoaded (Object o, String attribute)
 
boolean isLoaded (Object o)
 
boolean isNotLoaded (Object o)
 
List getResultList (WhereClause wc)
 
List getResultList (WhereClause wc, int max)
 
List getResultList (WhereClause wc, int start, int max)
 
List getResultList (SqlClause sc)
 
List getResultList (SqlClause sc, int max)
 
List getResultList (SqlClause sc, int start, int max)
 
List getResultList (String query)
 
List getResultList (String query, int max)
 
List getResultList (String query, Object[] pars)
 
List getResultList (String query, Object[] pars, int max)
 
Object getSingleResult (WhereClause wc)
 
Object getSingleResult (SqlClause sc)
 
Object getSingleResult (String query)
 
Object getSingleResult (String query, Object[] pars)
 
Object getSingleResultOrNull (SqlClause sc)
 
Object getSingleResultOrNull (WhereClause wc)
 
Object getSingleResultOrNull (String query)
 
Object getSingleResultOrNull (String query, Object[] pars)
 
Object getSingleNativeResult (String query)
 
Object getSingleNativeResult (String query, Object[] pars)
 
int executeUpdate (String query)
 
int executeUpdate (String query, Object[] pars)
 
int executeDelete (JpaCriteriaDelete jpaCriteriaDelete)
 
int executeDelete (Collection< JpaCriteriaDelete > jpaCriteriaDeletes)
 
int executeUpdate (JpaCriteriaUpdate jpaCriteriaUpdate)
 
int executeUpdate (Collection< JpaCriteriaUpdate > jpaCriteriaUpdates)
 
int executeUpdate (WhereClause wc)
 
int executeUpdate (SqlClause sc)
 
int executeNativeUpdate (SqlClause sc, Object... pars)
 
int executeNativeUpdate (String query, Object... pars)
 
void poolObject (Object obj, int poolSize)
 
void finishPool ()
 

Static Public Member Functions

static String getObjectPath (Object object)
 
static String getObjectExtendedPath (Object object)
 
static Module getModule ()
 
- Static Public Member Functions inherited from org.turro.jpa.Dao
static String toJpaPositional (String query)
 
static Dao getDaoByPU (String pu)
 

Protected Member Functions

EntityManager createEntityManager ()
 
- Protected Member Functions inherited from org.turro.jpa.Dao
abstract EntityManagerFactory getFactory ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 31 of file ErpPU.java.

Member Function Documentation

◆ createCachedEntityManager()

EntityManager org.turro.erp.db.ErpPU.createCachedEntityManager ( )

Reimplemented from org.turro.jpa.Dao.

Definition at line 41 of file ErpPU.java.

41  {
42  return factory.createCachedEntityManager("erpPU", "Erp");
43  }
synchronized EntityManager createCachedEntityManager(String pu, String conf)
Definition: DaoFactory.java:64
Here is the call graph for this function:

◆ createEntityManager()

EntityManager org.turro.erp.db.ErpPU.createEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 36 of file ErpPU.java.

36  {
37  return factory.createEntityManager("erpPU", "Erp");
38  }
EntityManager createEntityManager(String pu, String conf)
Definition: DaoFactory.java:54
Here is the call graph for this function:

◆ getModule()

static Module org.turro.erp.db.ErpPU.getModule ( )
static

Definition at line 77 of file ErpPU.java.

77  {
78  return new Module(new Version("0.3.1"), "BrightSide Enterprise Resource Planning");
79  }

◆ getObjectExtendedPath()

static String org.turro.erp.db.ErpPU.getObjectExtendedPath ( Object  object)
static

Definition at line 73 of file ErpPU.java.

73  {
74  return "";
75  }

◆ getObjectPath()

static String org.turro.erp.db.ErpPU.getObjectPath ( Object  object)
static

Definition at line 50 of file ErpPU.java.

50  {
51  if(object instanceof HumanResource) {
52  return "/humanres/" + ((HumanResource) object).getId();
53  } else if(object instanceof Aptitude) {
54  return "/aptitude/" + ((Aptitude) object).getId();
55  } else if(object instanceof Resource) {
56  return "/resource/" + ((Resource) object).getId();
57  } else if(object instanceof CategorizedTask) {
58  return "/cattask/" + ((CategorizedTask) object).getId();
59  } else if(object instanceof WorkOrder) {
60  return "/workorder/" + ((WorkOrder) object).getId();
61  } else if(object instanceof CustomerOrder) {
62  return "/custorder/" + ((CustomerOrder) object).getId();
63  } else if(object instanceof OrderReference) {
64  return "/orderref/" + ((OrderReference) object).getId();
65  } else if(object instanceof Task) {
66  return "/task/" + ((Task) object).getId();
67  } else if(object instanceof RequiredUsage) {
68  return "/requsage/" + ((RequiredUsage) object).getId();
69  }
70  return null;
71  }
Here is the caller graph for this function:

◆ getPath()

String org.turro.erp.db.ErpPU.getPath ( Object  object)

Reimplemented from org.turro.jpa.Dao.

Definition at line 46 of file ErpPU.java.

46  {
47  return getObjectPath(object);
48  }
static String getObjectPath(Object object)
Definition: ErpPU.java:50
Here is the call graph for this function:

The documentation for this class was generated from the following file: