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

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

EntityManagerFactory getFactory ()
 
EntityManager createEntityManager ()
 

Detailed Description

Author
llturro

Definition at line 19 of file CrmPU.java.

Member Function Documentation

◆ createCachedEntityManager()

EntityManager org.turro.crm.db.CrmPU.createCachedEntityManager ( )

Reimplemented from org.turro.jpa.Dao.

Definition at line 34 of file CrmPU.java.

34  {
35  return factory.createCachedEntityManager("crmPU", "Crm");
36  }
synchronized EntityManager createCachedEntityManager(String pu, String conf)
Definition: DaoFactory.java:64
Here is the call graph for this function:

◆ createEntityManager()

EntityManager org.turro.crm.db.CrmPU.createEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 29 of file CrmPU.java.

29  {
30  return factory.createEntityManager("crmPU", "Crm");
31  }
EntityManager createEntityManager(String pu, String conf)
Definition: DaoFactory.java:54
Here is the call graph for this function:

◆ getFactory()

EntityManagerFactory org.turro.crm.db.CrmPU.getFactory ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 24 of file CrmPU.java.

24  {
25  return factory.getEmf();
26  }
EntityManagerFactory getEmf()
Definition: DaoFactory.java:89
Here is the call graph for this function:

◆ getModule()

static Module org.turro.crm.db.CrmPU.getModule ( )
static

Definition at line 64 of file CrmPU.java.

64  {
65  return new Module(new Version("0.5.3"), "BrightSide Customer Relationship");
66  }

◆ getObjectExtendedPath()

static String org.turro.crm.db.CrmPU.getObjectExtendedPath ( Object  object)
static

Definition at line 60 of file CrmPU.java.

60  {
61  return "";
62  }

◆ getObjectPath()

static String org.turro.crm.db.CrmPU.getObjectPath ( Object  object)
static

Definition at line 43 of file CrmPU.java.

43  {
44  if(object instanceof Vendor) {
45  return "/vendor/" + ((Vendor) object).getId();
46  } else if(object instanceof Customer) {
47  return "/customer/" + ((Customer) object).getId();
48  } else if(object instanceof Campaign) {
49  return "/campaign/" + ((Campaign) object).getId();
50  } else if(object instanceof SaleProspect) {
51  return "/sale-prospect/" + ((SaleProspect) object).getId();
52  } else if(object instanceof VendorProspect) {
53  return "/vendor-prospect/" + ((VendorProspect) object).getId();
54  } else if(object instanceof SaleAction) {
55  return "/sale-action/" + ((SaleAction) object).getId();
56  }
57  return null;
58  }
Here is the caller graph for this function:

◆ getPath()

String org.turro.crm.db.CrmPU.getPath ( Object  object)

Reimplemented from org.turro.jpa.Dao.

Definition at line 39 of file CrmPU.java.

39  {
40  return getObjectPath(object);
41  }
static String getObjectPath(Object object)
Definition: CrmPU.java:43
Here is the call graph for this function:

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