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