1
14
15 package com.liferay.portlet.ratings.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20
21 import com.liferay.portlet.ratings.model.RatingsStats;
22
23 import java.util.List;
24
25
38 public class RatingsStatsUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
50 throws SystemException {
51 return getPersistence().findWithDynamicQuery(dynamicQuery);
52 }
53
54
57 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
58 int start, int end) throws SystemException {
59 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
60 }
61
62
65 public static RatingsStats remove(RatingsStats ratingsStats)
66 throws SystemException {
67 return getPersistence().remove(ratingsStats);
68 }
69
70
73 public static RatingsStats update(RatingsStats ratingsStats, boolean merge)
74 throws SystemException {
75 return getPersistence().update(ratingsStats, merge);
76 }
77
78 public static void cacheResult(
79 com.liferay.portlet.ratings.model.RatingsStats ratingsStats) {
80 getPersistence().cacheResult(ratingsStats);
81 }
82
83 public static void cacheResult(
84 java.util.List<com.liferay.portlet.ratings.model.RatingsStats> ratingsStatses) {
85 getPersistence().cacheResult(ratingsStatses);
86 }
87
88 public static com.liferay.portlet.ratings.model.RatingsStats create(
89 long statsId) {
90 return getPersistence().create(statsId);
91 }
92
93 public static com.liferay.portlet.ratings.model.RatingsStats remove(
94 long statsId)
95 throws com.liferay.portal.kernel.exception.SystemException,
96 com.liferay.portlet.ratings.NoSuchStatsException {
97 return getPersistence().remove(statsId);
98 }
99
100 public static com.liferay.portlet.ratings.model.RatingsStats updateImpl(
101 com.liferay.portlet.ratings.model.RatingsStats ratingsStats,
102 boolean merge)
103 throws com.liferay.portal.kernel.exception.SystemException {
104 return getPersistence().updateImpl(ratingsStats, merge);
105 }
106
107 public static com.liferay.portlet.ratings.model.RatingsStats findByPrimaryKey(
108 long statsId)
109 throws com.liferay.portal.kernel.exception.SystemException,
110 com.liferay.portlet.ratings.NoSuchStatsException {
111 return getPersistence().findByPrimaryKey(statsId);
112 }
113
114 public static com.liferay.portlet.ratings.model.RatingsStats fetchByPrimaryKey(
115 long statsId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().fetchByPrimaryKey(statsId);
118 }
119
120 public static com.liferay.portlet.ratings.model.RatingsStats findByC_C(
121 long classNameId, long classPK)
122 throws com.liferay.portal.kernel.exception.SystemException,
123 com.liferay.portlet.ratings.NoSuchStatsException {
124 return getPersistence().findByC_C(classNameId, classPK);
125 }
126
127 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
128 long classNameId, long classPK)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence().fetchByC_C(classNameId, classPK);
131 }
132
133 public static com.liferay.portlet.ratings.model.RatingsStats fetchByC_C(
134 long classNameId, long classPK, boolean retrieveFromCache)
135 throws com.liferay.portal.kernel.exception.SystemException {
136 return getPersistence()
137 .fetchByC_C(classNameId, classPK, retrieveFromCache);
138 }
139
140 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll()
141 throws com.liferay.portal.kernel.exception.SystemException {
142 return getPersistence().findAll();
143 }
144
145 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
146 int start, int end)
147 throws com.liferay.portal.kernel.exception.SystemException {
148 return getPersistence().findAll(start, end);
149 }
150
151 public static java.util.List<com.liferay.portlet.ratings.model.RatingsStats> findAll(
152 int start, int end,
153 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
154 throws com.liferay.portal.kernel.exception.SystemException {
155 return getPersistence().findAll(start, end, orderByComparator);
156 }
157
158 public static void removeByC_C(long classNameId, long classPK)
159 throws com.liferay.portal.kernel.exception.SystemException,
160 com.liferay.portlet.ratings.NoSuchStatsException {
161 getPersistence().removeByC_C(classNameId, classPK);
162 }
163
164 public static void removeAll()
165 throws com.liferay.portal.kernel.exception.SystemException {
166 getPersistence().removeAll();
167 }
168
169 public static int countByC_C(long classNameId, long classPK)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().countByC_C(classNameId, classPK);
172 }
173
174 public static int countAll()
175 throws com.liferay.portal.kernel.exception.SystemException {
176 return getPersistence().countAll();
177 }
178
179 public static RatingsStatsPersistence getPersistence() {
180 if (_persistence == null) {
181 _persistence = (RatingsStatsPersistence)PortalBeanLocatorUtil.locate(RatingsStatsPersistence.class.getName());
182 }
183
184 return _persistence;
185 }
186
187 public void setPersistence(RatingsStatsPersistence persistence) {
188 _persistence = persistence;
189 }
190
191 private static RatingsStatsPersistence _persistence;
192 }