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

Public Member Functions

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 ()
 
EntityManager createCachedEntityManager ()
 

Detailed Description

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

Definition at line 36 of file AlliancePU.java.

Member Function Documentation

◆ createCachedEntityManager()

EntityManager org.turro.alliance.db.AlliancePU.createCachedEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 51 of file AlliancePU.java.

51  {
52  return factory.createCachedEntityManager("alliancePU", "Alliance");
53  }
synchronized EntityManager createCachedEntityManager(String pu, String conf)
Definition: DaoFactory.java:64
Here is the call graph for this function:

◆ createEntityManager()

EntityManager org.turro.alliance.db.AlliancePU.createEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 46 of file AlliancePU.java.

46  {
47  return factory.createEntityManager("alliancePU", "Alliance");
48  }
EntityManager createEntityManager(String pu, String conf)
Definition: DaoFactory.java:54
Here is the call graph for this function:

◆ getFactory()

EntityManagerFactory org.turro.alliance.db.AlliancePU.getFactory ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 41 of file AlliancePU.java.

41  {
42  return factory.getEmf();
43  }
EntityManagerFactory getEmf()
Definition: DaoFactory.java:89
Here is the call graph for this function:

◆ getModule()

static Module org.turro.alliance.db.AlliancePU.getModule ( )
static

Definition at line 79 of file AlliancePU.java.

79  {
80  return new Module(new Version("1.0"), "Elephant Alliance");
81  }

◆ getObjectExtendedPath()

static String org.turro.alliance.db.AlliancePU.getObjectExtendedPath ( Object  object)
static

Definition at line 75 of file AlliancePU.java.

75  {
76  return "";
77  }

◆ getObjectPath()

static String org.turro.alliance.db.AlliancePU.getObjectPath ( Object  object)
static

Definition at line 60 of file AlliancePU.java.

60  {
61  if(object instanceof AxContact) {
62  return "/axcontact/" + ((AxContact) object).getContactId().stringify();
63  } else if(object instanceof AxProject) {
64  return "/axproject/" + ((AxProject) object).getProjectId().stringify();
65  } else if(object instanceof AxProjectGrant) {
66  return "/axproject-grant/" + ((AxProjectGrant) object).getProjectGrantId().stringify();
67  } else if(object instanceof AxStudent) {
68  return "/axstudent/" + ((AxStudent) object).getStudentId().stringify();
69  } else if(object instanceof AxCenter) {
70  return "/axcenter/" + ((AxCenter) object).getCenterId().stringify();
71  }
72  return null;
73  }
Here is the caller graph for this function:

◆ getPath()

String org.turro.alliance.db.AlliancePU.getPath ( Object  object)

Reimplemented from org.turro.jpa.Dao.

Definition at line 56 of file AlliancePU.java.

56  {
57  return getObjectPath(object);
58  }
static String getObjectPath(Object object)
Definition: AlliancePU.java:60
Here is the call graph for this function:

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