001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.service.persistence;
022:
023: /**
024: * <a href="OrgGroupPermissionUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class OrgGroupPermissionUtil {
030: public static com.liferay.portal.model.OrgGroupPermission create(
031: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK) {
032: return getPersistence().create(orgGroupPermissionPK);
033: }
034:
035: public static com.liferay.portal.model.OrgGroupPermission remove(
036: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchOrgGroupPermissionException {
039: return getPersistence().remove(orgGroupPermissionPK);
040: }
041:
042: public static com.liferay.portal.model.OrgGroupPermission remove(
043: com.liferay.portal.model.OrgGroupPermission orgGroupPermission)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(orgGroupPermission);
046: }
047:
048: public static com.liferay.portal.model.OrgGroupPermission update(
049: com.liferay.portal.model.OrgGroupPermission orgGroupPermission)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(orgGroupPermission);
052: }
053:
054: public static com.liferay.portal.model.OrgGroupPermission update(
055: com.liferay.portal.model.OrgGroupPermission orgGroupPermission,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(orgGroupPermission, merge);
058: }
059:
060: public static com.liferay.portal.model.OrgGroupPermission updateImpl(
061: com.liferay.portal.model.OrgGroupPermission orgGroupPermission,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(orgGroupPermission, merge);
064: }
065:
066: public static com.liferay.portal.model.OrgGroupPermission findByPrimaryKey(
067: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchOrgGroupPermissionException {
070: return getPersistence().findByPrimaryKey(orgGroupPermissionPK);
071: }
072:
073: public static com.liferay.portal.model.OrgGroupPermission fetchByPrimaryKey(
074: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(orgGroupPermissionPK);
077: }
078:
079: public static java.util.List findByGroupId(long groupId)
080: throws com.liferay.portal.SystemException {
081: return getPersistence().findByGroupId(groupId);
082: }
083:
084: public static java.util.List findByGroupId(long groupId, int begin,
085: int end) throws com.liferay.portal.SystemException {
086: return getPersistence().findByGroupId(groupId, begin, end);
087: }
088:
089: public static java.util.List findByGroupId(long groupId, int begin,
090: int end,
091: com.liferay.portal.kernel.util.OrderByComparator obc)
092: throws com.liferay.portal.SystemException {
093: return getPersistence().findByGroupId(groupId, begin, end, obc);
094: }
095:
096: public static com.liferay.portal.model.OrgGroupPermission findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.NoSuchOrgGroupPermissionException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portal.model.OrgGroupPermission findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchOrgGroupPermissionException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portal.model.OrgGroupPermission[] findByGroupId_PrevAndNext(
113: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK,
114: long groupId,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portal.NoSuchOrgGroupPermissionException {
118: return getPersistence().findByGroupId_PrevAndNext(
119: orgGroupPermissionPK, groupId, obc);
120: }
121:
122: public static java.util.List findByPermissionId(long permissionId)
123: throws com.liferay.portal.SystemException {
124: return getPersistence().findByPermissionId(permissionId);
125: }
126:
127: public static java.util.List findByPermissionId(long permissionId,
128: int begin, int end)
129: throws com.liferay.portal.SystemException {
130: return getPersistence().findByPermissionId(permissionId, begin,
131: end);
132: }
133:
134: public static java.util.List findByPermissionId(long permissionId,
135: int begin, int end,
136: com.liferay.portal.kernel.util.OrderByComparator obc)
137: throws com.liferay.portal.SystemException {
138: return getPersistence().findByPermissionId(permissionId, begin,
139: end, obc);
140: }
141:
142: public static com.liferay.portal.model.OrgGroupPermission findByPermissionId_First(
143: long permissionId,
144: com.liferay.portal.kernel.util.OrderByComparator obc)
145: throws com.liferay.portal.SystemException,
146: com.liferay.portal.NoSuchOrgGroupPermissionException {
147: return getPersistence().findByPermissionId_First(permissionId,
148: obc);
149: }
150:
151: public static com.liferay.portal.model.OrgGroupPermission findByPermissionId_Last(
152: long permissionId,
153: com.liferay.portal.kernel.util.OrderByComparator obc)
154: throws com.liferay.portal.SystemException,
155: com.liferay.portal.NoSuchOrgGroupPermissionException {
156: return getPersistence().findByPermissionId_Last(permissionId,
157: obc);
158: }
159:
160: public static com.liferay.portal.model.OrgGroupPermission[] findByPermissionId_PrevAndNext(
161: com.liferay.portal.service.persistence.OrgGroupPermissionPK orgGroupPermissionPK,
162: long permissionId,
163: com.liferay.portal.kernel.util.OrderByComparator obc)
164: throws com.liferay.portal.SystemException,
165: com.liferay.portal.NoSuchOrgGroupPermissionException {
166: return getPersistence().findByPermissionId_PrevAndNext(
167: orgGroupPermissionPK, permissionId, obc);
168: }
169:
170: public static java.util.List findWithDynamicQuery(
171: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
172: throws com.liferay.portal.SystemException {
173: return getPersistence().findWithDynamicQuery(queryInitializer);
174: }
175:
176: public static java.util.List findWithDynamicQuery(
177: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
178: int begin, int end)
179: throws com.liferay.portal.SystemException {
180: return getPersistence().findWithDynamicQuery(queryInitializer,
181: begin, end);
182: }
183:
184: public static java.util.List findAll()
185: throws com.liferay.portal.SystemException {
186: return getPersistence().findAll();
187: }
188:
189: public static java.util.List findAll(int begin, int end)
190: throws com.liferay.portal.SystemException {
191: return getPersistence().findAll(begin, end);
192: }
193:
194: public static java.util.List findAll(int begin, int end,
195: com.liferay.portal.kernel.util.OrderByComparator obc)
196: throws com.liferay.portal.SystemException {
197: return getPersistence().findAll(begin, end, obc);
198: }
199:
200: public static void removeByGroupId(long groupId)
201: throws com.liferay.portal.SystemException {
202: getPersistence().removeByGroupId(groupId);
203: }
204:
205: public static void removeByPermissionId(long permissionId)
206: throws com.liferay.portal.SystemException {
207: getPersistence().removeByPermissionId(permissionId);
208: }
209:
210: public static void removeAll()
211: throws com.liferay.portal.SystemException {
212: getPersistence().removeAll();
213: }
214:
215: public static int countByGroupId(long groupId)
216: throws com.liferay.portal.SystemException {
217: return getPersistence().countByGroupId(groupId);
218: }
219:
220: public static int countByPermissionId(long permissionId)
221: throws com.liferay.portal.SystemException {
222: return getPersistence().countByPermissionId(permissionId);
223: }
224:
225: public static int countAll()
226: throws com.liferay.portal.SystemException {
227: return getPersistence().countAll();
228: }
229:
230: public static OrgGroupPermissionPersistence getPersistence() {
231: return _getUtil()._persistence;
232: }
233:
234: public void setPersistence(OrgGroupPermissionPersistence persistence) {
235: _persistence = persistence;
236: }
237:
238: private static OrgGroupPermissionUtil _getUtil() {
239: if (_util == null) {
240: _util = (OrgGroupPermissionUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
241: .locate(_UTIL);
242: }
243:
244: return _util;
245: }
246:
247: private static final String _UTIL = OrgGroupPermissionUtil.class
248: .getName();
249: private static OrgGroupPermissionUtil _util;
250: private OrgGroupPermissionPersistence _persistence;
251: }
|