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.ServiceComponent;
29
30 import java.util.List;
31
32
45 public class ServiceComponentUtil {
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 ServiceComponent remove(ServiceComponent serviceComponent)
73 throws SystemException {
74 return getPersistence().remove(serviceComponent);
75 }
76
77
80 public static ServiceComponent update(ServiceComponent serviceComponent,
81 boolean merge) throws SystemException {
82 return getPersistence().update(serviceComponent, merge);
83 }
84
85 public static void cacheResult(
86 com.liferay.portal.model.ServiceComponent serviceComponent) {
87 getPersistence().cacheResult(serviceComponent);
88 }
89
90 public static void cacheResult(
91 java.util.List<com.liferay.portal.model.ServiceComponent> serviceComponents) {
92 getPersistence().cacheResult(serviceComponents);
93 }
94
95 public static com.liferay.portal.model.ServiceComponent create(
96 long serviceComponentId) {
97 return getPersistence().create(serviceComponentId);
98 }
99
100 public static com.liferay.portal.model.ServiceComponent remove(
101 long serviceComponentId)
102 throws com.liferay.portal.NoSuchServiceComponentException,
103 com.liferay.portal.SystemException {
104 return getPersistence().remove(serviceComponentId);
105 }
106
107
110 public static com.liferay.portal.model.ServiceComponent update(
111 com.liferay.portal.model.ServiceComponent serviceComponent)
112 throws com.liferay.portal.SystemException {
113 return getPersistence().update(serviceComponent);
114 }
115
116 public static com.liferay.portal.model.ServiceComponent updateImpl(
117 com.liferay.portal.model.ServiceComponent serviceComponent,
118 boolean merge) throws com.liferay.portal.SystemException {
119 return getPersistence().updateImpl(serviceComponent, merge);
120 }
121
122 public static com.liferay.portal.model.ServiceComponent findByPrimaryKey(
123 long serviceComponentId)
124 throws com.liferay.portal.NoSuchServiceComponentException,
125 com.liferay.portal.SystemException {
126 return getPersistence().findByPrimaryKey(serviceComponentId);
127 }
128
129 public static com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
130 long serviceComponentId) throws com.liferay.portal.SystemException {
131 return getPersistence().fetchByPrimaryKey(serviceComponentId);
132 }
133
134 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
135 java.lang.String buildNamespace)
136 throws com.liferay.portal.SystemException {
137 return getPersistence().findByBuildNamespace(buildNamespace);
138 }
139
140 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
141 java.lang.String buildNamespace, int start, int end)
142 throws com.liferay.portal.SystemException {
143 return getPersistence().findByBuildNamespace(buildNamespace, start, end);
144 }
145
146 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
147 java.lang.String buildNamespace, int start, int end,
148 com.liferay.portal.kernel.util.OrderByComparator obc)
149 throws com.liferay.portal.SystemException {
150 return getPersistence()
151 .findByBuildNamespace(buildNamespace, start, end, obc);
152 }
153
154 public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
155 java.lang.String buildNamespace,
156 com.liferay.portal.kernel.util.OrderByComparator obc)
157 throws com.liferay.portal.NoSuchServiceComponentException,
158 com.liferay.portal.SystemException {
159 return getPersistence().findByBuildNamespace_First(buildNamespace, obc);
160 }
161
162 public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
163 java.lang.String buildNamespace,
164 com.liferay.portal.kernel.util.OrderByComparator obc)
165 throws com.liferay.portal.NoSuchServiceComponentException,
166 com.liferay.portal.SystemException {
167 return getPersistence().findByBuildNamespace_Last(buildNamespace, obc);
168 }
169
170 public static com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
171 long serviceComponentId, java.lang.String buildNamespace,
172 com.liferay.portal.kernel.util.OrderByComparator obc)
173 throws com.liferay.portal.NoSuchServiceComponentException,
174 com.liferay.portal.SystemException {
175 return getPersistence()
176 .findByBuildNamespace_PrevAndNext(serviceComponentId,
177 buildNamespace, obc);
178 }
179
180 public static com.liferay.portal.model.ServiceComponent findByBNS_BNU(
181 java.lang.String buildNamespace, long buildNumber)
182 throws com.liferay.portal.NoSuchServiceComponentException,
183 com.liferay.portal.SystemException {
184 return getPersistence().findByBNS_BNU(buildNamespace, buildNumber);
185 }
186
187 public static com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
188 java.lang.String buildNamespace, long buildNumber)
189 throws com.liferay.portal.SystemException {
190 return getPersistence().fetchByBNS_BNU(buildNamespace, buildNumber);
191 }
192
193 public static com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
194 java.lang.String buildNamespace, long buildNumber,
195 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
196 return getPersistence()
197 .fetchByBNS_BNU(buildNamespace, buildNumber,
198 retrieveFromCache);
199 }
200
201 public static java.util.List<com.liferay.portal.model.ServiceComponent> findAll()
202 throws com.liferay.portal.SystemException {
203 return getPersistence().findAll();
204 }
205
206 public static java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
207 int start, int end) throws com.liferay.portal.SystemException {
208 return getPersistence().findAll(start, end);
209 }
210
211 public static java.util.List<com.liferay.portal.model.ServiceComponent> findAll(
212 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
213 throws com.liferay.portal.SystemException {
214 return getPersistence().findAll(start, end, obc);
215 }
216
217 public static void removeByBuildNamespace(java.lang.String buildNamespace)
218 throws com.liferay.portal.SystemException {
219 getPersistence().removeByBuildNamespace(buildNamespace);
220 }
221
222 public static void removeByBNS_BNU(java.lang.String buildNamespace,
223 long buildNumber)
224 throws com.liferay.portal.NoSuchServiceComponentException,
225 com.liferay.portal.SystemException {
226 getPersistence().removeByBNS_BNU(buildNamespace, buildNumber);
227 }
228
229 public static void removeAll() throws com.liferay.portal.SystemException {
230 getPersistence().removeAll();
231 }
232
233 public static int countByBuildNamespace(java.lang.String buildNamespace)
234 throws com.liferay.portal.SystemException {
235 return getPersistence().countByBuildNamespace(buildNamespace);
236 }
237
238 public static int countByBNS_BNU(java.lang.String buildNamespace,
239 long buildNumber) throws com.liferay.portal.SystemException {
240 return getPersistence().countByBNS_BNU(buildNamespace, buildNumber);
241 }
242
243 public static int countAll() throws com.liferay.portal.SystemException {
244 return getPersistence().countAll();
245 }
246
247 public static ServiceComponentPersistence getPersistence() {
248 if (_persistence == null) {
249 _persistence = (ServiceComponentPersistence)PortalBeanLocatorUtil.locate(ServiceComponentPersistence.class.getName());
250 }
251
252 return _persistence;
253 }
254
255 public void setPersistence(ServiceComponentPersistence persistence) {
256 _persistence = persistence;
257 }
258
259 private static ServiceComponentPersistence _persistence;
260 }