1
22
23 package com.liferay.portlet.polls.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27
40 public interface PollsChoicePersistence extends BasePersistence {
41 public void cacheResult(
42 com.liferay.portlet.polls.model.PollsChoice pollsChoice);
43
44 public void cacheResult(
45 java.util.List<com.liferay.portlet.polls.model.PollsChoice> pollsChoices);
46
47 public void clearCache();
48
49 public com.liferay.portlet.polls.model.PollsChoice create(long choiceId);
50
51 public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
52 throws com.liferay.portal.SystemException,
53 com.liferay.portlet.polls.NoSuchChoiceException;
54
55 public com.liferay.portlet.polls.model.PollsChoice remove(
56 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
57 throws com.liferay.portal.SystemException;
58
59
62 public com.liferay.portlet.polls.model.PollsChoice update(
63 com.liferay.portlet.polls.model.PollsChoice pollsChoice)
64 throws com.liferay.portal.SystemException;
65
66
78 public com.liferay.portlet.polls.model.PollsChoice update(
79 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
80 throws com.liferay.portal.SystemException;
81
82 public com.liferay.portlet.polls.model.PollsChoice updateImpl(
83 com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
84 throws com.liferay.portal.SystemException;
85
86 public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
87 long choiceId)
88 throws com.liferay.portal.SystemException,
89 com.liferay.portlet.polls.NoSuchChoiceException;
90
91 public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
92 long choiceId) throws com.liferay.portal.SystemException;
93
94 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
95 java.lang.String uuid) throws com.liferay.portal.SystemException;
96
97 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
98 java.lang.String uuid, int start, int end)
99 throws com.liferay.portal.SystemException;
100
101 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
102 java.lang.String uuid, int start, int end,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
107 java.lang.String uuid,
108 com.liferay.portal.kernel.util.OrderByComparator obc)
109 throws com.liferay.portal.SystemException,
110 com.liferay.portlet.polls.NoSuchChoiceException;
111
112 public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
113 java.lang.String uuid,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.polls.NoSuchChoiceException;
117
118 public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
119 long choiceId, java.lang.String uuid,
120 com.liferay.portal.kernel.util.OrderByComparator obc)
121 throws com.liferay.portal.SystemException,
122 com.liferay.portlet.polls.NoSuchChoiceException;
123
124 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
125 long questionId) throws com.liferay.portal.SystemException;
126
127 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
128 long questionId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
132 long questionId, int start, int end,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException;
135
136 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
137 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
138 throws com.liferay.portal.SystemException,
139 com.liferay.portlet.polls.NoSuchChoiceException;
140
141 public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
142 long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.polls.NoSuchChoiceException;
145
146 public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
147 long choiceId, long questionId,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException,
150 com.liferay.portlet.polls.NoSuchChoiceException;
151
152 public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
153 long questionId, java.lang.String name)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.polls.NoSuchChoiceException;
156
157 public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
158 long questionId, java.lang.String name)
159 throws com.liferay.portal.SystemException;
160
161 public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
162 long questionId, java.lang.String name, boolean retrieveFromCache)
163 throws com.liferay.portal.SystemException;
164
165 public java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.SystemException;
168
169 public java.util.List<Object> findWithDynamicQuery(
170 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
171 int end) throws com.liferay.portal.SystemException;
172
173 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll()
174 throws com.liferay.portal.SystemException;
175
176 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
177 int start, int end) throws com.liferay.portal.SystemException;
178
179 public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
180 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
181 throws com.liferay.portal.SystemException;
182
183 public void removeByUuid(java.lang.String uuid)
184 throws com.liferay.portal.SystemException;
185
186 public void removeByQuestionId(long questionId)
187 throws com.liferay.portal.SystemException;
188
189 public void removeByQ_N(long questionId, java.lang.String name)
190 throws com.liferay.portal.SystemException,
191 com.liferay.portlet.polls.NoSuchChoiceException;
192
193 public void removeAll() throws com.liferay.portal.SystemException;
194
195 public int countByUuid(java.lang.String uuid)
196 throws com.liferay.portal.SystemException;
197
198 public int countByQuestionId(long questionId)
199 throws com.liferay.portal.SystemException;
200
201 public int countByQ_N(long questionId, java.lang.String name)
202 throws com.liferay.portal.SystemException;
203
204 public int countAll() throws com.liferay.portal.SystemException;
205 }