1
14
15 package com.liferay.portal.service.persistence;
16
17 import com.liferay.portal.SystemException;
18 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
19 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
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.SystemException {
92 return getPersistence().remove(orgLaborId);
93 }
94
95
98 public static com.liferay.portal.model.OrgLabor update(
99 com.liferay.portal.model.OrgLabor orgLabor)
100 throws com.liferay.portal.SystemException {
101 return getPersistence().update(orgLabor);
102 }
103
104 public static com.liferay.portal.model.OrgLabor updateImpl(
105 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
106 throws com.liferay.portal.SystemException {
107 return getPersistence().updateImpl(orgLabor, merge);
108 }
109
110 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
111 long orgLaborId)
112 throws com.liferay.portal.NoSuchOrgLaborException,
113 com.liferay.portal.SystemException {
114 return getPersistence().findByPrimaryKey(orgLaborId);
115 }
116
117 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
118 long orgLaborId) throws com.liferay.portal.SystemException {
119 return getPersistence().fetchByPrimaryKey(orgLaborId);
120 }
121
122 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
123 long organizationId) throws com.liferay.portal.SystemException {
124 return getPersistence().findByOrganizationId(organizationId);
125 }
126
127 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
128 long organizationId, int start, int end)
129 throws com.liferay.portal.SystemException {
130 return getPersistence().findByOrganizationId(organizationId, start, end);
131 }
132
133 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
134 long organizationId, int start, int end,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.SystemException {
137 return getPersistence()
138 .findByOrganizationId(organizationId, start, end, obc);
139 }
140
141 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
142 long organizationId,
143 com.liferay.portal.kernel.util.OrderByComparator obc)
144 throws com.liferay.portal.NoSuchOrgLaborException,
145 com.liferay.portal.SystemException {
146 return getPersistence().findByOrganizationId_First(organizationId, obc);
147 }
148
149 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
150 long organizationId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.NoSuchOrgLaborException,
153 com.liferay.portal.SystemException {
154 return getPersistence().findByOrganizationId_Last(organizationId, obc);
155 }
156
157 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
158 long orgLaborId, long organizationId,
159 com.liferay.portal.kernel.util.OrderByComparator obc)
160 throws com.liferay.portal.NoSuchOrgLaborException,
161 com.liferay.portal.SystemException {
162 return getPersistence()
163 .findByOrganizationId_PrevAndNext(orgLaborId,
164 organizationId, obc);
165 }
166
167 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
168 throws com.liferay.portal.SystemException {
169 return getPersistence().findAll();
170 }
171
172 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
173 int start, int end) throws com.liferay.portal.SystemException {
174 return getPersistence().findAll(start, end);
175 }
176
177 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
178 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
179 throws com.liferay.portal.SystemException {
180 return getPersistence().findAll(start, end, obc);
181 }
182
183 public static void removeByOrganizationId(long organizationId)
184 throws com.liferay.portal.SystemException {
185 getPersistence().removeByOrganizationId(organizationId);
186 }
187
188 public static void removeAll() throws com.liferay.portal.SystemException {
189 getPersistence().removeAll();
190 }
191
192 public static int countByOrganizationId(long organizationId)
193 throws com.liferay.portal.SystemException {
194 return getPersistence().countByOrganizationId(organizationId);
195 }
196
197 public static int countAll() throws com.liferay.portal.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 }