1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portlet.tasks.service.persistence;
16  
17  import com.liferay.portal.service.persistence.BasePersistence;
18  
19  import com.liferay.portlet.tasks.model.TasksProposal;
20  
21  /**
22   * <a href="TasksProposalPersistence.java.html"><b><i>View Source</i></b></a>
23   *
24   * <p>
25   * ServiceBuilder generated this class. Modifications in this class will be
26   * overwritten the next time is generated.
27   * </p>
28   *
29   * @author    Brian Wing Shun Chan
30   * @see       TasksProposalPersistenceImpl
31   * @see       TasksProposalUtil
32   * @generated
33   */
34  public interface TasksProposalPersistence extends BasePersistence<TasksProposal> {
35      public void cacheResult(
36          com.liferay.portlet.tasks.model.TasksProposal tasksProposal);
37  
38      public void cacheResult(
39          java.util.List<com.liferay.portlet.tasks.model.TasksProposal> tasksProposals);
40  
41      public com.liferay.portlet.tasks.model.TasksProposal create(long proposalId);
42  
43      public com.liferay.portlet.tasks.model.TasksProposal remove(long proposalId)
44          throws com.liferay.portal.SystemException,
45              com.liferay.portlet.tasks.NoSuchProposalException;
46  
47      /**
48       * @deprecated Use {@link BasePersistence#update(com.liferay.portal.model.BaseModel, boolean)}.
49       */
50      public com.liferay.portlet.tasks.model.TasksProposal update(
51          com.liferay.portlet.tasks.model.TasksProposal tasksProposal)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.tasks.model.TasksProposal updateImpl(
55          com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
56          boolean merge) throws com.liferay.portal.SystemException;
57  
58      public com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
59          long proposalId)
60          throws com.liferay.portal.SystemException,
61              com.liferay.portlet.tasks.NoSuchProposalException;
62  
63      public com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
64          long proposalId) throws com.liferay.portal.SystemException;
65  
66      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
67          long groupId) throws com.liferay.portal.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
70          long groupId, int start, int end)
71          throws com.liferay.portal.SystemException;
72  
73      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
74          long groupId, int start, int end,
75          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
79          long groupId,
80          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
81          throws com.liferay.portal.SystemException,
82              com.liferay.portlet.tasks.NoSuchProposalException;
83  
84      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
85          long groupId,
86          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
87          throws com.liferay.portal.SystemException,
88              com.liferay.portlet.tasks.NoSuchProposalException;
89  
90      public com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
91          long proposalId, long groupId,
92          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
93          throws com.liferay.portal.SystemException,
94              com.liferay.portlet.tasks.NoSuchProposalException;
95  
96      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
97          long groupId, long userId) throws com.liferay.portal.SystemException;
98  
99      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
100         long groupId, long userId, int start, int end)
101         throws com.liferay.portal.SystemException;
102 
103     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
104         long groupId, long userId, int start, int end,
105         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106         throws com.liferay.portal.SystemException;
107 
108     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
109         long groupId, long userId,
110         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
111         throws com.liferay.portal.SystemException,
112             com.liferay.portlet.tasks.NoSuchProposalException;
113 
114     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
115         long groupId, long userId,
116         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
117         throws com.liferay.portal.SystemException,
118             com.liferay.portlet.tasks.NoSuchProposalException;
119 
120     public com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
121         long proposalId, long groupId, long userId,
122         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
123         throws com.liferay.portal.SystemException,
124             com.liferay.portlet.tasks.NoSuchProposalException;
125 
126     public com.liferay.portlet.tasks.model.TasksProposal findByC_C(
127         long classNameId, java.lang.String classPK)
128         throws com.liferay.portal.SystemException,
129             com.liferay.portlet.tasks.NoSuchProposalException;
130 
131     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
132         long classNameId, java.lang.String classPK)
133         throws com.liferay.portal.SystemException;
134 
135     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
136         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
137         throws com.liferay.portal.SystemException;
138 
139     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
140         throws com.liferay.portal.SystemException;
141 
142     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
143         int start, int end) throws com.liferay.portal.SystemException;
144 
145     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
146         int start, int end,
147         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
148         throws com.liferay.portal.SystemException;
149 
150     public void removeByGroupId(long groupId)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByG_U(long groupId, long userId)
154         throws com.liferay.portal.SystemException;
155 
156     public void removeByC_C(long classNameId, java.lang.String classPK)
157         throws com.liferay.portal.SystemException,
158             com.liferay.portlet.tasks.NoSuchProposalException;
159 
160     public void removeAll() throws com.liferay.portal.SystemException;
161 
162     public int countByGroupId(long groupId)
163         throws com.liferay.portal.SystemException;
164 
165     public int countByG_U(long groupId, long userId)
166         throws com.liferay.portal.SystemException;
167 
168     public int countByC_C(long classNameId, java.lang.String classPK)
169         throws com.liferay.portal.SystemException;
170 
171     public int countAll() throws com.liferay.portal.SystemException;
172 }