1
22
23 package com.liferay.portal.service.persistence;
24
25
26
39 public class OrgLaborUtil {
40 public static void cacheResult(com.liferay.portal.model.OrgLabor orgLabor) {
41 getPersistence().cacheResult(orgLabor);
42 }
43
44 public static void cacheResult(
45 java.util.List<com.liferay.portal.model.OrgLabor> orgLabors) {
46 getPersistence().cacheResult(orgLabors);
47 }
48
49 public static void clearCache() {
50 getPersistence().clearCache();
51 }
52
53 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
54 return getPersistence().create(orgLaborId);
55 }
56
57 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
58 throws com.liferay.portal.NoSuchOrgLaborException,
59 com.liferay.portal.SystemException {
60 return getPersistence().remove(orgLaborId);
61 }
62
63 public static com.liferay.portal.model.OrgLabor remove(
64 com.liferay.portal.model.OrgLabor orgLabor)
65 throws com.liferay.portal.SystemException {
66 return getPersistence().remove(orgLabor);
67 }
68
69
72 public static com.liferay.portal.model.OrgLabor update(
73 com.liferay.portal.model.OrgLabor orgLabor)
74 throws com.liferay.portal.SystemException {
75 return getPersistence().update(orgLabor);
76 }
77
78
90 public static com.liferay.portal.model.OrgLabor update(
91 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
92 throws com.liferay.portal.SystemException {
93 return getPersistence().update(orgLabor, merge);
94 }
95
96 public static com.liferay.portal.model.OrgLabor updateImpl(
97 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
98 throws com.liferay.portal.SystemException {
99 return getPersistence().updateImpl(orgLabor, merge);
100 }
101
102 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
103 long orgLaborId)
104 throws com.liferay.portal.NoSuchOrgLaborException,
105 com.liferay.portal.SystemException {
106 return getPersistence().findByPrimaryKey(orgLaborId);
107 }
108
109 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
110 long orgLaborId) throws com.liferay.portal.SystemException {
111 return getPersistence().fetchByPrimaryKey(orgLaborId);
112 }
113
114 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
115 long organizationId) throws com.liferay.portal.SystemException {
116 return getPersistence().findByOrganizationId(organizationId);
117 }
118
119 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
120 long organizationId, int start, int end)
121 throws com.liferay.portal.SystemException {
122 return getPersistence().findByOrganizationId(organizationId, start, end);
123 }
124
125 public static java.util.List<com.liferay.portal.model.OrgLabor> findByOrganizationId(
126 long organizationId, int start, int end,
127 com.liferay.portal.kernel.util.OrderByComparator obc)
128 throws com.liferay.portal.SystemException {
129 return getPersistence()
130 .findByOrganizationId(organizationId, start, end, obc);
131 }
132
133 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
134 long organizationId,
135 com.liferay.portal.kernel.util.OrderByComparator obc)
136 throws com.liferay.portal.NoSuchOrgLaborException,
137 com.liferay.portal.SystemException {
138 return getPersistence().findByOrganizationId_First(organizationId, obc);
139 }
140
141 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
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_Last(organizationId, obc);
147 }
148
149 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
150 long orgLaborId, long organizationId,
151 com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.NoSuchOrgLaborException,
153 com.liferay.portal.SystemException {
154 return getPersistence()
155 .findByOrganizationId_PrevAndNext(orgLaborId,
156 organizationId, obc);
157 }
158
159 public static java.util.List<Object> findWithDynamicQuery(
160 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
161 throws com.liferay.portal.SystemException {
162 return getPersistence().findWithDynamicQuery(dynamicQuery);
163 }
164
165 public static java.util.List<Object> findWithDynamicQuery(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
167 int end) throws com.liferay.portal.SystemException {
168 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
169 }
170
171 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll()
172 throws com.liferay.portal.SystemException {
173 return getPersistence().findAll();
174 }
175
176 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
177 int start, int end) throws com.liferay.portal.SystemException {
178 return getPersistence().findAll(start, end);
179 }
180
181 public static java.util.List<com.liferay.portal.model.OrgLabor> findAll(
182 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
183 throws com.liferay.portal.SystemException {
184 return getPersistence().findAll(start, end, obc);
185 }
186
187 public static void removeByOrganizationId(long organizationId)
188 throws com.liferay.portal.SystemException {
189 getPersistence().removeByOrganizationId(organizationId);
190 }
191
192 public static void removeAll() throws com.liferay.portal.SystemException {
193 getPersistence().removeAll();
194 }
195
196 public static int countByOrganizationId(long organizationId)
197 throws com.liferay.portal.SystemException {
198 return getPersistence().countByOrganizationId(organizationId);
199 }
200
201 public static int countAll() throws com.liferay.portal.SystemException {
202 return getPersistence().countAll();
203 }
204
205 public static OrgLaborPersistence getPersistence() {
206 return _persistence;
207 }
208
209 public void setPersistence(OrgLaborPersistence persistence) {
210 _persistence = persistence;
211 }
212
213 private static OrgLaborPersistence _persistence;
214 }