1
14
15 package com.liferay.portlet.polls.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.polls.model.PollsVote;
20
21
34 public interface PollsVotePersistence extends BasePersistence<PollsVote> {
35 public void cacheResult(com.liferay.portlet.polls.model.PollsVote pollsVote);
36
37 public void cacheResult(
38 java.util.List<com.liferay.portlet.polls.model.PollsVote> pollsVotes);
39
40 public com.liferay.portlet.polls.model.PollsVote create(long voteId);
41
42 public com.liferay.portlet.polls.model.PollsVote remove(long voteId)
43 throws com.liferay.portal.SystemException,
44 com.liferay.portlet.polls.NoSuchVoteException;
45
46
49 public com.liferay.portlet.polls.model.PollsVote update(
50 com.liferay.portlet.polls.model.PollsVote pollsVote)
51 throws com.liferay.portal.SystemException;
52
53 public com.liferay.portlet.polls.model.PollsVote updateImpl(
54 com.liferay.portlet.polls.model.PollsVote pollsVote, boolean merge)
55 throws com.liferay.portal.SystemException;
56
57 public com.liferay.portlet.polls.model.PollsVote findByPrimaryKey(
58 long voteId)
59 throws com.liferay.portal.SystemException,
60 com.liferay.portlet.polls.NoSuchVoteException;
61
62 public com.liferay.portlet.polls.model.PollsVote fetchByPrimaryKey(
63 long voteId) throws com.liferay.portal.SystemException;
64
65 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
66 long questionId) throws com.liferay.portal.SystemException;
67
68 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
69 long questionId, int start, int end)
70 throws com.liferay.portal.SystemException;
71
72 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByQuestionId(
73 long questionId, int start, int end,
74 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
75 throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
78 long questionId,
79 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80 throws com.liferay.portal.SystemException,
81 com.liferay.portlet.polls.NoSuchVoteException;
82
83 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
84 long questionId,
85 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.polls.NoSuchVoteException;
88
89 public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
90 long voteId, long questionId,
91 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portlet.polls.NoSuchVoteException;
94
95 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
96 long choiceId) throws com.liferay.portal.SystemException;
97
98 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
99 long choiceId, int start, int end)
100 throws com.liferay.portal.SystemException;
101
102 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
103 long choiceId, int start, int end,
104 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105 throws com.liferay.portal.SystemException;
106
107 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
108 long choiceId,
109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
110 throws com.liferay.portal.SystemException,
111 com.liferay.portlet.polls.NoSuchVoteException;
112
113 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
114 long choiceId,
115 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.polls.NoSuchVoteException;
118
119 public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
120 long voteId, long choiceId,
121 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
122 throws com.liferay.portal.SystemException,
123 com.liferay.portlet.polls.NoSuchVoteException;
124
125 public com.liferay.portlet.polls.model.PollsVote findByQ_U(
126 long questionId, long userId)
127 throws com.liferay.portal.SystemException,
128 com.liferay.portlet.polls.NoSuchVoteException;
129
130 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
131 long questionId, long userId) throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
134 long questionId, long userId, boolean retrieveFromCache)
135 throws com.liferay.portal.SystemException;
136
137 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
138 throws com.liferay.portal.SystemException;
139
140 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
141 int start, int end) throws com.liferay.portal.SystemException;
142
143 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
144 int start, int end,
145 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146 throws com.liferay.portal.SystemException;
147
148 public void removeByQuestionId(long questionId)
149 throws com.liferay.portal.SystemException;
150
151 public void removeByChoiceId(long choiceId)
152 throws com.liferay.portal.SystemException;
153
154 public void removeByQ_U(long questionId, long userId)
155 throws com.liferay.portal.SystemException,
156 com.liferay.portlet.polls.NoSuchVoteException;
157
158 public void removeAll() throws com.liferay.portal.SystemException;
159
160 public int countByQuestionId(long questionId)
161 throws com.liferay.portal.SystemException;
162
163 public int countByChoiceId(long choiceId)
164 throws com.liferay.portal.SystemException;
165
166 public int countByQ_U(long questionId, long userId)
167 throws com.liferay.portal.SystemException;
168
169 public int countAll() throws com.liferay.portal.SystemException;
170 }