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