1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.service.persistence;
16  
17  import com.liferay.portal.model.OrgGroupRole;
18  
19  /**
20   * <a href="OrgGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
21   *
22   * <p>
23   * ServiceBuilder generated this class. Modifications in this class will be
24   * overwritten the next time is generated.
25   * </p>
26   *
27   * @author    Brian Wing Shun Chan
28   * @see       OrgGroupRolePersistenceImpl
29   * @see       OrgGroupRoleUtil
30   * @generated
31   */
32  public interface OrgGroupRolePersistence extends BasePersistence<OrgGroupRole> {
33      public void cacheResult(com.liferay.portal.model.OrgGroupRole orgGroupRole);
34  
35      public void cacheResult(
36          java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles);
37  
38      public com.liferay.portal.model.OrgGroupRole create(
39          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK);
40  
41      public com.liferay.portal.model.OrgGroupRole remove(
42          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
43          throws com.liferay.portal.NoSuchOrgGroupRoleException,
44              com.liferay.portal.SystemException;
45  
46      /**
47       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
48       */
49      public com.liferay.portal.model.OrgGroupRole update(
50          com.liferay.portal.model.OrgGroupRole orgGroupRole)
51          throws com.liferay.portal.SystemException;
52  
53      public com.liferay.portal.model.OrgGroupRole updateImpl(
54          com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
55          throws com.liferay.portal.SystemException;
56  
57      public com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
58          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
59          throws com.liferay.portal.NoSuchOrgGroupRoleException,
60              com.liferay.portal.SystemException;
61  
62      public com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
63          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
64          throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
67          long groupId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
70          long groupId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
74          long groupId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portal.model.OrgGroupRole findByGroupId_First(
79          long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.NoSuchOrgGroupRoleException,
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
85          long groupId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.NoSuchOrgGroupRoleException,
88              com.liferay.portal.SystemException;
89  
90      public com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
91          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
92          long groupId,
93          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94          throws com.liferay.portal.NoSuchOrgGroupRoleException,
95              com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
98          long roleId) throws com.liferay.portal.SystemException;
99  
100     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
101         long roleId, int start, int end)
102         throws com.liferay.portal.SystemException;
103 
104     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
105         long roleId, int start, int end,
106         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
107         throws com.liferay.portal.SystemException;
108 
109     public com.liferay.portal.model.OrgGroupRole findByRoleId_First(
110         long roleId,
111         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112         throws com.liferay.portal.NoSuchOrgGroupRoleException,
113             com.liferay.portal.SystemException;
114 
115     public com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
116         long roleId,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.NoSuchOrgGroupRoleException,
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
122         com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
123         long roleId,
124         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
125         throws com.liferay.portal.NoSuchOrgGroupRoleException,
126             com.liferay.portal.SystemException;
127 
128     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
129         throws com.liferay.portal.SystemException;
130 
131     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
132         int start, int end) throws com.liferay.portal.SystemException;
133 
134     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
135         int start, int end,
136         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137         throws com.liferay.portal.SystemException;
138 
139     public void removeByGroupId(long groupId)
140         throws com.liferay.portal.SystemException;
141 
142     public void removeByRoleId(long roleId)
143         throws com.liferay.portal.SystemException;
144 
145     public void removeAll() throws com.liferay.portal.SystemException;
146 
147     public int countByGroupId(long groupId)
148         throws com.liferay.portal.SystemException;
149 
150     public int countByRoleId(long roleId)
151         throws com.liferay.portal.SystemException;
152 
153     public int countAll() throws com.liferay.portal.SystemException;
154 }