1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class ServiceComponentUtil {
40 public static void cacheResult(
41 com.liferay.portal.model.ServiceComponent serviceComponent) {
42 getPersistence().cacheResult(serviceComponent);
43 }
44
45 public static void cacheResult(
46 java.util.List<com.liferay.portal.model.ServiceComponent> serviceComponents) {
47 getPersistence().cacheResult(serviceComponents);
48 }
49
50 public static void clearCache() {
51 getPersistence().clearCache();
52 }
53
54 public static com.liferay.portal.model.ServiceComponent create(
55 long serviceComponentId) {
56 return getPersistence().create(serviceComponentId);
57 }
58
59 public static com.liferay.portal.model.ServiceComponent remove(
60 long serviceComponentId)
61 throws com.liferay.portal.NoSuchServiceComponentException,
62 com.liferay.portal.SystemException {
63 return getPersistence().remove(serviceComponentId);
64 }
65
66 public static com.liferay.portal.model.ServiceComponent remove(
67 com.liferay.portal.model.ServiceComponent serviceComponent)
68 throws com.liferay.portal.SystemException {
69 return getPersistence().remove(serviceComponent);
70 }
71
72
75 public static com.liferay.portal.model.ServiceComponent update(
76 com.liferay.portal.model.ServiceComponent serviceComponent)
77 throws com.liferay.portal.SystemException {
78 return getPersistence().update(serviceComponent);
79 }
80
81
93 public static com.liferay.portal.model.ServiceComponent update(
94 com.liferay.portal.model.ServiceComponent serviceComponent,
95 boolean merge) throws com.liferay.portal.SystemException {
96 return getPersistence().update(serviceComponent, merge);
97 }
98
99 public static com.liferay.portal.model.ServiceComponent updateImpl(
100 com.liferay.portal.model.ServiceComponent serviceComponent,
101 boolean merge) throws com.liferay.portal.SystemException {
102 return getPersistence().updateImpl(serviceComponent, merge);
103 }
104
105 public static com.liferay.portal.model.ServiceComponent findByPrimaryKey(
106 long serviceComponentId)
107 throws com.liferay.portal.NoSuchServiceComponentException,
108 com.liferay.portal.SystemException {
109 return getPersistence().findByPrimaryKey(serviceComponentId);
110 }
111
112 public static com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
113 long serviceComponentId) throws com.liferay.portal.SystemException {
114 return getPersistence().fetchByPrimaryKey(serviceComponentId);
115 }
116
117 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
118 java.lang.String buildNamespace)
119 throws com.liferay.portal.SystemException {
120 return getPersistence().findByBuildNamespace(buildNamespace);
121 }
122
123 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
124 java.lang.String buildNamespace, int start, int end)
125 throws com.liferay.portal.SystemException {
126 return getPersistence().findByBuildNamespace(buildNamespace, start, end);
127 }
128
129 public static java.util.List<com.liferay.portal.model.ServiceComponent> findByBuildNamespace(
130 java.lang.String buildNamespace, int start, int end,
131 com.liferay.portal.kernel.util.OrderByComparator obc)
132 throws com.liferay.portal.SystemException {
133 return getPersistence()
134 .findByBuildNamespace(buildNamespace, start, end, obc);
135 }
136
137 public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
138 java.lang.String buildNamespace,
139 com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.NoSuchServiceComponentException,
141 com.liferay.portal.SystemException {
142 return getPersistence().findByBuildNamespace_First(buildNamespace, obc);
143 }
144
145 public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
146 java.lang.String buildNamespace,
147 com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.NoSuchServiceComponentException,
149 com.liferay.portal.SystemException {
150 return getPersistence().findByBuildNamespace_Last(buildNamespace, obc);
151 }
152
153 public static com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
154 long serviceComponentId, java.lang.String buildNamespace,
155 com.liferay.portal.kernel.util.OrderByComparator obc)
156 throws com.liferay.portal.NoSuchServiceComponentException,
157 com.liferay.portal.SystemException {
158 return getPersistence()
159 .findByBuildNamespace_PrevAndNext(serviceComponentId,
160 buildNamespace, obc);
161 }
162
163 public static com.liferay.portal.model.ServiceComponent findByBNS_BNU(
164 java.lang.String buildNamespace, long buildNumber)
165 throws com.liferay.portal.NoSuchServiceComponentException,
166 com.liferay.portal.SystemException {
167 return getPersistence().findByBNS_BNU(buildNamespace, buildNumber);
168 }
169
170 public static com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
171 java.lang.String buildNamespace, long buildNumber)
172 throws com.liferay.portal.SystemException {
173 return getPersistence().fetchByBNS_BNU(buildNamespace, buildNumber);
174 }
175
176 public static com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
177 java.lang.String buildNamespace, long buildNumber,
178 boolean retrieveFromCache) throws com.liferay.portal.SystemException {
179 return getPersistence()
180 .fetchByBNS_BNU(buildNamespace, buildNumber,
181 retrieveFromCache);
182 }
183
184 public static java.util.List<Object> findWithDynamicQuery(
185 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
186 throws com.liferay.portal.SystemException {
187 return getPersistence().findWithDynamicQuery(dynamicQuery);
188 }
189
190 public static java.util.List<Object> findWithDynamicQuery(
191 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
192 int end) throws com.liferay.portal.SystemException {
193 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
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, com.liferay.portal.kernel.util.OrderByComparator obc)
208 throws com.liferay.portal.SystemException {
209 return getPersistence().findAll(start, end, obc);
210 }
211
212 public static void removeByBuildNamespace(java.lang.String buildNamespace)
213 throws com.liferay.portal.SystemException {
214 getPersistence().removeByBuildNamespace(buildNamespace);
215 }
216
217 public static void removeByBNS_BNU(java.lang.String buildNamespace,
218 long buildNumber)
219 throws com.liferay.portal.NoSuchServiceComponentException,
220 com.liferay.portal.SystemException {
221 getPersistence().removeByBNS_BNU(buildNamespace, buildNumber);
222 }
223
224 public static void removeAll() throws com.liferay.portal.SystemException {
225 getPersistence().removeAll();
226 }
227
228 public static int countByBuildNamespace(java.lang.String buildNamespace)
229 throws com.liferay.portal.SystemException {
230 return getPersistence().countByBuildNamespace(buildNamespace);
231 }
232
233 public static int countByBNS_BNU(java.lang.String buildNamespace,
234 long buildNumber) throws com.liferay.portal.SystemException {
235 return getPersistence().countByBNS_BNU(buildNamespace, buildNumber);
236 }
237
238 public static int countAll() throws com.liferay.portal.SystemException {
239 return getPersistence().countAll();
240 }
241
242 public static ServiceComponentPersistence getPersistence() {
243 return _persistence;
244 }
245
246 public void setPersistence(ServiceComponentPersistence persistence) {
247 _persistence = persistence;
248 }
249
250 private static ServiceComponentPersistence _persistence;
251 }