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="OrgGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface OrgGroupRolePersistence {
030: public com.liferay.portal.model.OrgGroupRole create(
031: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK);
032:
033: public com.liferay.portal.model.OrgGroupRole remove(
034: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
035: throws com.liferay.portal.SystemException,
036: com.liferay.portal.NoSuchOrgGroupRoleException;
037:
038: public com.liferay.portal.model.OrgGroupRole remove(
039: com.liferay.portal.model.OrgGroupRole orgGroupRole)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portal.model.OrgGroupRole update(
043: com.liferay.portal.model.OrgGroupRole orgGroupRole)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portal.model.OrgGroupRole update(
047: com.liferay.portal.model.OrgGroupRole orgGroupRole,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portal.model.OrgGroupRole updateImpl(
051: com.liferay.portal.model.OrgGroupRole orgGroupRole,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
055: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
056: throws com.liferay.portal.SystemException,
057: com.liferay.portal.NoSuchOrgGroupRoleException;
058:
059: public com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
060: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByGroupId(long groupId)
064: throws com.liferay.portal.SystemException;
065:
066: public java.util.List findByGroupId(long groupId, int begin, int end)
067: throws com.liferay.portal.SystemException;
068:
069: public java.util.List findByGroupId(long groupId, int begin,
070: int end,
071: com.liferay.portal.kernel.util.OrderByComparator obc)
072: throws com.liferay.portal.SystemException;
073:
074: public com.liferay.portal.model.OrgGroupRole findByGroupId_First(
075: long groupId,
076: com.liferay.portal.kernel.util.OrderByComparator obc)
077: throws com.liferay.portal.SystemException,
078: com.liferay.portal.NoSuchOrgGroupRoleException;
079:
080: public com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
081: long groupId,
082: com.liferay.portal.kernel.util.OrderByComparator obc)
083: throws com.liferay.portal.SystemException,
084: com.liferay.portal.NoSuchOrgGroupRoleException;
085:
086: public com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
087: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
088: long groupId,
089: com.liferay.portal.kernel.util.OrderByComparator obc)
090: throws com.liferay.portal.SystemException,
091: com.liferay.portal.NoSuchOrgGroupRoleException;
092:
093: public java.util.List findByRoleId(long roleId)
094: throws com.liferay.portal.SystemException;
095:
096: public java.util.List findByRoleId(long roleId, int begin, int end)
097: throws com.liferay.portal.SystemException;
098:
099: public java.util.List findByRoleId(long roleId, int begin, int end,
100: com.liferay.portal.kernel.util.OrderByComparator obc)
101: throws com.liferay.portal.SystemException;
102:
103: public com.liferay.portal.model.OrgGroupRole findByRoleId_First(
104: long roleId,
105: com.liferay.portal.kernel.util.OrderByComparator obc)
106: throws com.liferay.portal.SystemException,
107: com.liferay.portal.NoSuchOrgGroupRoleException;
108:
109: public com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
110: long roleId,
111: com.liferay.portal.kernel.util.OrderByComparator obc)
112: throws com.liferay.portal.SystemException,
113: com.liferay.portal.NoSuchOrgGroupRoleException;
114:
115: public com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
116: com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
117: long roleId,
118: com.liferay.portal.kernel.util.OrderByComparator obc)
119: throws com.liferay.portal.SystemException,
120: com.liferay.portal.NoSuchOrgGroupRoleException;
121:
122: public java.util.List findWithDynamicQuery(
123: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
124: throws com.liferay.portal.SystemException;
125:
126: public java.util.List findWithDynamicQuery(
127: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
128: int begin, int end)
129: throws com.liferay.portal.SystemException;
130:
131: public java.util.List findAll()
132: throws com.liferay.portal.SystemException;
133:
134: public java.util.List findAll(int begin, int end)
135: throws com.liferay.portal.SystemException;
136:
137: public java.util.List findAll(int begin, int end,
138: com.liferay.portal.kernel.util.OrderByComparator obc)
139: throws com.liferay.portal.SystemException;
140:
141: public void removeByGroupId(long groupId)
142: throws com.liferay.portal.SystemException;
143:
144: public void removeByRoleId(long roleId)
145: throws com.liferay.portal.SystemException;
146:
147: public void removeAll() throws com.liferay.portal.SystemException;
148:
149: public int countByGroupId(long groupId)
150: throws com.liferay.portal.SystemException;
151:
152: public int countByRoleId(long roleId)
153: throws com.liferay.portal.SystemException;
154:
155: public int countAll() throws com.liferay.portal.SystemException;
156: }
|