1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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.kernel.exception.SystemException;
45  
46      public com.liferay.portal.model.OrgGroupRole updateImpl(
47          com.liferay.portal.model.OrgGroupRole orgGroupRole, boolean merge)
48          throws com.liferay.portal.kernel.exception.SystemException;
49  
50      public com.liferay.portal.model.OrgGroupRole findByPrimaryKey(
51          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
52          throws com.liferay.portal.NoSuchOrgGroupRoleException,
53              com.liferay.portal.kernel.exception.SystemException;
54  
55      public com.liferay.portal.model.OrgGroupRole fetchByPrimaryKey(
56          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK)
57          throws com.liferay.portal.kernel.exception.SystemException;
58  
59      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
60          long groupId)
61          throws com.liferay.portal.kernel.exception.SystemException;
62  
63      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
64          long groupId, int start, int end)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByGroupId(
68          long groupId, int start, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.OrgGroupRole findByGroupId_First(
73          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
74          throws com.liferay.portal.NoSuchOrgGroupRoleException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.OrgGroupRole findByGroupId_Last(
78          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
79          throws com.liferay.portal.NoSuchOrgGroupRoleException,
80              com.liferay.portal.kernel.exception.SystemException;
81  
82      public com.liferay.portal.model.OrgGroupRole[] findByGroupId_PrevAndNext(
83          com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
84          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.NoSuchOrgGroupRoleException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
89          long roleId) throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
92          long roleId, int start, int end)
93          throws com.liferay.portal.kernel.exception.SystemException;
94  
95      public java.util.List<com.liferay.portal.model.OrgGroupRole> findByRoleId(
96          long roleId, int start, int end,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public com.liferay.portal.model.OrgGroupRole findByRoleId_First(
101         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portal.NoSuchOrgGroupRoleException,
103             com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portal.model.OrgGroupRole findByRoleId_Last(
106         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portal.NoSuchOrgGroupRoleException,
108             com.liferay.portal.kernel.exception.SystemException;
109 
110     public com.liferay.portal.model.OrgGroupRole[] findByRoleId_PrevAndNext(
111         com.liferay.portal.service.persistence.OrgGroupRolePK orgGroupRolePK,
112         long roleId, com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portal.NoSuchOrgGroupRoleException,
114             com.liferay.portal.kernel.exception.SystemException;
115 
116     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll()
117         throws com.liferay.portal.kernel.exception.SystemException;
118 
119     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
120         int start, int end)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public java.util.List<com.liferay.portal.model.OrgGroupRole> findAll(
124         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
125         throws com.liferay.portal.kernel.exception.SystemException;
126 
127     public void removeByGroupId(long groupId)
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public void removeByRoleId(long roleId)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public void removeAll()
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public int countByGroupId(long groupId)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public int countByRoleId(long roleId)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public int countAll()
143         throws com.liferay.portal.kernel.exception.SystemException;
144 }