1
22
23 package com.liferay.portlet.ratings.service.persistence;
24
25
31 public class RatingsEntryUtil {
32 public static com.liferay.portlet.ratings.model.RatingsEntry create(
33 long entryId) {
34 return getPersistence().create(entryId);
35 }
36
37 public static com.liferay.portlet.ratings.model.RatingsEntry remove(
38 long entryId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.ratings.NoSuchEntryException {
41 return getPersistence().remove(entryId);
42 }
43
44 public static com.liferay.portlet.ratings.model.RatingsEntry remove(
45 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(ratingsEntry);
48 }
49
50
53 public static com.liferay.portlet.ratings.model.RatingsEntry update(
54 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(ratingsEntry);
57 }
58
59
72 public static com.liferay.portlet.ratings.model.RatingsEntry update(
73 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(ratingsEntry, merge);
76 }
77
78 public static com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
79 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(ratingsEntry, merge);
82 }
83
84 public static com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
85 long entryId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.ratings.NoSuchEntryException {
88 return getPersistence().findByPrimaryKey(entryId);
89 }
90
91 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
92 long entryId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(entryId);
94 }
95
96 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
97 long classNameId, long classPK)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().findByC_C(classNameId, classPK);
100 }
101
102 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
103 long classNameId, long classPK, int start, int end)
104 throws com.liferay.portal.SystemException {
105 return getPersistence().findByC_C(classNameId, classPK, start, end);
106 }
107
108 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
109 long classNameId, long classPK, int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException {
112 return getPersistence().findByC_C(classNameId, classPK, start, end, obc);
113 }
114
115 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
116 long classNameId, long classPK,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.ratings.NoSuchEntryException {
120 return getPersistence().findByC_C_First(classNameId, classPK, obc);
121 }
122
123 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
124 long classNameId, long classPK,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.ratings.NoSuchEntryException {
128 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
129 }
130
131 public static com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
132 long entryId, long classNameId, long classPK,
133 com.liferay.portal.kernel.util.OrderByComparator obc)
134 throws com.liferay.portal.SystemException,
135 com.liferay.portlet.ratings.NoSuchEntryException {
136 return getPersistence()
137 .findByC_C_PrevAndNext(entryId, classNameId, classPK, obc);
138 }
139
140 public static com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
141 long userId, long classNameId, long classPK)
142 throws com.liferay.portal.SystemException,
143 com.liferay.portlet.ratings.NoSuchEntryException {
144 return getPersistence().findByU_C_C(userId, classNameId, classPK);
145 }
146
147 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
148 long userId, long classNameId, long classPK)
149 throws com.liferay.portal.SystemException {
150 return getPersistence().fetchByU_C_C(userId, classNameId, classPK);
151 }
152
153 public static java.util.List<Object> findWithDynamicQuery(
154 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
155 throws com.liferay.portal.SystemException {
156 return getPersistence().findWithDynamicQuery(dynamicQuery);
157 }
158
159 public static java.util.List<Object> findWithDynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
161 int end) throws com.liferay.portal.SystemException {
162 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
163 }
164
165 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
166 throws com.liferay.portal.SystemException {
167 return getPersistence().findAll();
168 }
169
170 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
171 int start, int end) throws com.liferay.portal.SystemException {
172 return getPersistence().findAll(start, end);
173 }
174
175 public static java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
176 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException {
178 return getPersistence().findAll(start, end, obc);
179 }
180
181 public static void removeByC_C(long classNameId, long classPK)
182 throws com.liferay.portal.SystemException {
183 getPersistence().removeByC_C(classNameId, classPK);
184 }
185
186 public static void removeByU_C_C(long userId, long classNameId, long classPK)
187 throws com.liferay.portal.SystemException,
188 com.liferay.portlet.ratings.NoSuchEntryException {
189 getPersistence().removeByU_C_C(userId, classNameId, classPK);
190 }
191
192 public static void removeAll() throws com.liferay.portal.SystemException {
193 getPersistence().removeAll();
194 }
195
196 public static int countByC_C(long classNameId, long classPK)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().countByC_C(classNameId, classPK);
199 }
200
201 public static int countByU_C_C(long userId, long classNameId, long classPK)
202 throws com.liferay.portal.SystemException {
203 return getPersistence().countByU_C_C(userId, classNameId, classPK);
204 }
205
206 public static int countAll() throws com.liferay.portal.SystemException {
207 return getPersistence().countAll();
208 }
209
210 public static void registerListener(
211 com.liferay.portal.model.ModelListener listener) {
212 getPersistence().registerListener(listener);
213 }
214
215 public static void unregisterListener(
216 com.liferay.portal.model.ModelListener listener) {
217 getPersistence().unregisterListener(listener);
218 }
219
220 public static RatingsEntryPersistence getPersistence() {
221 return _persistence;
222 }
223
224 public void setPersistence(RatingsEntryPersistence persistence) {
225 _persistence = persistence;
226 }
227
228 private static RatingsEntryPersistence _persistence;
229 }