1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
20 import com.liferay.portal.kernel.util.ReferenceRegistry;
21 import com.liferay.portal.model.Release;
22
23 import java.util.List;
24
25
38 public class ReleaseUtil {
39
42 public static void clearCache() {
43 getPersistence().clearCache();
44 }
45
46
49 public static void clearCache(Release release) {
50 getPersistence().clearCache(release);
51 }
52
53
56 public int countWithDynamicQuery(DynamicQuery dynamicQuery)
57 throws SystemException {
58 return getPersistence().countWithDynamicQuery(dynamicQuery);
59 }
60
61
64 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery)
65 throws SystemException {
66 return getPersistence().findWithDynamicQuery(dynamicQuery);
67 }
68
69
72 public static List<Object> findWithDynamicQuery(DynamicQuery dynamicQuery,
73 int start, int end) throws SystemException {
74 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
75 }
76
77
80 public static Release remove(Release release) throws SystemException {
81 return getPersistence().remove(release);
82 }
83
84
87 public static Release update(Release release, boolean merge)
88 throws SystemException {
89 return getPersistence().update(release, merge);
90 }
91
92 public static void cacheResult(com.liferay.portal.model.Release release) {
93 getPersistence().cacheResult(release);
94 }
95
96 public static void cacheResult(
97 java.util.List<com.liferay.portal.model.Release> releases) {
98 getPersistence().cacheResult(releases);
99 }
100
101 public static com.liferay.portal.model.Release create(long releaseId) {
102 return getPersistence().create(releaseId);
103 }
104
105 public static com.liferay.portal.model.Release remove(long releaseId)
106 throws com.liferay.portal.NoSuchReleaseException,
107 com.liferay.portal.SystemException {
108 return getPersistence().remove(releaseId);
109 }
110
111
114 public static com.liferay.portal.model.Release update(
115 com.liferay.portal.model.Release release)
116 throws com.liferay.portal.SystemException {
117 return getPersistence().update(release);
118 }
119
120 public static com.liferay.portal.model.Release updateImpl(
121 com.liferay.portal.model.Release release, boolean merge)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().updateImpl(release, merge);
124 }
125
126 public static com.liferay.portal.model.Release findByPrimaryKey(
127 long releaseId)
128 throws com.liferay.portal.NoSuchReleaseException,
129 com.liferay.portal.SystemException {
130 return getPersistence().findByPrimaryKey(releaseId);
131 }
132
133 public static com.liferay.portal.model.Release fetchByPrimaryKey(
134 long releaseId) throws com.liferay.portal.SystemException {
135 return getPersistence().fetchByPrimaryKey(releaseId);
136 }
137
138 public static com.liferay.portal.model.Release findByServletContextName(
139 java.lang.String servletContextName)
140 throws com.liferay.portal.NoSuchReleaseException,
141 com.liferay.portal.SystemException {
142 return getPersistence().findByServletContextName(servletContextName);
143 }
144
145 public static com.liferay.portal.model.Release fetchByServletContextName(
146 java.lang.String servletContextName)
147 throws com.liferay.portal.SystemException {
148 return getPersistence().fetchByServletContextName(servletContextName);
149 }
150
151 public static com.liferay.portal.model.Release fetchByServletContextName(
152 java.lang.String servletContextName, boolean retrieveFromCache)
153 throws com.liferay.portal.SystemException {
154 return getPersistence()
155 .fetchByServletContextName(servletContextName,
156 retrieveFromCache);
157 }
158
159 public static java.util.List<com.liferay.portal.model.Release> findAll()
160 throws com.liferay.portal.SystemException {
161 return getPersistence().findAll();
162 }
163
164 public static java.util.List<com.liferay.portal.model.Release> findAll(
165 int start, int end) throws com.liferay.portal.SystemException {
166 return getPersistence().findAll(start, end);
167 }
168
169 public static java.util.List<com.liferay.portal.model.Release> findAll(
170 int start, int end,
171 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findAll(start, end, orderByComparator);
174 }
175
176 public static void removeByServletContextName(
177 java.lang.String servletContextName)
178 throws com.liferay.portal.NoSuchReleaseException,
179 com.liferay.portal.SystemException {
180 getPersistence().removeByServletContextName(servletContextName);
181 }
182
183 public static void removeAll() throws com.liferay.portal.SystemException {
184 getPersistence().removeAll();
185 }
186
187 public static int countByServletContextName(
188 java.lang.String servletContextName)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().countByServletContextName(servletContextName);
191 }
192
193 public static int countAll() throws com.liferay.portal.SystemException {
194 return getPersistence().countAll();
195 }
196
197 public static ReleasePersistence getPersistence() {
198 if (_persistence == null) {
199 _persistence = (ReleasePersistence)PortalBeanLocatorUtil.locate(ReleasePersistence.class.getName());
200
201 ReferenceRegistry.registerReference(ReleaseUtil.class,
202 "_persistence");
203 }
204
205 return _persistence;
206 }
207
208 public void setPersistence(ReleasePersistence persistence) {
209 _persistence = persistence;
210
211 ReferenceRegistry.registerReference(ReleaseUtil.class, "_persistence");
212 }
213
214 private static ReleasePersistence _persistence;
215 }