001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service.persistence;
016    
017    import com.liferay.portal.model.UserGroup;
018    
019    /**
020     * @author    Brian Wing Shun Chan
021     * @see       UserGroupPersistenceImpl
022     * @see       UserGroupUtil
023     * @generated
024     */
025    public interface UserGroupPersistence extends BasePersistence<UserGroup> {
026            public void cacheResult(com.liferay.portal.model.UserGroup userGroup);
027    
028            public void cacheResult(
029                    java.util.List<com.liferay.portal.model.UserGroup> userGroups);
030    
031            public com.liferay.portal.model.UserGroup create(long userGroupId);
032    
033            public com.liferay.portal.model.UserGroup remove(long userGroupId)
034                    throws com.liferay.portal.NoSuchUserGroupException,
035                            com.liferay.portal.kernel.exception.SystemException;
036    
037            public com.liferay.portal.model.UserGroup updateImpl(
038                    com.liferay.portal.model.UserGroup userGroup, boolean merge)
039                    throws com.liferay.portal.kernel.exception.SystemException;
040    
041            public com.liferay.portal.model.UserGroup findByPrimaryKey(long userGroupId)
042                    throws com.liferay.portal.NoSuchUserGroupException,
043                            com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portal.model.UserGroup fetchByPrimaryKey(
046                    long userGroupId)
047                    throws com.liferay.portal.kernel.exception.SystemException;
048    
049            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
050                    long companyId)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
054                    long companyId, int start, int end)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portal.model.UserGroup> findByCompanyId(
058                    long companyId, int start, int end,
059                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public com.liferay.portal.model.UserGroup findByCompanyId_First(
063                    long companyId,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.NoSuchUserGroupException,
066                            com.liferay.portal.kernel.exception.SystemException;
067    
068            public com.liferay.portal.model.UserGroup findByCompanyId_Last(
069                    long companyId,
070                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
071                    throws com.liferay.portal.NoSuchUserGroupException,
072                            com.liferay.portal.kernel.exception.SystemException;
073    
074            public com.liferay.portal.model.UserGroup[] findByCompanyId_PrevAndNext(
075                    long userGroupId, long companyId,
076                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
077                    throws com.liferay.portal.NoSuchUserGroupException,
078                            com.liferay.portal.kernel.exception.SystemException;
079    
080            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
081                    long companyId, long parentUserGroupId)
082                    throws com.liferay.portal.kernel.exception.SystemException;
083    
084            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
085                    long companyId, long parentUserGroupId, int start, int end)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public java.util.List<com.liferay.portal.model.UserGroup> findByC_P(
089                    long companyId, long parentUserGroupId, int start, int end,
090                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
091                    throws com.liferay.portal.kernel.exception.SystemException;
092    
093            public com.liferay.portal.model.UserGroup findByC_P_First(long companyId,
094                    long parentUserGroupId,
095                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
096                    throws com.liferay.portal.NoSuchUserGroupException,
097                            com.liferay.portal.kernel.exception.SystemException;
098    
099            public com.liferay.portal.model.UserGroup findByC_P_Last(long companyId,
100                    long parentUserGroupId,
101                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
102                    throws com.liferay.portal.NoSuchUserGroupException,
103                            com.liferay.portal.kernel.exception.SystemException;
104    
105            public com.liferay.portal.model.UserGroup[] findByC_P_PrevAndNext(
106                    long userGroupId, long companyId, long parentUserGroupId,
107                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108                    throws com.liferay.portal.NoSuchUserGroupException,
109                            com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portal.model.UserGroup findByC_N(long companyId,
112                    java.lang.String name)
113                    throws com.liferay.portal.NoSuchUserGroupException,
114                            com.liferay.portal.kernel.exception.SystemException;
115    
116            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
117                    java.lang.String name)
118                    throws com.liferay.portal.kernel.exception.SystemException;
119    
120            public com.liferay.portal.model.UserGroup fetchByC_N(long companyId,
121                    java.lang.String name, boolean retrieveFromCache)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public java.util.List<com.liferay.portal.model.UserGroup> findAll()
125                    throws com.liferay.portal.kernel.exception.SystemException;
126    
127            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
128                    int start, int end)
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portal.model.UserGroup> findAll(
132                    int start, int end,
133                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
134                    throws com.liferay.portal.kernel.exception.SystemException;
135    
136            public void removeByCompanyId(long companyId)
137                    throws com.liferay.portal.kernel.exception.SystemException;
138    
139            public void removeByC_P(long companyId, long parentUserGroupId)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public void removeByC_N(long companyId, java.lang.String name)
143                    throws com.liferay.portal.NoSuchUserGroupException,
144                            com.liferay.portal.kernel.exception.SystemException;
145    
146            public void removeAll()
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public int countByCompanyId(long companyId)
150                    throws com.liferay.portal.kernel.exception.SystemException;
151    
152            public int countByC_P(long companyId, long parentUserGroupId)
153                    throws com.liferay.portal.kernel.exception.SystemException;
154    
155            public int countByC_N(long companyId, java.lang.String name)
156                    throws com.liferay.portal.kernel.exception.SystemException;
157    
158            public int countAll()
159                    throws com.liferay.portal.kernel.exception.SystemException;
160    
161            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
165                    int start, int end)
166                    throws com.liferay.portal.kernel.exception.SystemException;
167    
168            public java.util.List<com.liferay.portal.model.Group> getGroups(long pk,
169                    int start, int end,
170                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public int getGroupsSize(long pk)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public boolean containsGroup(long pk, long groupPK)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public boolean containsGroups(long pk)
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    
182            public void addGroup(long pk, long groupPK)
183                    throws com.liferay.portal.kernel.exception.SystemException;
184    
185            public void addGroup(long pk, com.liferay.portal.model.Group group)
186                    throws com.liferay.portal.kernel.exception.SystemException;
187    
188            public void addGroups(long pk, long[] groupPKs)
189                    throws com.liferay.portal.kernel.exception.SystemException;
190    
191            public void addGroups(long pk,
192                    java.util.List<com.liferay.portal.model.Group> groups)
193                    throws com.liferay.portal.kernel.exception.SystemException;
194    
195            public void clearGroups(long pk)
196                    throws com.liferay.portal.kernel.exception.SystemException;
197    
198            public void removeGroup(long pk, long groupPK)
199                    throws com.liferay.portal.kernel.exception.SystemException;
200    
201            public void removeGroup(long pk, com.liferay.portal.model.Group group)
202                    throws com.liferay.portal.kernel.exception.SystemException;
203    
204            public void removeGroups(long pk, long[] groupPKs)
205                    throws com.liferay.portal.kernel.exception.SystemException;
206    
207            public void removeGroups(long pk,
208                    java.util.List<com.liferay.portal.model.Group> groups)
209                    throws com.liferay.portal.kernel.exception.SystemException;
210    
211            public void setGroups(long pk, long[] groupPKs)
212                    throws com.liferay.portal.kernel.exception.SystemException;
213    
214            public void setGroups(long pk,
215                    java.util.List<com.liferay.portal.model.Group> groups)
216                    throws com.liferay.portal.kernel.exception.SystemException;
217    
218            public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
219                    throws com.liferay.portal.kernel.exception.SystemException;
220    
221            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
222                    int start, int end)
223                    throws com.liferay.portal.kernel.exception.SystemException;
224    
225            public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
226                    int start, int end,
227                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
228                    throws com.liferay.portal.kernel.exception.SystemException;
229    
230            public int getUsersSize(long pk)
231                    throws com.liferay.portal.kernel.exception.SystemException;
232    
233            public boolean containsUser(long pk, long userPK)
234                    throws com.liferay.portal.kernel.exception.SystemException;
235    
236            public boolean containsUsers(long pk)
237                    throws com.liferay.portal.kernel.exception.SystemException;
238    
239            public void addUser(long pk, long userPK)
240                    throws com.liferay.portal.kernel.exception.SystemException;
241    
242            public void addUser(long pk, com.liferay.portal.model.User user)
243                    throws com.liferay.portal.kernel.exception.SystemException;
244    
245            public void addUsers(long pk, long[] userPKs)
246                    throws com.liferay.portal.kernel.exception.SystemException;
247    
248            public void addUsers(long pk,
249                    java.util.List<com.liferay.portal.model.User> users)
250                    throws com.liferay.portal.kernel.exception.SystemException;
251    
252            public void clearUsers(long pk)
253                    throws com.liferay.portal.kernel.exception.SystemException;
254    
255            public void removeUser(long pk, long userPK)
256                    throws com.liferay.portal.kernel.exception.SystemException;
257    
258            public void removeUser(long pk, com.liferay.portal.model.User user)
259                    throws com.liferay.portal.kernel.exception.SystemException;
260    
261            public void removeUsers(long pk, long[] userPKs)
262                    throws com.liferay.portal.kernel.exception.SystemException;
263    
264            public void removeUsers(long pk,
265                    java.util.List<com.liferay.portal.model.User> users)
266                    throws com.liferay.portal.kernel.exception.SystemException;
267    
268            public void setUsers(long pk, long[] userPKs)
269                    throws com.liferay.portal.kernel.exception.SystemException;
270    
271            public void setUsers(long pk,
272                    java.util.List<com.liferay.portal.model.User> users)
273                    throws com.liferay.portal.kernel.exception.SystemException;
274    }