1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    *
5    *
6    *
7    * The contents of this file are subject to the terms of the Liferay Enterprise
8    * Subscription License ("License"). You may not use this file except in
9    * compliance with the License. You can obtain a copy of the License by
10   * contacting Liferay, Inc. See the License for the specific language governing
11   * permissions and limitations under the License, including but not limited to
12   * distribution rights of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.service.persistence;
24  
25  
26  /**
27   * <a href="OrgGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
28   *
29   * <p>
30   * ServiceBuilder generated this class. Modifications in this class will be
31   * overwritten the next time is generated.
32   * </p>
33   *
34   * @author    Brian Wing Shun Chan
35   * @see       OrgGroupRolePersistenceImpl
36   * @see       OrgGroupRoleUtil
37   * @generated
38   */
39  public interface OrgGroupRolePersistence extends BasePersistence {
40      public void cacheResult(com.liferay.portal.model.OrgGroupRole orgGroupRole);
41  
42      public void cacheResult(
43          java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles);
44  
45      public void clearCache();
46  
47      public com.liferay.portal.model.OrgGroupRole create(
48          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK);
49  
50      public com.liferay.portal.model.OrgGroupRole remove(
51          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
52          throws com.liferay.portal.NoSuchOrgGroupRoleException,
53              com.liferay.portal.SystemException;
54  
55      public com.liferay.portal.model.OrgGroupRole remove(
56          com.liferay.portal.model.OrgGroupRole orgGroupRole)
57          throws com.liferay.portal.SystemException;
58  
59      /**
60       * @deprecated Use {@link #update(OrgGroupRole, boolean merge)}.
61       */
62      public com.liferay.portal.model.OrgGroupRole update(
63          com.liferay.portal.model.OrgGroupRole orgGroupRole)
64          throws com.liferay.portal.SystemException;
65  
66      /**
67       * Add, update, or merge, the entity. This method also calls the model
68       * listeners to trigger the proper events associated with adding, deleting,
69       * or updating an entity.
70       *
71       * @param  orgGroupRole the entity to add, update, or merge
72       * @param  merge boolean value for whether to merge the entity. The default
73       *         value is false. Setting merge to true is more expensive and
74       *         should only be true when orgGroupRole is transient. See
75       *         LEP-5473 for a detailed discussion of this method.
76       * @return the entity that was added, updated, or merged
77       */
78      public com.liferay.portal.model.OrgGroupRole update(
79          com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
80          throws com.liferay.portal.SystemException;
81  
82      public com.liferay.portal.model.OrgGroupRole updateImpl(
83          com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
87          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
88          throws com.liferay.portal.NoSuchOrgGroupRoleException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
92          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
93          throws com.liferay.portal.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
96          long groupId) throws com.liferay.portal.SystemException;
97  
98      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
99          long groupId, int start, int end)
100         throws com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
103         long groupId, int start, int end,
104         com.liferay.portal.kernel.util.OrderByComparator obc)
105         throws com.liferay.portal.SystemException;
106 
107     public com.liferay.portal.model.OrgGroupRole findByGroupId_First(
108         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.NoSuchOrgGroupRoleException,
110             com.liferay.portal.SystemException;
111 
112     public com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
113         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
114         throws com.liferay.portal.NoSuchOrgGroupRoleException,
115             com.liferay.portal.SystemException;
116 
117     public com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
118         com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
119         long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
120         throws com.liferay.portal.NoSuchOrgGroupRoleException,
121             com.liferay.portal.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
124         long roleId) throws com.liferay.portal.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
127         long roleId, int start, int end)
128         throws com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
131         long roleId, int start, int end,
132         com.liferay.portal.kernel.util.OrderByComparator obc)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portal.model.OrgGroupRole findByRoleId_First(
136         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
137         throws com.liferay.portal.NoSuchOrgGroupRoleException,
138             com.liferay.portal.SystemException;
139 
140     public com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
141         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
142         throws com.liferay.portal.NoSuchOrgGroupRoleException,
143             com.liferay.portal.SystemException;
144 
145     public com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
146         com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
147         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
148         throws com.liferay.portal.NoSuchOrgGroupRoleException,
149             com.liferay.portal.SystemException;
150 
151     public java.util.List<Object> findWithDynamicQuery(
152         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153         throws com.liferay.portal.SystemException;
154 
155     public java.util.List<Object> findWithDynamicQuery(
156         com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
157         int end) throws com.liferay.portal.SystemException;
158 
159     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
160         throws com.liferay.portal.SystemException;
161 
162     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
163         int start, int end) throws com.liferay.portal.SystemException;
164 
165     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
166         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
167         throws com.liferay.portal.SystemException;
168 
169     public void removeByGroupId(long groupId)
170         throws com.liferay.portal.SystemException;
171 
172     public void removeByRoleId(long roleId)
173         throws com.liferay.portal.SystemException;
174 
175     public void removeAll() throws com.liferay.portal.SystemException;
176 
177     public int countByGroupId(long groupId)
178         throws com.liferay.portal.SystemException;
179 
180     public int countByRoleId(long roleId)
181         throws com.liferay.portal.SystemException;
182 
183     public int countAll() throws com.liferay.portal.SystemException;
184 }