1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
19 import com.liferay.portal.kernel.exception.SystemException;
20 import com.liferay.portal.model.OrgLabor;
21
22 import java.util.List;
23
24
37 public class OrgLaborUtil {
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 OrgLabor remove(OrgLabor orgLabor) throws SystemException {
65 return getPersistence().remove(orgLabor);
66 }
67
68
71 public static OrgLabor update(OrgLabor orgLabor, boolean merge)
72 throws SystemException {
73 return getPersistence().update(orgLabor, merge);
74 }
75
76 public static void cacheResult(com.liferay.portal.model.OrgLabor orgLabor) {
77 getPersistence().cacheResult(orgLabor);
78 }
79
80 public static void cacheResult(
81 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors) {
82 getPersistence().cacheResult(orgLabors);
83 }
84
85 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
86 return getPersistence().create(orgLaborId);
87 }
88
89 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
90 throws com.liferay.portal.NoSuchOrgLaborException,
91 com.liferay.portal.kernel.exception.SystemException {
92 return getPersistence().remove(orgLaborId);
93 }
94
95 public static com.liferay.portal.model.OrgLabor updateImpl(
96 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
97 throws com.liferay.portal.kernel.exception.SystemException {
98 return getPersistence().updateImpl(orgLabor, merge);
99 }
100
101 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
102 long orgLaborId)
103 throws com.liferay.portal.NoSuchOrgLaborException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return getPersistence().findByPrimaryKey(orgLaborId);
106 }
107
108 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
109 long orgLaborId)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getPersistence().fetchByPrimaryKey(orgLaborId);
112 }
113
114 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
115 long organizationId)
116 throws com.liferay.portal.kernel.exception.SystemException {
117 return getPersistence().findByOrganizationId(organizationId);
118 }
119
120 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
121 long organizationId, int start, int end)
122 throws com.liferay.portal.kernel.exception.SystemException {
123 return getPersistence().findByOrganizationId(organizationId, start, end);
124 }
125
126 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
127 long organizationId, int start, int end,
128 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
129 throws com.liferay.portal.kernel.exception.SystemException {
130 return getPersistence()
131 .findByOrganizationId(organizationId, start, end,
132 orderByComparator);
133 }
134
135 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
136 long organizationId,
137 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138 throws com.liferay.portal.NoSuchOrgLaborException,
139 com.liferay.portal.kernel.exception.SystemException {
140 return getPersistence()
141 .findByOrganizationId_First(organizationId, orderByComparator);
142 }
143
144 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
145 long organizationId,
146 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
147 throws com.liferay.portal.NoSuchOrgLaborException,
148 com.liferay.portal.kernel.exception.SystemException {
149 return getPersistence()
150 .findByOrganizationId_Last(organizationId, orderByComparator);
151 }
152
153 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
154 long orgLaborId, long organizationId,
155 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
156 throws com.liferay.portal.NoSuchOrgLaborException,
157 com.liferay.portal.kernel.exception.SystemException {
158 return getPersistence()
159 .findByOrganizationId_PrevAndNext(orgLaborId,
160 organizationId, orderByComparator);
161 }
162
163 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
164 throws com.liferay.portal.kernel.exception.SystemException {
165 return getPersistence().findAll();
166 }
167
168 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
169 int start, int end)
170 throws com.liferay.portal.kernel.exception.SystemException {
171 return getPersistence().findAll(start, end);
172 }
173
174 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
175 int start, int end,
176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
177 throws com.liferay.portal.kernel.exception.SystemException {
178 return getPersistence().findAll(start, end, orderByComparator);
179 }
180
181 public static void removeByOrganizationId(long organizationId)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 getPersistence().removeByOrganizationId(organizationId);
184 }
185
186 public static void removeAll()
187 throws com.liferay.portal.kernel.exception.SystemException {
188 getPersistence().removeAll();
189 }
190
191 public static int countByOrganizationId(long organizationId)
192 throws com.liferay.portal.kernel.exception.SystemException {
193 return getPersistence().countByOrganizationId(organizationId);
194 }
195
196 public static int countAll()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getPersistence().countAll();
199 }
200
201 public static OrgLaborPersistence getPersistence() {
202 if (_persistence == null) {
203 _persistence = (OrgLaborPersistence)PortalBeanLocatorUtil.locate(OrgLaborPersistence.class.getName());
204 }
205
206 return _persistence;
207 }
208
209 public void setPersistence(OrgLaborPersistence persistence) {
210 _persistence = persistence;
211 }
212
213 private static OrgLaborPersistence _persistence;
214 }