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