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  import com.liferay.portal.model.OrgGroupRole;
26  
27  /**
28   * <a href="OrgGroupRolePersistence.java.html"><b><i>View Source</i></b></a>
29   *
30   * <p>
31   * ServiceBuilder generated this class. Modifications in this class will be
32   * overwritten the next time is generated.
33   * </p>
34   *
35   * @author    Brian Wing Shun Chan
36   * @see       OrgGroupRolePersistenceImpl
37   * @see       OrgGroupRoleUtil
38   * @generated
39   */
40  public interface OrgGroupRolePersistence extends BasePersistence<OrgGroupRole> {
41      public void cacheResult(com.liferay.portal.model.OrgGroupRole orgGroupRole);
42  
43      public void cacheResult(
44          java.util.List<com.liferay.portal.model.OrgGroupRole> orgGroupRoles);
45  
46      public com.liferay.portal.model.OrgGroupRole create(
47          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK);
48  
49      public com.liferay.portal.model.OrgGroupRole remove(
50          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
51          throws com.liferay.portal.NoSuchOrgGroupRoleException,
52              com.liferay.portal.SystemException;
53  
54      /**
55       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
56       */
57      public com.liferay.portal.model.OrgGroupRole update(
58          com.liferay.portal.model.OrgGroupRole orgGroupRole)
59          throws com.liferay.portal.SystemException;
60  
61      public com.liferay.portal.model.OrgGroupRole updateImpl(
62          com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
63          throws com.liferay.portal.SystemException;
64  
65      public com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
66          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
67          throws com.liferay.portal.NoSuchOrgGroupRoleException,
68              com.liferay.portal.SystemException;
69  
70      public com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
71          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
72          throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
75          long groupId) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
78          long groupId, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
82          long groupId, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portal.model.OrgGroupRole findByGroupId_First(
87          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.NoSuchOrgGroupRoleException,
89              com.liferay.portal.SystemException;
90  
91      public com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
92          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.NoSuchOrgGroupRoleException,
94              com.liferay.portal.SystemException;
95  
96      public com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
97          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
98          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.NoSuchOrgGroupRoleException,
100             com.liferay.portal.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
103         long roleId) throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
106         long roleId, int start, int end)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
110         long roleId, int start, int end,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portal.model.OrgGroupRole findByRoleId_First(
115         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
116         throws com.liferay.portal.NoSuchOrgGroupRoleException,
117             com.liferay.portal.SystemException;
118 
119     public com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
120         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.NoSuchOrgGroupRoleException,
122             com.liferay.portal.SystemException;
123 
124     public com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
125         com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
126         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
127         throws com.liferay.portal.NoSuchOrgGroupRoleException,
128             com.liferay.portal.SystemException;
129 
130     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
131         throws com.liferay.portal.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
134         int start, int end) throws com.liferay.portal.SystemException;
135 
136     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
137         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
138         throws com.liferay.portal.SystemException;
139 
140     public void removeByGroupId(long groupId)
141         throws com.liferay.portal.SystemException;
142 
143     public void removeByRoleId(long roleId)
144         throws com.liferay.portal.SystemException;
145 
146     public void removeAll() throws com.liferay.portal.SystemException;
147 
148     public int countByGroupId(long groupId)
149         throws com.liferay.portal.SystemException;
150 
151     public int countByRoleId(long roleId)
152         throws com.liferay.portal.SystemException;
153 
154     public int countAll() throws com.liferay.portal.SystemException;
155 }