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 obc)
75 throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_First(
78 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.polls.NoSuchVoteException;
81
82 public com.liferay.portlet.polls.model.PollsVote findByQuestionId_Last(
83 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portlet.polls.NoSuchVoteException;
86
87 public com.liferay.portlet.polls.model.PollsVote[] findByQuestionId_PrevAndNext(
88 long voteId, long questionId,
89 com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.polls.NoSuchVoteException;
92
93 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
94 long choiceId) throws com.liferay.portal.SystemException;
95
96 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
97 long choiceId, int start, int end)
98 throws com.liferay.portal.SystemException;
99
100 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findByChoiceId(
101 long choiceId, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_First(
106 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.polls.NoSuchVoteException;
109
110 public com.liferay.portlet.polls.model.PollsVote findByChoiceId_Last(
111 long choiceId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.polls.NoSuchVoteException;
114
115 public com.liferay.portlet.polls.model.PollsVote[] findByChoiceId_PrevAndNext(
116 long voteId, long choiceId,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.polls.NoSuchVoteException;
120
121 public com.liferay.portlet.polls.model.PollsVote findByQ_U(
122 long questionId, long userId)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.polls.NoSuchVoteException;
125
126 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
127 long questionId, long userId) throws com.liferay.portal.SystemException;
128
129 public com.liferay.portlet.polls.model.PollsVote fetchByQ_U(
130 long questionId, long userId, boolean retrieveFromCache)
131 throws com.liferay.portal.SystemException;
132
133 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll()
134 throws com.liferay.portal.SystemException;
135
136 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
137 int start, int end) throws com.liferay.portal.SystemException;
138
139 public java.util.List<com.liferay.portlet.polls.model.PollsVote> findAll(
140 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
141 throws com.liferay.portal.SystemException;
142
143 public void removeByQuestionId(long questionId)
144 throws com.liferay.portal.SystemException;
145
146 public void removeByChoiceId(long choiceId)
147 throws com.liferay.portal.SystemException;
148
149 public void removeByQ_U(long questionId, long userId)
150 throws com.liferay.portal.SystemException,
151 com.liferay.portlet.polls.NoSuchVoteException;
152
153 public void removeAll() throws com.liferay.portal.SystemException;
154
155 public int countByQuestionId(long questionId)
156 throws com.liferay.portal.SystemException;
157
158 public int countByChoiceId(long choiceId)
159 throws com.liferay.portal.SystemException;
160
161 public int countByQ_U(long questionId, long userId)
162 throws com.liferay.portal.SystemException;
163
164 public int countAll() throws com.liferay.portal.SystemException;
165 }