1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tasks.service.persistence;
24  
25  import com.liferay.portal.service.persistence.BasePersistence;
26  
27  import com.liferay.portlet.tasks.model.TasksProposal;
28  
29  /**
30   * <a href="TasksProposalPersistence.java.html"><b><i>View Source</i></b></a>
31   *
32   * <p>
33   * ServiceBuilder generated this class. Modifications in this class will be
34   * overwritten the next time is generated.
35   * </p>
36   *
37   * @author    Brian Wing Shun Chan
38   * @see       TasksProposalPersistenceImpl
39   * @see       TasksProposalUtil
40   * @generated
41   */
42  public interface TasksProposalPersistence extends BasePersistence<TasksProposal> {
43      public void cacheResult(
44          com.liferay.portlet.tasks.model.TasksProposal tasksProposal);
45  
46      public void cacheResult(
47          java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals);
48  
49      public com.liferay.portlet.tasks.model.TasksProposal create(long proposalId);
50  
51      public com.liferay.portlet.tasks.model.TasksProposal remove(long proposalId)
52          throws com.liferay.portal.SystemException,
53              com.liferay.portlet.tasks.NoSuchProposalException;
54  
55      /**
56       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
57       */
58      public com.liferay.portlet.tasks.model.TasksProposal update(
59          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
60          throws com.liferay.portal.SystemException;
61  
62      public com.liferay.portlet.tasks.model.TasksProposal updateImpl(
63          com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
64          boolean merge) throws com.liferay.portal.SystemException;
65  
66      public com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
67          long proposalId)
68          throws com.liferay.portal.SystemException,
69              com.liferay.portlet.tasks.NoSuchProposalException;
70  
71      public com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
72          long proposalId) throws com.liferay.portal.SystemException;
73  
74      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
75          long groupId) throws com.liferay.portal.SystemException;
76  
77      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
78          long groupId, int start, int end)
79          throws com.liferay.portal.SystemException;
80  
81      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
82          long groupId, int start, int end,
83          com.liferay.portal.kernel.util.OrderByComparator obc)
84          throws com.liferay.portal.SystemException;
85  
86      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
87          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
88          throws com.liferay.portal.SystemException,
89              com.liferay.portlet.tasks.NoSuchProposalException;
90  
91      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
92          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.tasks.NoSuchProposalException;
95  
96      public com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
97          long proposalId, long groupId,
98          com.liferay.portal.kernel.util.OrderByComparator obc)
99          throws com.liferay.portal.SystemException,
100             com.liferay.portlet.tasks.NoSuchProposalException;
101 
102     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
103         long groupId, long userId) throws com.liferay.portal.SystemException;
104 
105     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
106         long groupId, long userId, int start, int end)
107         throws com.liferay.portal.SystemException;
108 
109     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
110         long groupId, long userId, int start, int end,
111         com.liferay.portal.kernel.util.OrderByComparator obc)
112         throws com.liferay.portal.SystemException;
113 
114     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
115         long groupId, long userId,
116         com.liferay.portal.kernel.util.OrderByComparator obc)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tasks.NoSuchProposalException;
119 
120     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
121         long groupId, long userId,
122         com.liferay.portal.kernel.util.OrderByComparator obc)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tasks.NoSuchProposalException;
125 
126     public com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
127         long proposalId, long groupId, long userId,
128         com.liferay.portal.kernel.util.OrderByComparator obc)
129         throws com.liferay.portal.SystemException,
130             com.liferay.portlet.tasks.NoSuchProposalException;
131 
132     public com.liferay.portlet.tasks.model.TasksProposal findByC_C(
133         long classNameId, java.lang.String classPK)
134         throws com.liferay.portal.SystemException,
135             com.liferay.portlet.tasks.NoSuchProposalException;
136 
137     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
138         long classNameId, java.lang.String classPK)
139         throws com.liferay.portal.SystemException;
140 
141     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
142         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
143         throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
146         throws com.liferay.portal.SystemException;
147 
148     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
149         int start, int end) throws com.liferay.portal.SystemException;
150 
151     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
152         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
153         throws com.liferay.portal.SystemException;
154 
155     public void removeByGroupId(long groupId)
156         throws com.liferay.portal.SystemException;
157 
158     public void removeByG_U(long groupId, long userId)
159         throws com.liferay.portal.SystemException;
160 
161     public void removeByC_C(long classNameId, java.lang.String classPK)
162         throws com.liferay.portal.SystemException,
163             com.liferay.portlet.tasks.NoSuchProposalException;
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 countByG_U(long groupId, long userId)
171         throws com.liferay.portal.SystemException;
172 
173     public int countByC_C(long classNameId, java.lang.String classPK)
174         throws com.liferay.portal.SystemException;
175 
176     public int countAll() throws com.liferay.portal.SystemException;
177 }