001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="ServiceComponentUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class ServiceComponentUtil {
030: public static com.liferay.portal.model.ServiceComponent create(
031: long serviceComponentId) {
032: return getPersistence().create(serviceComponentId);
033: }
034:
035: public static com.liferay.portal.model.ServiceComponent remove(
036: long serviceComponentId)
037: throws com.liferay.portal.NoSuchServiceComponentException,
038: com.liferay.portal.SystemException {
039: return getPersistence().remove(serviceComponentId);
040: }
041:
042: public static com.liferay.portal.model.ServiceComponent remove(
043: com.liferay.portal.model.ServiceComponent serviceComponent)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(serviceComponent);
046: }
047:
048: public static com.liferay.portal.model.ServiceComponent update(
049: com.liferay.portal.model.ServiceComponent serviceComponent)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(serviceComponent);
052: }
053:
054: public static com.liferay.portal.model.ServiceComponent update(
055: com.liferay.portal.model.ServiceComponent serviceComponent,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(serviceComponent, merge);
058: }
059:
060: public static com.liferay.portal.model.ServiceComponent updateImpl(
061: com.liferay.portal.model.ServiceComponent serviceComponent,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(serviceComponent, merge);
064: }
065:
066: public static com.liferay.portal.model.ServiceComponent findByPrimaryKey(
067: long serviceComponentId)
068: throws com.liferay.portal.NoSuchServiceComponentException,
069: com.liferay.portal.SystemException {
070: return getPersistence().findByPrimaryKey(serviceComponentId);
071: }
072:
073: public static com.liferay.portal.model.ServiceComponent fetchByPrimaryKey(
074: long serviceComponentId)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(serviceComponentId);
077: }
078:
079: public static java.util.List findByBuildNamespace(
080: java.lang.String buildNamespace)
081: throws com.liferay.portal.SystemException {
082: return getPersistence().findByBuildNamespace(buildNamespace);
083: }
084:
085: public static java.util.List findByBuildNamespace(
086: java.lang.String buildNamespace, int begin, int end)
087: throws com.liferay.portal.SystemException {
088: return getPersistence().findByBuildNamespace(buildNamespace,
089: begin, end);
090: }
091:
092: public static java.util.List findByBuildNamespace(
093: java.lang.String buildNamespace, int begin, int end,
094: com.liferay.portal.kernel.util.OrderByComparator obc)
095: throws com.liferay.portal.SystemException {
096: return getPersistence().findByBuildNamespace(buildNamespace,
097: begin, end, obc);
098: }
099:
100: public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_First(
101: java.lang.String buildNamespace,
102: com.liferay.portal.kernel.util.OrderByComparator obc)
103: throws com.liferay.portal.NoSuchServiceComponentException,
104: com.liferay.portal.SystemException {
105: return getPersistence().findByBuildNamespace_First(
106: buildNamespace, obc);
107: }
108:
109: public static com.liferay.portal.model.ServiceComponent findByBuildNamespace_Last(
110: java.lang.String buildNamespace,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.NoSuchServiceComponentException,
113: com.liferay.portal.SystemException {
114: return getPersistence().findByBuildNamespace_Last(
115: buildNamespace, obc);
116: }
117:
118: public static com.liferay.portal.model.ServiceComponent[] findByBuildNamespace_PrevAndNext(
119: long serviceComponentId, java.lang.String buildNamespace,
120: com.liferay.portal.kernel.util.OrderByComparator obc)
121: throws com.liferay.portal.NoSuchServiceComponentException,
122: com.liferay.portal.SystemException {
123: return getPersistence().findByBuildNamespace_PrevAndNext(
124: serviceComponentId, buildNamespace, obc);
125: }
126:
127: public static com.liferay.portal.model.ServiceComponent findByBNS_BNU(
128: java.lang.String buildNamespace, long buildNumber)
129: throws com.liferay.portal.NoSuchServiceComponentException,
130: com.liferay.portal.SystemException {
131: return getPersistence().findByBNS_BNU(buildNamespace,
132: buildNumber);
133: }
134:
135: public static com.liferay.portal.model.ServiceComponent fetchByBNS_BNU(
136: java.lang.String buildNamespace, long buildNumber)
137: throws com.liferay.portal.SystemException {
138: return getPersistence().fetchByBNS_BNU(buildNamespace,
139: buildNumber);
140: }
141:
142: public static java.util.List findWithDynamicQuery(
143: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
144: throws com.liferay.portal.SystemException {
145: return getPersistence().findWithDynamicQuery(queryInitializer);
146: }
147:
148: public static java.util.List findWithDynamicQuery(
149: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
150: int begin, int end)
151: throws com.liferay.portal.SystemException {
152: return getPersistence().findWithDynamicQuery(queryInitializer,
153: begin, end);
154: }
155:
156: public static java.util.List findAll()
157: throws com.liferay.portal.SystemException {
158: return getPersistence().findAll();
159: }
160:
161: public static java.util.List findAll(int begin, int end)
162: throws com.liferay.portal.SystemException {
163: return getPersistence().findAll(begin, end);
164: }
165:
166: public static java.util.List findAll(int begin, int end,
167: com.liferay.portal.kernel.util.OrderByComparator obc)
168: throws com.liferay.portal.SystemException {
169: return getPersistence().findAll(begin, end, obc);
170: }
171:
172: public static void removeByBuildNamespace(
173: java.lang.String buildNamespace)
174: throws com.liferay.portal.SystemException {
175: getPersistence().removeByBuildNamespace(buildNamespace);
176: }
177:
178: public static void removeByBNS_BNU(java.lang.String buildNamespace,
179: long buildNumber)
180: throws com.liferay.portal.NoSuchServiceComponentException,
181: com.liferay.portal.SystemException {
182: getPersistence().removeByBNS_BNU(buildNamespace, buildNumber);
183: }
184:
185: public static void removeAll()
186: throws com.liferay.portal.SystemException {
187: getPersistence().removeAll();
188: }
189:
190: public static int countByBuildNamespace(
191: java.lang.String buildNamespace)
192: throws com.liferay.portal.SystemException {
193: return getPersistence().countByBuildNamespace(buildNamespace);
194: }
195:
196: public static int countByBNS_BNU(java.lang.String buildNamespace,
197: long buildNumber) throws com.liferay.portal.SystemException {
198: return getPersistence().countByBNS_BNU(buildNamespace,
199: buildNumber);
200: }
201:
202: public static int countAll()
203: throws com.liferay.portal.SystemException {
204: return getPersistence().countAll();
205: }
206:
207: public static ServiceComponentPersistence getPersistence() {
208: return _getUtil()._persistence;
209: }
210:
211: public void setPersistence(ServiceComponentPersistence persistence) {
212: _persistence = persistence;
213: }
214:
215: private static ServiceComponentUtil _getUtil() {
216: if (_util == null) {
217: _util = (ServiceComponentUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
218: .locate(_UTIL);
219: }
220:
221: return _util;
222: }
223:
224: private static final String _UTIL = ServiceComponentUtil.class
225: .getName();
226: private static ServiceComponentUtil _util;
227: private ServiceComponentPersistence _persistence;
228: }
|