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