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="OrgGroupRoleUtil.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class OrgGroupRoleUtil {
030: public static com.liferay.portal.model.OrgGroupRole create(
031: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK) {
032: return getPersistence().create(orgGroupRolePK);
033: }
034:
035: public static com.liferay.portal.model.OrgGroupRole remove(
036: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
037: throws com.liferay.portal.SystemException,
038: com.liferay.portal.NoSuchOrgGroupRoleException {
039: return getPersistence().remove(orgGroupRolePK);
040: }
041:
042: public static com.liferay.portal.model.OrgGroupRole remove(
043: com.liferay.portal.model.OrgGroupRole orgGroupRole)
044: throws com.liferay.portal.SystemException {
045: return getPersistence().remove(orgGroupRole);
046: }
047:
048: public static com.liferay.portal.model.OrgGroupRole update(
049: com.liferay.portal.model.OrgGroupRole orgGroupRole)
050: throws com.liferay.portal.SystemException {
051: return getPersistence().update(orgGroupRole);
052: }
053:
054: public static com.liferay.portal.model.OrgGroupRole update(
055: com.liferay.portal.model.OrgGroupRole orgGroupRole,
056: boolean merge) throws com.liferay.portal.SystemException {
057: return getPersistence().update(orgGroupRole, merge);
058: }
059:
060: public static com.liferay.portal.model.OrgGroupRole updateImpl(
061: com.liferay.portal.model.OrgGroupRole orgGroupRole,
062: boolean merge) throws com.liferay.portal.SystemException {
063: return getPersistence().updateImpl(orgGroupRole, merge);
064: }
065:
066: public static com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
067: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
068: throws com.liferay.portal.SystemException,
069: com.liferay.portal.NoSuchOrgGroupRoleException {
070: return getPersistence().findByPrimaryKey(orgGroupRolePK);
071: }
072:
073: public static com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
074: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
075: throws com.liferay.portal.SystemException {
076: return getPersistence().fetchByPrimaryKey(orgGroupRolePK);
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.OrgGroupRole findByGroupId_First(
097: long groupId,
098: com.liferay.portal.kernel.util.OrderByComparator obc)
099: throws com.liferay.portal.SystemException,
100: com.liferay.portal.NoSuchOrgGroupRoleException {
101: return getPersistence().findByGroupId_First(groupId, obc);
102: }
103:
104: public static com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
105: long groupId,
106: com.liferay.portal.kernel.util.OrderByComparator obc)
107: throws com.liferay.portal.SystemException,
108: com.liferay.portal.NoSuchOrgGroupRoleException {
109: return getPersistence().findByGroupId_Last(groupId, obc);
110: }
111:
112: public static com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
113: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
114: long groupId,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException,
117: com.liferay.portal.NoSuchOrgGroupRoleException {
118: return getPersistence().findByGroupId_PrevAndNext(
119: orgGroupRolePK, groupId, obc);
120: }
121:
122: public static java.util.List findByRoleId(long roleId)
123: throws com.liferay.portal.SystemException {
124: return getPersistence().findByRoleId(roleId);
125: }
126:
127: public static java.util.List findByRoleId(long roleId, int begin,
128: int end) throws com.liferay.portal.SystemException {
129: return getPersistence().findByRoleId(roleId, begin, end);
130: }
131:
132: public static java.util.List findByRoleId(long roleId, int begin,
133: int end,
134: com.liferay.portal.kernel.util.OrderByComparator obc)
135: throws com.liferay.portal.SystemException {
136: return getPersistence().findByRoleId(roleId, begin, end, obc);
137: }
138:
139: public static com.liferay.portal.model.OrgGroupRole findByRoleId_First(
140: long roleId,
141: com.liferay.portal.kernel.util.OrderByComparator obc)
142: throws com.liferay.portal.SystemException,
143: com.liferay.portal.NoSuchOrgGroupRoleException {
144: return getPersistence().findByRoleId_First(roleId, obc);
145: }
146:
147: public static com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
148: long roleId,
149: com.liferay.portal.kernel.util.OrderByComparator obc)
150: throws com.liferay.portal.SystemException,
151: com.liferay.portal.NoSuchOrgGroupRoleException {
152: return getPersistence().findByRoleId_Last(roleId, obc);
153: }
154:
155: public static com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
156: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
157: long roleId,
158: com.liferay.portal.kernel.util.OrderByComparator obc)
159: throws com.liferay.portal.SystemException,
160: com.liferay.portal.NoSuchOrgGroupRoleException {
161: return getPersistence().findByRoleId_PrevAndNext(
162: orgGroupRolePK, roleId, obc);
163: }
164:
165: public static java.util.List findWithDynamicQuery(
166: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
167: throws com.liferay.portal.SystemException {
168: return getPersistence().findWithDynamicQuery(queryInitializer);
169: }
170:
171: public static java.util.List findWithDynamicQuery(
172: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
173: int begin, int end)
174: throws com.liferay.portal.SystemException {
175: return getPersistence().findWithDynamicQuery(queryInitializer,
176: begin, end);
177: }
178:
179: public static java.util.List findAll()
180: throws com.liferay.portal.SystemException {
181: return getPersistence().findAll();
182: }
183:
184: public static java.util.List findAll(int begin, int end)
185: throws com.liferay.portal.SystemException {
186: return getPersistence().findAll(begin, end);
187: }
188:
189: public static java.util.List findAll(int begin, int end,
190: com.liferay.portal.kernel.util.OrderByComparator obc)
191: throws com.liferay.portal.SystemException {
192: return getPersistence().findAll(begin, end, obc);
193: }
194:
195: public static void removeByGroupId(long groupId)
196: throws com.liferay.portal.SystemException {
197: getPersistence().removeByGroupId(groupId);
198: }
199:
200: public static void removeByRoleId(long roleId)
201: throws com.liferay.portal.SystemException {
202: getPersistence().removeByRoleId(roleId);
203: }
204:
205: public static void removeAll()
206: throws com.liferay.portal.SystemException {
207: getPersistence().removeAll();
208: }
209:
210: public static int countByGroupId(long groupId)
211: throws com.liferay.portal.SystemException {
212: return getPersistence().countByGroupId(groupId);
213: }
214:
215: public static int countByRoleId(long roleId)
216: throws com.liferay.portal.SystemException {
217: return getPersistence().countByRoleId(roleId);
218: }
219:
220: public static int countAll()
221: throws com.liferay.portal.SystemException {
222: return getPersistence().countAll();
223: }
224:
225: public static OrgGroupRolePersistence getPersistence() {
226: return _getUtil()._persistence;
227: }
228:
229: public void setPersistence(OrgGroupRolePersistence persistence) {
230: _persistence = persistence;
231: }
232:
233: private static OrgGroupRoleUtil _getUtil() {
234: if (_util == null) {
235: _util = (OrgGroupRoleUtil) com.liferay.portal.kernel.bean.BeanLocatorUtil
236: .locate(_UTIL);
237: }
238:
239: return _util;
240: }
241:
242: private static final String _UTIL = OrgGroupRoleUtil.class
243: .getName();
244: private static OrgGroupRoleUtil _util;
245: private OrgGroupRolePersistence _persistence;
246: }
|