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