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.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 obc)
76          throws com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
79          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
80          throws com.liferay.portal.SystemException,
81              com.liferay.portlet.tasks.NoSuchProposalException;
82  
83      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
84          long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
85          throws com.liferay.portal.SystemException,
86              com.liferay.portlet.tasks.NoSuchProposalException;
87  
88      public com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
89          long proposalId, long groupId,
90          com.liferay.portal.kernel.util.OrderByComparator obc)
91          throws com.liferay.portal.SystemException,
92              com.liferay.portlet.tasks.NoSuchProposalException;
93  
94      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
95          long groupId, long userId) throws com.liferay.portal.SystemException;
96  
97      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
98          long groupId, long userId, int start, int end)
99          throws com.liferay.portal.SystemException;
100 
101     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
102         long groupId, long userId, int start, int end,
103         com.liferay.portal.kernel.util.OrderByComparator obc)
104         throws com.liferay.portal.SystemException;
105 
106     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
107         long groupId, long userId,
108         com.liferay.portal.kernel.util.OrderByComparator obc)
109         throws com.liferay.portal.SystemException,
110             com.liferay.portlet.tasks.NoSuchProposalException;
111 
112     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
113         long groupId, long userId,
114         com.liferay.portal.kernel.util.OrderByComparator obc)
115         throws com.liferay.portal.SystemException,
116             com.liferay.portlet.tasks.NoSuchProposalException;
117 
118     public com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
119         long proposalId, long groupId, long userId,
120         com.liferay.portal.kernel.util.OrderByComparator obc)
121         throws com.liferay.portal.SystemException,
122             com.liferay.portlet.tasks.NoSuchProposalException;
123 
124     public com.liferay.portlet.tasks.model.TasksProposal findByC_C(
125         long classNameId, java.lang.String classPK)
126         throws com.liferay.portal.SystemException,
127             com.liferay.portlet.tasks.NoSuchProposalException;
128 
129     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
130         long classNameId, java.lang.String classPK)
131         throws com.liferay.portal.SystemException;
132 
133     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
134         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
135         throws com.liferay.portal.SystemException;
136 
137     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
138         throws com.liferay.portal.SystemException;
139 
140     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
141         int start, int end) throws com.liferay.portal.SystemException;
142 
143     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
144         int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
145         throws com.liferay.portal.SystemException;
146 
147     public void removeByGroupId(long groupId)
148         throws com.liferay.portal.SystemException;
149 
150     public void removeByG_U(long groupId, long userId)
151         throws com.liferay.portal.SystemException;
152 
153     public void removeByC_C(long classNameId, java.lang.String classPK)
154         throws com.liferay.portal.SystemException,
155             com.liferay.portlet.tasks.NoSuchProposalException;
156 
157     public void removeAll() throws com.liferay.portal.SystemException;
158 
159     public int countByGroupId(long groupId)
160         throws com.liferay.portal.SystemException;
161 
162     public int countByG_U(long groupId, long userId)
163         throws com.liferay.portal.SystemException;
164 
165     public int countByC_C(long classNameId, java.lang.String classPK)
166         throws com.liferay.portal.SystemException;
167 
168     public int countAll() throws com.liferay.portal.SystemException;
169 }