- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 36 of file PollOption.java.
◆ getDescription()
| String org.turro.elephant.entities.db.PollOption.getDescription |
( |
| ) |
|
◆ getIdPoll()
| Long org.turro.elephant.entities.db.PollOption.getIdPoll |
( |
| ) |
|
◆ getOrdering()
| int org.turro.elephant.entities.db.PollOption.getOrdering |
( |
| ) |
|
◆ getPoll()
| Poll org.turro.elephant.entities.db.PollOption.getPoll |
( |
| ) |
|
Definition at line 96 of file PollOption.java.
97 return new ElephantPU().find(Poll.class,
this.getIdPoll());
◆ getPollData()
| String org.turro.elephant.entities.db.PollOption.getPollData |
( |
| ) |
|
◆ getPollVote()
| PollVote org.turro.elephant.entities.db.PollOption.getPollVote |
( |
IContact |
contact | ) |
|
Definition at line 112 of file PollOption.java.
113 PollVotePK pv =
new PollVotePK();
116 pv.setIdContact(contact.getId());
117 return new ElephantPU().find(PollVote.class, pv);
◆ getVotes()
| List<PollVote> org.turro.elephant.entities.db.PollOption.getVotes |
( |
| ) |
|
Definition at line 100 of file PollOption.java.
101 WhereClause wc =
new WhereClause();
102 wc.addClause(
"select vote from PollVote vote");
103 wc.addClause(
"where vote.idPoll = :idPoll");
104 wc.addNamedValue(
"idPoll", this.
getIdPoll());
105 wc.addClause(
"and vote.pollData = :pollData");
107 return new ElephantPU().getResultList(wc);
◆ isActionButton()
| boolean org.turro.elephant.entities.db.PollOption.isActionButton |
( |
| ) |
|
◆ isEmpty()
| boolean org.turro.elephant.entities.db.PollOption.isEmpty |
( |
| ) |
|
◆ setActionButton()
| void org.turro.elephant.entities.db.PollOption.setActionButton |
( |
boolean |
actionButton | ) |
|
◆ setDescription()
| void org.turro.elephant.entities.db.PollOption.setDescription |
( |
String |
description | ) |
|
◆ setIdPoll()
| void org.turro.elephant.entities.db.PollOption.setIdPoll |
( |
Long |
idPoll | ) |
|
◆ setOrdering()
| void org.turro.elephant.entities.db.PollOption.setOrdering |
( |
int |
ordering | ) |
|
◆ setPollData()
| void org.turro.elephant.entities.db.PollOption.setPollData |
( |
String |
pollData | ) |
|
The documentation for this class was generated from the following file: