19 package org.turro.assistant;
21 import java.util.Date;
22 import org.turro.elephant.db.ElephantPU;
23 import org.turro.elephant.db.WhereClause;
24 import org.turro.elephant.entities.db.EntityParticipation;
25 import org.turro.jpa.Dao;
26 import org.turro.participation.ParticipationReason;
47 return dao.saveObject(ea);
59 wc.
addClause(
"select ep from EntityParticipation ep");
60 wc.
addClause(
"where ep.participatorPath = :participatorPath");
62 wc.
addClause(
"and ep.entityPath = :entityPath");
static EntityParticipation getParticipation(String participatorPath, String entityPath, ParticipationReason reason)
static EntityParticipation getParticipation(Dao dao, String participatorPath, String entityPath, ParticipationReason reason)
static EntityParticipation addParticipation(String participatorPath, String entityPath, ParticipationReason reason)
static EntityParticipation addParticipation(Dao dao, String participatorPath, String entityPath, ParticipationReason reason)
void addClause(String clause)
void addNamedValue(String name, Object value)
void setParticipationDate(Date participationDate)
void setReason(ParticipationReason reason)
void setParticipatorPath(String participatorPath)
void setEntityPath(String entityPath)
Object getSingleResultOrNull(SqlClause sc)