BrightSide Workbench Full Report + Source Code
org.turro.elephant.entities.db.PollOption Class Reference
Inheritance diagram for org.turro.elephant.entities.db.PollOption:
Collaboration diagram for org.turro.elephant.entities.db.PollOption:

Public Member Functions

Long getIdPoll ()
 
void setIdPoll (Long idPoll)
 
String getPollData ()
 
void setPollData (String pollData)
 
String getDescription ()
 
void setDescription (String description)
 
int getOrdering ()
 
void setOrdering (int ordering)
 
boolean isActionButton ()
 
void setActionButton (boolean actionButton)
 
boolean isEmpty ()
 
Poll getPoll ()
 
List< PollVotegetVotes ()
 
PollVote getPollVote (IContact contact)
 

Detailed Description

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

Definition at line 36 of file PollOption.java.

Member Function Documentation

◆ getDescription()

String org.turro.elephant.entities.db.PollOption.getDescription ( )

Definition at line 66 of file PollOption.java.

66  {
67  return description;
68  }

◆ getIdPoll()

Long org.turro.elephant.entities.db.PollOption.getIdPoll ( )

Definition at line 50 of file PollOption.java.

50  {
51  return idPoll;
52  }
Here is the caller graph for this function:

◆ getOrdering()

int org.turro.elephant.entities.db.PollOption.getOrdering ( )

Definition at line 74 of file PollOption.java.

74  {
75  return ordering;
76  }

◆ getPoll()

Poll org.turro.elephant.entities.db.PollOption.getPoll ( )

Definition at line 96 of file PollOption.java.

96  {
97  return new ElephantPU().find(Poll.class, this.getIdPoll());
98  }

◆ getPollData()

String org.turro.elephant.entities.db.PollOption.getPollData ( )

Definition at line 58 of file PollOption.java.

58  {
59  return pollData;
60  }
Here is the caller graph for this function:

◆ getPollVote()

PollVote org.turro.elephant.entities.db.PollOption.getPollVote ( IContact  contact)

Definition at line 112 of file PollOption.java.

112  {
113  PollVotePK pv = new PollVotePK();
114  pv.setIdPoll(getIdPoll());
115  pv.setPollData(getPollData());
116  pv.setIdContact(contact.getId());
117  return new ElephantPU().find(PollVote.class, pv);
118  }
Here is the call graph for this function:

◆ getVotes()

List<PollVote> org.turro.elephant.entities.db.PollOption.getVotes ( )

Definition at line 100 of file PollOption.java.

100  {
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");
106  wc.addNamedValue("pollData", this.getPollData());
107  return new ElephantPU().getResultList(wc);
108  }
Here is the call graph for this function:

◆ isActionButton()

boolean org.turro.elephant.entities.db.PollOption.isActionButton ( )

Definition at line 82 of file PollOption.java.

82  {
83  return actionButton;
84  }

◆ isEmpty()

boolean org.turro.elephant.entities.db.PollOption.isEmpty ( )

Definition at line 92 of file PollOption.java.

92  {
93  return Strings.isBlank(pollData);
94  }
Here is the caller graph for this function:

◆ setActionButton()

void org.turro.elephant.entities.db.PollOption.setActionButton ( boolean  actionButton)

Definition at line 86 of file PollOption.java.

86  {
87  this.actionButton = actionButton;
88  }

◆ setDescription()

void org.turro.elephant.entities.db.PollOption.setDescription ( String  description)

Definition at line 70 of file PollOption.java.

70  {
71  this.description = description;
72  }

◆ setIdPoll()

void org.turro.elephant.entities.db.PollOption.setIdPoll ( Long  idPoll)

Definition at line 54 of file PollOption.java.

54  {
55  this.idPoll = idPoll;
56  }
Here is the caller graph for this function:

◆ setOrdering()

void org.turro.elephant.entities.db.PollOption.setOrdering ( int  ordering)

Definition at line 78 of file PollOption.java.

78  {
79  this.ordering = ordering;
80  }

◆ setPollData()

void org.turro.elephant.entities.db.PollOption.setPollData ( String  pollData)

Definition at line 62 of file PollOption.java.

62  {
63  this.pollData = pollData;
64  }

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