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.Team;
18  
19  /**
20   * <a href="TeamPersistence.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       TeamPersistenceImpl
29   * @see       TeamUtil
30   * @generated
31   */
32  public interface TeamPersistence extends BasePersistence<Team> {
33      public void cacheResult(com.liferay.portal.model.Team team);
34  
35      public void cacheResult(java.util.List<com.liferay.portal.model.Team> teams);
36  
37      public com.liferay.portal.model.Team create(long teamId);
38  
39      public com.liferay.portal.model.Team remove(long teamId)
40          throws com.liferay.portal.NoSuchTeamException,
41              com.liferay.portal.kernel.exception.SystemException;
42  
43      public com.liferay.portal.model.Team updateImpl(
44          com.liferay.portal.model.Team team, boolean merge)
45          throws com.liferay.portal.kernel.exception.SystemException;
46  
47      public com.liferay.portal.model.Team findByPrimaryKey(long teamId)
48          throws com.liferay.portal.NoSuchTeamException,
49              com.liferay.portal.kernel.exception.SystemException;
50  
51      public com.liferay.portal.model.Team fetchByPrimaryKey(long teamId)
52          throws com.liferay.portal.kernel.exception.SystemException;
53  
54      public java.util.List<com.liferay.portal.model.Team> findByGroupId(
55          long groupId)
56          throws com.liferay.portal.kernel.exception.SystemException;
57  
58      public java.util.List<com.liferay.portal.model.Team> findByGroupId(
59          long groupId, int start, int end)
60          throws com.liferay.portal.kernel.exception.SystemException;
61  
62      public java.util.List<com.liferay.portal.model.Team> findByGroupId(
63          long groupId, int start, int end,
64          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
65          throws com.liferay.portal.kernel.exception.SystemException;
66  
67      public com.liferay.portal.model.Team findByGroupId_First(long groupId,
68          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
69          throws com.liferay.portal.NoSuchTeamException,
70              com.liferay.portal.kernel.exception.SystemException;
71  
72      public com.liferay.portal.model.Team findByGroupId_Last(long groupId,
73          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
74          throws com.liferay.portal.NoSuchTeamException,
75              com.liferay.portal.kernel.exception.SystemException;
76  
77      public com.liferay.portal.model.Team[] findByGroupId_PrevAndNext(
78          long teamId, long groupId,
79          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
80          throws com.liferay.portal.NoSuchTeamException,
81              com.liferay.portal.kernel.exception.SystemException;
82  
83      public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
84          long groupId)
85          throws com.liferay.portal.kernel.exception.SystemException;
86  
87      public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
88          long groupId, int start, int end)
89          throws com.liferay.portal.kernel.exception.SystemException;
90  
91      public java.util.List<com.liferay.portal.model.Team> filterFindByGroupId(
92          long groupId, int start, int end,
93          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public com.liferay.portal.model.Team findByG_N(long groupId,
97          java.lang.String name)
98          throws com.liferay.portal.NoSuchTeamException,
99              com.liferay.portal.kernel.exception.SystemException;
100 
101     public com.liferay.portal.model.Team fetchByG_N(long groupId,
102         java.lang.String name)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portal.model.Team fetchByG_N(long groupId,
106         java.lang.String name, boolean retrieveFromCache)
107         throws com.liferay.portal.kernel.exception.SystemException;
108 
109     public java.util.List<com.liferay.portal.model.Team> findAll()
110         throws com.liferay.portal.kernel.exception.SystemException;
111 
112     public java.util.List<com.liferay.portal.model.Team> findAll(int start,
113         int end) throws com.liferay.portal.kernel.exception.SystemException;
114 
115     public java.util.List<com.liferay.portal.model.Team> findAll(int start,
116         int end,
117         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public void removeByGroupId(long groupId)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public void removeByG_N(long groupId, java.lang.String name)
124         throws com.liferay.portal.NoSuchTeamException,
125             com.liferay.portal.kernel.exception.SystemException;
126 
127     public void removeAll()
128         throws com.liferay.portal.kernel.exception.SystemException;
129 
130     public int countByGroupId(long groupId)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public int filterCountByGroupId(long groupId)
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public int countByG_N(long groupId, java.lang.String name)
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public int filterCountByG_N(long groupId, java.lang.String name)
140         throws com.liferay.portal.kernel.exception.SystemException;
141 
142     public int countAll()
143         throws com.liferay.portal.kernel.exception.SystemException;
144 
145     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
149         int start, int end)
150         throws com.liferay.portal.kernel.exception.SystemException;
151 
152     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
153         int start, int end,
154         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
155         throws com.liferay.portal.kernel.exception.SystemException;
156 
157     public int getUsersSize(long pk)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public boolean containsUser(long pk, long userPK)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public boolean containsUsers(long pk)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void addUser(long pk, long userPK)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public void addUser(long pk, com.liferay.portal.model.User user)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public void addUsers(long pk, long[] userPKs)
173         throws com.liferay.portal.kernel.exception.SystemException;
174 
175     public void addUsers(long pk,
176         java.util.List<com.liferay.portal.model.User> users)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public void clearUsers(long pk)
180         throws com.liferay.portal.kernel.exception.SystemException;
181 
182     public void removeUser(long pk, long userPK)
183         throws com.liferay.portal.kernel.exception.SystemException;
184 
185     public void removeUser(long pk, com.liferay.portal.model.User user)
186         throws com.liferay.portal.kernel.exception.SystemException;
187 
188     public void removeUsers(long pk, long[] userPKs)
189         throws com.liferay.portal.kernel.exception.SystemException;
190 
191     public void removeUsers(long pk,
192         java.util.List<com.liferay.portal.model.User> users)
193         throws com.liferay.portal.kernel.exception.SystemException;
194 
195     public void setUsers(long pk, long[] userPKs)
196         throws com.liferay.portal.kernel.exception.SystemException;
197 
198     public void setUsers(long pk,
199         java.util.List<com.liferay.portal.model.User> users)
200         throws com.liferay.portal.kernel.exception.SystemException;
201 }