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="OrgLaborUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class OrgLaborUtil {
030: public static com.liferay.portal.model.OrgLabor create(
031: long orgLaborId) {
032: return getPersistence().create(orgLaborId);
033: }
034:
035: public static com.liferay.portal.model.OrgLabor remove(
036: long orgLaborId) throws com.liferay.portal.SystemException,
037: com.liferay.portal.NoSuchOrgLaborException {
038: return getPersistence().remove(orgLaborId);
039: }
040:
041: public static com.liferay.portal.model.OrgLabor remove(
042: com.liferay.portal.model.OrgLabor orgLabor)
043: throws com.liferay.portal.SystemException {
044: return getPersistence().remove(orgLabor);
045: }
046:
047: public static com.liferay.portal.model.OrgLabor update(
048: com.liferay.portal.model.OrgLabor orgLabor)
049: throws com.liferay.portal.SystemException {
050: return getPersistence().update(orgLabor);
051: }
052:
053: public static com.liferay.portal.model.OrgLabor update(
054: com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
055: throws com.liferay.portal.SystemException {
056: return getPersistence().update(orgLabor, merge);
057: }
058:
059: public static com.liferay.portal.model.OrgLabor updateImpl(
060: com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
061: throws com.liferay.portal.SystemException {
062: return getPersistence().updateImpl(orgLabor, merge);
063: }
064:
065: public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
066: long orgLaborId) throws com.liferay.portal.SystemException,
067: com.liferay.portal.NoSuchOrgLaborException {
068: return getPersistence().findByPrimaryKey(orgLaborId);
069: }
070:
071: public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
072: long orgLaborId) throws com.liferay.portal.SystemException {
073: return getPersistence().fetchByPrimaryKey(orgLaborId);
074: }
075:
076: public static java.util.List findByOrganizationId(
077: long organizationId)
078: throws com.liferay.portal.SystemException {
079: return getPersistence().findByOrganizationId(organizationId);
080: }
081:
082: public static java.util.List findByOrganizationId(
083: long organizationId, int begin, int end)
084: throws com.liferay.portal.SystemException {
085: return getPersistence().findByOrganizationId(organizationId,
086: begin, end);
087: }
088:
089: public static java.util.List findByOrganizationId(
090: long organizationId, int begin, int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByOrganizationId(organizationId,
094: begin, end, obc);
095: }
096:
097: public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
098: long organizationId,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException,
101: com.liferay.portal.NoSuchOrgLaborException {
102: return getPersistence().findByOrganizationId_First(
103: organizationId, obc);
104: }
105:
106: public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
107: long organizationId,
108: com.liferay.portal.kernel.util.OrderByComparator obc)
109: throws com.liferay.portal.SystemException,
110: com.liferay.portal.NoSuchOrgLaborException {
111: return getPersistence().findByOrganizationId_Last(
112: organizationId, obc);
113: }
114:
115: public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
116: long orgLaborId, long organizationId,
117: com.liferay.portal.kernel.util.OrderByComparator obc)
118: throws com.liferay.portal.SystemException,
119: com.liferay.portal.NoSuchOrgLaborException {
120: return getPersistence().findByOrganizationId_PrevAndNext(
121: orgLaborId, organizationId, obc);
122: }
123:
124: public static java.util.List findWithDynamicQuery(
125: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
126: throws com.liferay.portal.SystemException {
127: return getPersistence().findWithDynamicQuery(queryInitializer);
128: }
129:
130: public static java.util.List findWithDynamicQuery(
131: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
132: int begin, int end)
133: throws com.liferay.portal.SystemException {
134: return getPersistence().findWithDynamicQuery(queryInitializer,
135: begin, end);
136: }
137:
138: public static java.util.List findAll()
139: throws com.liferay.portal.SystemException {
140: return getPersistence().findAll();
141: }
142:
143: public static java.util.List findAll(int begin, int end)
144: throws com.liferay.portal.SystemException {
145: return getPersistence().findAll(begin, end);
146: }
147:
148: public static java.util.List findAll(int begin, int end,
149: com.liferay.portal.kernel.util.OrderByComparator obc)
150: throws com.liferay.portal.SystemException {
151: return getPersistence().findAll(begin, end, obc);
152: }
153:
154: public static void removeByOrganizationId(long organizationId)
155: throws com.liferay.portal.SystemException {
156: getPersistence().removeByOrganizationId(organizationId);
157: }
158:
159: public static void removeAll()
160: throws com.liferay.portal.SystemException {
161: getPersistence().removeAll();
162: }
163:
164: public static int countByOrganizationId(long organizationId)
165: throws com.liferay.portal.SystemException {
166: return getPersistence().countByOrganizationId(organizationId);
167: }
168:
169: public static int countAll()
170: throws com.liferay.portal.SystemException {
171: return getPersistence().countAll();
172: }
173:
174: public static OrgLaborPersistence getPersistence() {
175: return _getUtil()._persistence;
176: }
177:
178: public void setPersistence(OrgLaborPersistence persistence) {
179: _persistence = persistence;
180: }
181:
182: private static OrgLaborUtil _getUtil() {
183: if (_util == null) {
184: _util = (OrgLaborUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
185: .locate(_UTIL);
186: }
187:
188: return _util;
189: }
190:
191: private static final String _UTIL = OrgLaborUtil.class.getName();
192: private static OrgLaborUtil _util;
193: private OrgLaborPersistence _persistence;
194: }
|