1
22
23 package com.liferay.portal.service.persistence;
24
25
31 public class OrgLaborUtil {
32 public static com.liferay.portal.model.OrgLabor create(long orgLaborId) {
33 return getPersistence().create(orgLaborId);
34 }
35
36 public static com.liferay.portal.model.OrgLabor remove(long orgLaborId)
37 throws com.liferay.portal.SystemException,
38 com.liferay.portal.NoSuchOrgLaborException {
39 return getPersistence().remove(orgLaborId);
40 }
41
42 public static com.liferay.portal.model.OrgLabor remove(
43 com.liferay.portal.model.OrgLabor orgLabor)
44 throws com.liferay.portal.SystemException {
45 return getPersistence().remove(orgLabor);
46 }
47
48 public static com.liferay.portal.model.OrgLabor update(
49 com.liferay.portal.model.OrgLabor orgLabor)
50 throws com.liferay.portal.SystemException {
51 return getPersistence().update(orgLabor);
52 }
53
54 public static com.liferay.portal.model.OrgLabor update(
55 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
56 throws com.liferay.portal.SystemException {
57 return getPersistence().update(orgLabor, merge);
58 }
59
60 public static com.liferay.portal.model.OrgLabor updateImpl(
61 com.liferay.portal.model.OrgLabor orgLabor, boolean merge)
62 throws com.liferay.portal.SystemException {
63 return getPersistence().updateImpl(orgLabor, merge);
64 }
65
66 public static com.liferay.portal.model.OrgLabor findByPrimaryKey(
67 long orgLaborId)
68 throws com.liferay.portal.SystemException,
69 com.liferay.portal.NoSuchOrgLaborException {
70 return getPersistence().findByPrimaryKey(orgLaborId);
71 }
72
73 public static com.liferay.portal.model.OrgLabor fetchByPrimaryKey(
74 long orgLaborId) throws com.liferay.portal.SystemException {
75 return getPersistence().fetchByPrimaryKey(orgLaborId);
76 }
77
78 public static java.util.List findByOrganizationId(long organizationId)
79 throws com.liferay.portal.SystemException {
80 return getPersistence().findByOrganizationId(organizationId);
81 }
82
83 public static java.util.List findByOrganizationId(long organizationId,
84 int begin, int end) throws com.liferay.portal.SystemException {
85 return getPersistence().findByOrganizationId(organizationId, begin, end);
86 }
87
88 public static java.util.List findByOrganizationId(long organizationId,
89 int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException {
91 return getPersistence().findByOrganizationId(organizationId, begin,
92 end, obc);
93 }
94
95 public static com.liferay.portal.model.OrgLabor findByOrganizationId_First(
96 long organizationId,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portal.NoSuchOrgLaborException {
100 return getPersistence().findByOrganizationId_First(organizationId, obc);
101 }
102
103 public static com.liferay.portal.model.OrgLabor findByOrganizationId_Last(
104 long organizationId,
105 com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portal.NoSuchOrgLaborException {
108 return getPersistence().findByOrganizationId_Last(organizationId, obc);
109 }
110
111 public static com.liferay.portal.model.OrgLabor[] findByOrganizationId_PrevAndNext(
112 long orgLaborId, long organizationId,
113 com.liferay.portal.kernel.util.OrderByComparator obc)
114 throws com.liferay.portal.SystemException,
115 com.liferay.portal.NoSuchOrgLaborException {
116 return getPersistence().findByOrganizationId_PrevAndNext(orgLaborId,
117 organizationId, obc);
118 }
119
120 public static java.util.List findWithDynamicQuery(
121 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
122 throws com.liferay.portal.SystemException {
123 return getPersistence().findWithDynamicQuery(queryInitializer);
124 }
125
126 public static java.util.List findWithDynamicQuery(
127 com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
128 int begin, int end) throws com.liferay.portal.SystemException {
129 return getPersistence().findWithDynamicQuery(queryInitializer, begin,
130 end);
131 }
132
133 public static java.util.List findAll()
134 throws com.liferay.portal.SystemException {
135 return getPersistence().findAll();
136 }
137
138 public static java.util.List findAll(int begin, int end)
139 throws com.liferay.portal.SystemException {
140 return getPersistence().findAll(begin, end);
141 }
142
143 public static java.util.List findAll(int begin, int end,
144 com.liferay.portal.kernel.util.OrderByComparator obc)
145 throws com.liferay.portal.SystemException {
146 return getPersistence().findAll(begin, end, obc);
147 }
148
149 public static void removeByOrganizationId(long organizationId)
150 throws com.liferay.portal.SystemException {
151 getPersistence().removeByOrganizationId(organizationId);
152 }
153
154 public static void removeAll() throws com.liferay.portal.SystemException {
155 getPersistence().removeAll();
156 }
157
158 public static int countByOrganizationId(long organizationId)
159 throws com.liferay.portal.SystemException {
160 return getPersistence().countByOrganizationId(organizationId);
161 }
162
163 public static int countAll() throws com.liferay.portal.SystemException {
164 return getPersistence().countAll();
165 }
166
167 public static OrgLaborPersistence getPersistence() {
168 return _getUtil()._persistence;
169 }
170
171 public void setPersistence(OrgLaborPersistence persistence) {
172 _persistence = persistence;
173 }
174
175 private static OrgLaborUtil _getUtil() {
176 if (_util == null) {
177 _util = (OrgLaborUtil)com.liferay.portal.kernel.bean.BeanLocatorUtil.locate(_UTIL);
178 }
179
180 return _util;
181 }
182
183 private static final String _UTIL = OrgLaborUtil.class.getName();
184 private static OrgLaborUtil _util;
185 private OrgLaborPersistence _persistence;
186 }