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 com.liferay.portal.model.Team findByG_N(long groupId,
84          java.lang.String name)
85          throws com.liferay.portal.NoSuchTeamException,
86              com.liferay.portal.kernel.exception.SystemException;
87  
88      public com.liferay.portal.model.Team fetchByG_N(long groupId,
89          java.lang.String name)
90          throws com.liferay.portal.kernel.exception.SystemException;
91  
92      public com.liferay.portal.model.Team fetchByG_N(long groupId,
93          java.lang.String name, boolean retrieveFromCache)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portal.model.Team> findAll()
97          throws com.liferay.portal.kernel.exception.SystemException;
98  
99      public java.util.List<com.liferay.portal.model.Team> findAll(int start,
100         int end) throws com.liferay.portal.kernel.exception.SystemException;
101 
102     public java.util.List<com.liferay.portal.model.Team> findAll(int start,
103         int end,
104         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
105         throws com.liferay.portal.kernel.exception.SystemException;
106 
107     public void removeByGroupId(long groupId)
108         throws com.liferay.portal.kernel.exception.SystemException;
109 
110     public void removeByG_N(long groupId, java.lang.String name)
111         throws com.liferay.portal.NoSuchTeamException,
112             com.liferay.portal.kernel.exception.SystemException;
113 
114     public void removeAll()
115         throws com.liferay.portal.kernel.exception.SystemException;
116 
117     public int countByGroupId(long groupId)
118         throws com.liferay.portal.kernel.exception.SystemException;
119 
120     public int countByG_N(long groupId, java.lang.String name)
121         throws com.liferay.portal.kernel.exception.SystemException;
122 
123     public int countAll()
124         throws com.liferay.portal.kernel.exception.SystemException;
125 
126     public java.util.List<com.liferay.portal.model.User> getUsers(long pk)
127         throws com.liferay.portal.kernel.exception.SystemException;
128 
129     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
130         int start, int end)
131         throws com.liferay.portal.kernel.exception.SystemException;
132 
133     public java.util.List<com.liferay.portal.model.User> getUsers(long pk,
134         int start, int end,
135         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
136         throws com.liferay.portal.kernel.exception.SystemException;
137 
138     public int getUsersSize(long pk)
139         throws com.liferay.portal.kernel.exception.SystemException;
140 
141     public boolean containsUser(long pk, long userPK)
142         throws com.liferay.portal.kernel.exception.SystemException;
143 
144     public boolean containsUsers(long pk)
145         throws com.liferay.portal.kernel.exception.SystemException;
146 
147     public void addUser(long pk, long userPK)
148         throws com.liferay.portal.kernel.exception.SystemException;
149 
150     public void addUser(long pk, com.liferay.portal.model.User user)
151         throws com.liferay.portal.kernel.exception.SystemException;
152 
153     public void addUsers(long pk, long[] userPKs)
154         throws com.liferay.portal.kernel.exception.SystemException;
155 
156     public void addUsers(long pk,
157         java.util.List<com.liferay.portal.model.User> users)
158         throws com.liferay.portal.kernel.exception.SystemException;
159 
160     public void clearUsers(long pk)
161         throws com.liferay.portal.kernel.exception.SystemException;
162 
163     public void removeUser(long pk, long userPK)
164         throws com.liferay.portal.kernel.exception.SystemException;
165 
166     public void removeUser(long pk, com.liferay.portal.model.User user)
167         throws com.liferay.portal.kernel.exception.SystemException;
168 
169     public void removeUsers(long pk, long[] userPKs)
170         throws com.liferay.portal.kernel.exception.SystemException;
171 
172     public void removeUsers(long pk,
173         java.util.List<com.liferay.portal.model.User> users)
174         throws com.liferay.portal.kernel.exception.SystemException;
175 
176     public void setUsers(long pk, long[] userPKs)
177         throws com.liferay.portal.kernel.exception.SystemException;
178 
179     public void setUsers(long pk,
180         java.util.List<com.liferay.portal.model.User> users)
181         throws com.liferay.portal.kernel.exception.SystemException;
182 }