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 public static com.liferay.portlet.ratings.model.RatingsEntry update(
51 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
52 throws com.liferay.portal.SystemException {
53 return getPersistence().update(ratingsEntry);
54 }
55
56 public static com.liferay.portlet.ratings.model.RatingsEntry update(
57 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
58 boolean merge) throws com.liferay.portal.SystemException {
59 return getPersistence().update(ratingsEntry, merge);
60 }
61
62 public static com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
63 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
64 boolean merge) throws com.liferay.portal.SystemException {
65 return getPersistence().updateImpl(ratingsEntry, merge);
66 }
67
68 public static com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
69 long entryId)
70 throws com.liferay.portal.SystemException,
71 com.liferay.portlet.ratings.NoSuchEntryException {
72 return getPersistence().findByPrimaryKey(entryId);
73 }
74
75 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
76 long entryId) throws com.liferay.portal.SystemException {
77 return getPersistence().fetchByPrimaryKey(entryId);
78 }
79
80 public static java.util.List findByC_C(long classNameId, long classPK)
81 throws com.liferay.portal.SystemException {
82 return getPersistence().findByC_C(classNameId, classPK);
83 }
84
85 public static java.util.List findByC_C(long classNameId, long classPK,
86 int begin, int end) throws com.liferay.portal.SystemException {
87 return getPersistence().findByC_C(classNameId, classPK, begin, end);
88 }
89
90 public static java.util.List findByC_C(long classNameId, long classPK,
91 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().findByC_C(classNameId, classPK, begin, end, obc);
94 }
95
96 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
97 long classNameId, long classPK,
98 com.liferay.portal.kernel.util.OrderByComparator obc)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.ratings.NoSuchEntryException {
101 return getPersistence().findByC_C_First(classNameId, classPK, obc);
102 }
103
104 public static com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
105 long classNameId, long classPK,
106 com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.ratings.NoSuchEntryException {
109 return getPersistence().findByC_C_Last(classNameId, classPK, obc);
110 }
111
112 public static com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
113 long entryId, long classNameId, long classPK,
114 com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.ratings.NoSuchEntryException {
117 return getPersistence().findByC_C_PrevAndNext(entryId, classNameId,
118 classPK, obc);
119 }
120
121 public static com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
122 long userId, long classNameId, long classPK)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.ratings.NoSuchEntryException {
125 return getPersistence().findByU_C_C(userId, classNameId, classPK);
126 }
127
128 public static com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
129 long userId, long classNameId, long classPK)
130 throws com.liferay.portal.SystemException {
131 return getPersistence().fetchByU_C_C(userId, classNameId, classPK);
132 }
133
134 public static java.util.List findWithDynamicQuery(
135 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findWithDynamicQuery(queryInitializer);
138 }
139
140 public static java.util.List findWithDynamicQuery(
141 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
142 int begin, int end) throws com.liferay.portal.SystemException {
143 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
144 end);
145 }
146
147 public static java.util.List findAll()
148 throws com.liferay.portal.SystemException {
149 return getPersistence().findAll();
150 }
151
152 public static java.util.List findAll(int begin, int end)
153 throws com.liferay.portal.SystemException {
154 return getPersistence().findAll(begin, end);
155 }
156
157 public static java.util.List findAll(int begin, int end,
158 com.liferay.portal.kernel.util.OrderByComparator obc)
159 throws com.liferay.portal.SystemException {
160 return getPersistence().findAll(begin, end, obc);
161 }
162
163 public static void removeByC_C(long classNameId, long classPK)
164 throws com.liferay.portal.SystemException {
165 getPersistence().removeByC_C(classNameId, classPK);
166 }
167
168 public static void removeByU_C_C(long userId, long classNameId, long classPK)
169 throws com.liferay.portal.SystemException,
170 com.liferay.portlet.ratings.NoSuchEntryException {
171 getPersistence().removeByU_C_C(userId, classNameId, classPK);
172 }
173
174 public static void removeAll() throws com.liferay.portal.SystemException {
175 getPersistence().removeAll();
176 }
177
178 public static int countByC_C(long classNameId, long classPK)
179 throws com.liferay.portal.SystemException {
180 return getPersistence().countByC_C(classNameId, classPK);
181 }
182
183 public static int countByU_C_C(long userId, long classNameId, long classPK)
184 throws com.liferay.portal.SystemException {
185 return getPersistence().countByU_C_C(userId, classNameId, classPK);
186 }
187
188 public static int countAll() throws com.liferay.portal.SystemException {
189 return getPersistence().countAll();
190 }
191
192 public static RatingsEntryPersistence getPersistence() {
193 return _getUtil()._persistence;
194 }
195
196 public void setPersistence(RatingsEntryPersistence persistence) {
197 _persistence = persistence;
198 }
199
200 private static RatingsEntryUtil _getUtil() {
201 if (_util == null) {
202 _util = (RatingsEntryUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
203 }
204
205 return _util;
206 }
207
208 private static final String _UTIL = RatingsEntryUtil.class.getName();
209 private static RatingsEntryUtil _util;
210 private RatingsEntryPersistence _persistence;
211 }