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