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

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 org.turro.version.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 35 of file StudentsPU.java.

Member Function Documentation

◆ createCachedEntityManager()

EntityManager org.turro.students.db.StudentsPU.createCachedEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 50 of file StudentsPU.java.

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

◆ createEntityManager()

EntityManager org.turro.students.db.StudentsPU.createEntityManager ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 45 of file StudentsPU.java.

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

◆ getFactory()

EntityManagerFactory org.turro.students.db.StudentsPU.getFactory ( )
protected

Reimplemented from org.turro.jpa.Dao.

Definition at line 40 of file StudentsPU.java.

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

◆ getModule()

static org.turro.version.Module org.turro.students.db.StudentsPU.getModule ( )
static

Definition at line 76 of file StudentsPU.java.

76  {
77  return new org.turro.version.Module(new Version("1.0.0"), "Elephant Students");
78  }

◆ getObjectExtendedPath()

static String org.turro.students.db.StudentsPU.getObjectExtendedPath ( Object  object)
static

Definition at line 72 of file StudentsPU.java.

72  {
73  return "";
74  }
Here is the caller graph for this function:

◆ getObjectPath()

static String org.turro.students.db.StudentsPU.getObjectPath ( Object  object)
static

Definition at line 59 of file StudentsPU.java.

59  {
60  if(object instanceof Challenge) {
61  return "/challenge/" + ((Challenge) object).getId();
62  } else if(object instanceof Response) {
63  return "/response/" + ((Response) object).getId();
64  } else if(object instanceof PracticalWork) {
65  return "/practicalwork/" + ((PracticalWork) object).getId();
66  } else if(object instanceof TalentCategory) {
67  return "/talent-category/" + ((TalentCategory) object).getId();
68  }
69  return null;
70  }
Here is the caller graph for this function:

◆ getPath()

String org.turro.students.db.StudentsPU.getPath ( Object  object)

Reimplemented from org.turro.jpa.Dao.

Definition at line 55 of file StudentsPU.java.

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

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