|
static EntityParticipation | addParticipation (String participatorPath, String entityPath, ParticipationReason reason) |
|
static EntityParticipation | addParticipation (Dao dao, String participatorPath, String entityPath, ParticipationReason reason) |
|
static EntityParticipation | getParticipation (String participatorPath, String entityPath, ParticipationReason reason) |
|
static EntityParticipation | getParticipation (Dao dao, String participatorPath, String entityPath, ParticipationReason reason) |
|
◆ addParticipation() [1/2]
Definition at line 39 of file EntityParticipationUtils.java.
40 EntityParticipation ea =
getParticipation(dao, participatorPath, entityPath, reason);
42 ea =
new EntityParticipation();
43 ea.setParticipatorPath(participatorPath);
44 ea.setEntityPath(entityPath);
46 ea.setParticipationDate(
new Date());
47 return dao.saveObject(ea);
static EntityParticipation getParticipation(String participatorPath, String entityPath, ParticipationReason reason)
◆ addParticipation() [2/2]
Definition at line 35 of file EntityParticipationUtils.java.
36 return addParticipation(
new ElephantPU(), participatorPath, entityPath, reason);
static EntityParticipation addParticipation(String participatorPath, String entityPath, ParticipationReason reason)
◆ getParticipation() [1/2]
Definition at line 57 of file EntityParticipationUtils.java.
58 WhereClause wc =
new WhereClause();
59 wc.addClause(
"select ep from EntityParticipation ep");
60 wc.addClause(
"where ep.participatorPath = :participatorPath");
61 wc.addNamedValue(
"participatorPath", participatorPath);
62 wc.addClause(
"and ep.entityPath = :entityPath");
63 wc.addNamedValue(
"entityPath", entityPath);
64 wc.addClause(
"and ep.reason = :reason");
65 wc.addNamedValue(
"reason", reason);
66 return (EntityParticipation) dao.getSingleResultOrNull(wc);
◆ getParticipation() [2/2]
The documentation for this class was generated from the following file: