001
014
015 package com.liferay.portal.service.persistence;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
019 import com.liferay.portal.kernel.exception.SystemException;
020 import com.liferay.portal.kernel.util.OrderByComparator;
021 import com.liferay.portal.model.OrgLabor;
022 import com.liferay.portal.service.ServiceContext;
023
024 import java.util.List;
025
026
032 public class OrgLaborUtil {
033
036 public static void clearCache() {
037 getPersistence().clearCache();
038 }
039
040
043 public static void clearCache(OrgLabor orgLabor) {
044 getPersistence().clearCache(orgLabor);
045 }
046
047
050 public long countWithDynamicQuery(DynamicQuery dynamicQuery)
051 throws SystemException {
052 return getPersistence().countWithDynamicQuery(dynamicQuery);
053 }
054
055
058 public static List<OrgLabor> findWithDynamicQuery(DynamicQuery dynamicQuery)
059 throws SystemException {
060 return getPersistence().findWithDynamicQuery(dynamicQuery);
061 }
062
063
066 public static List<OrgLabor> findWithDynamicQuery(
067 DynamicQuery dynamicQuery, int start, int end)
068 throws SystemException {
069 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
070 }
071
072
075 public static List<OrgLabor> findWithDynamicQuery(
076 DynamicQuery dynamicQuery, int start, int end,
077 OrderByComparator orderByComparator) throws SystemException {
078 return getPersistence()
079 .findWithDynamicQuery(dynamicQuery, start, end,
080 orderByComparator);
081 }
082
083
086 public static OrgLabor remove(OrgLabor orgLabor) throws SystemException {
087 return getPersistence().remove(orgLabor);
088 }
089
090
093 public static OrgLabor update(OrgLabor orgLabor, boolean merge)
094 throws SystemException {
095 return getPersistence().update(orgLabor, merge);
096 }
097
098
101 public static OrgLabor update(OrgLabor orgLabor, boolean merge,
102 ServiceContext serviceContext) throws SystemException {
103 return getPersistence().update(orgLabor, merge, serviceContext);
104 }
105
106 public static void cacheResult(com.liferay.portal.model.OrgLabor orgLabor) {
107 getPersistence().cacheResult(orgLabor);
108 }
109
110 public static void cacheResult(
111 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors) {
112 getPersistence().cacheResult(orgLabors);
113 }
114
115 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
116 return getPersistence().create(orgLaborId);
117 }
118
119 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
120 throws com.liferay.portal.NoSuchOrgLaborException,
121 com.liferay.portal.kernel.exception.SystemException {
122 return getPersistence().remove(orgLaborId);
123 }
124
125 public static com.liferay.portal.model.OrgLabor updateImpl(
126 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
127 throws com.liferay.portal.kernel.exception.SystemException {
128 return getPersistence().updateImpl(orgLabor, merge);
129 }
130
131 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
132 long orgLaborId)
133 throws com.liferay.portal.NoSuchOrgLaborException,
134 com.liferay.portal.kernel.exception.SystemException {
135 return getPersistence().findByPrimaryKey(orgLaborId);
136 }
137
138 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
139 long orgLaborId)
140 throws com.liferay.portal.kernel.exception.SystemException {
141 return getPersistence().fetchByPrimaryKey(orgLaborId);
142 }
143
144 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
145 long organizationId)
146 throws com.liferay.portal.kernel.exception.SystemException {
147 return getPersistence().findByOrganizationId(organizationId);
148 }
149
150 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
151 long organizationId, int start, int end)
152 throws com.liferay.portal.kernel.exception.SystemException {
153 return getPersistence().findByOrganizationId(organizationId, start, end);
154 }
155
156 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
157 long organizationId, int start, int end,
158 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getPersistence()
161 .findByOrganizationId(organizationId, start, end,
162 orderByComparator);
163 }
164
165 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
166 long organizationId,
167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
168 throws com.liferay.portal.NoSuchOrgLaborException,
169 com.liferay.portal.kernel.exception.SystemException {
170 return getPersistence()
171 .findByOrganizationId_First(organizationId, orderByComparator);
172 }
173
174 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
175 long organizationId,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.NoSuchOrgLaborException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getPersistence()
180 .findByOrganizationId_Last(organizationId, orderByComparator);
181 }
182
183 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
184 long orgLaborId, long organizationId,
185 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
186 throws com.liferay.portal.NoSuchOrgLaborException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getPersistence()
189 .findByOrganizationId_PrevAndNext(orgLaborId,
190 organizationId, orderByComparator);
191 }
192
193 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
194 throws com.liferay.portal.kernel.exception.SystemException {
195 return getPersistence().findAll();
196 }
197
198 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
199 int start, int end)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 return getPersistence().findAll(start, end);
202 }
203
204 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
205 int start, int end,
206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
207 throws com.liferay.portal.kernel.exception.SystemException {
208 return getPersistence().findAll(start, end, orderByComparator);
209 }
210
211 public static void removeByOrganizationId(long organizationId)
212 throws com.liferay.portal.kernel.exception.SystemException {
213 getPersistence().removeByOrganizationId(organizationId);
214 }
215
216 public static void removeAll()
217 throws com.liferay.portal.kernel.exception.SystemException {
218 getPersistence().removeAll();
219 }
220
221 public static int countByOrganizationId(long organizationId)
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getPersistence().countByOrganizationId(organizationId);
224 }
225
226 public static int countAll()
227 throws com.liferay.portal.kernel.exception.SystemException {
228 return getPersistence().countAll();
229 }
230
231 public static OrgLaborPersistence getPersistence() {
232 if (_persistence == null) {
233 _persistence = (OrgLaborPersistence)PortalBeanLocatorUtil.locate(OrgLaborPersistence.class.getName());
234 }
235
236 return _persistence;
237 }
238
239 public void setPersistence(OrgLaborPersistence persistence) {
240 _persistence = persistence;
241 }
242
243 private static OrgLaborPersistence _persistence;
244 }