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.kernel.exception.SystemException,
45              com.liferay.portlet.tasks.NoSuchProposalException;
46  
47      public com.liferay.portlet.tasks.model.TasksProposal updateImpl(
48          com.liferay.portlet.tasks.model.TasksProposal tasksProposal,
49          boolean merge)
50          throws com.liferay.portal.kernel.exception.SystemException;
51  
52      public com.liferay.portlet.tasks.model.TasksProposal findByPrimaryKey(
53          long proposalId)
54          throws com.liferay.portal.kernel.exception.SystemException,
55              com.liferay.portlet.tasks.NoSuchProposalException;
56  
57      public com.liferay.portlet.tasks.model.TasksProposal fetchByPrimaryKey(
58          long proposalId)
59          throws com.liferay.portal.kernel.exception.SystemException;
60  
61      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
62          long groupId)
63          throws com.liferay.portal.kernel.exception.SystemException;
64  
65      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
66          long groupId, int start, int end)
67          throws com.liferay.portal.kernel.exception.SystemException;
68  
69      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByGroupId(
70          long groupId, int start, int end,
71          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
72          throws com.liferay.portal.kernel.exception.SystemException;
73  
74      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_First(
75          long groupId,
76          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77          throws com.liferay.portal.kernel.exception.SystemException,
78              com.liferay.portlet.tasks.NoSuchProposalException;
79  
80      public com.liferay.portlet.tasks.model.TasksProposal findByGroupId_Last(
81          long groupId,
82          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
83          throws com.liferay.portal.kernel.exception.SystemException,
84              com.liferay.portlet.tasks.NoSuchProposalException;
85  
86      public com.liferay.portlet.tasks.model.TasksProposal[] findByGroupId_PrevAndNext(
87          long proposalId, long groupId,
88          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
89          throws com.liferay.portal.kernel.exception.SystemException,
90              com.liferay.portlet.tasks.NoSuchProposalException;
91  
92      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
93          long groupId, long userId)
94          throws com.liferay.portal.kernel.exception.SystemException;
95  
96      public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
97          long groupId, long userId, int start, int end)
98          throws com.liferay.portal.kernel.exception.SystemException;
99  
100     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findByG_U(
101         long groupId, long userId, int start, int end,
102         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
103         throws com.liferay.portal.kernel.exception.SystemException;
104 
105     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_First(
106         long groupId, long userId,
107         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108         throws com.liferay.portal.kernel.exception.SystemException,
109             com.liferay.portlet.tasks.NoSuchProposalException;
110 
111     public com.liferay.portlet.tasks.model.TasksProposal findByG_U_Last(
112         long groupId, long userId,
113         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114         throws com.liferay.portal.kernel.exception.SystemException,
115             com.liferay.portlet.tasks.NoSuchProposalException;
116 
117     public com.liferay.portlet.tasks.model.TasksProposal[] findByG_U_PrevAndNext(
118         long proposalId, long groupId, long userId,
119         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120         throws com.liferay.portal.kernel.exception.SystemException,
121             com.liferay.portlet.tasks.NoSuchProposalException;
122 
123     public com.liferay.portlet.tasks.model.TasksProposal findByC_C(
124         long classNameId, java.lang.String classPK)
125         throws com.liferay.portal.kernel.exception.SystemException,
126             com.liferay.portlet.tasks.NoSuchProposalException;
127 
128     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
129         long classNameId, java.lang.String classPK)
130         throws com.liferay.portal.kernel.exception.SystemException;
131 
132     public com.liferay.portlet.tasks.model.TasksProposal fetchByC_C(
133         long classNameId, java.lang.String classPK, boolean retrieveFromCache)
134         throws com.liferay.portal.kernel.exception.SystemException;
135 
136     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll()
137         throws com.liferay.portal.kernel.exception.SystemException;
138 
139     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
140         int start, int end)
141         throws com.liferay.portal.kernel.exception.SystemException;
142 
143     public java.util.List<com.liferay.portlet.tasks.model.TasksProposal> findAll(
144         int start, int end,
145         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
146         throws com.liferay.portal.kernel.exception.SystemException;
147 
148     public void removeByGroupId(long groupId)
149         throws com.liferay.portal.kernel.exception.SystemException;
150 
151     public void removeByG_U(long groupId, long userId)
152         throws com.liferay.portal.kernel.exception.SystemException;
153 
154     public void removeByC_C(long classNameId, java.lang.String classPK)
155         throws com.liferay.portal.kernel.exception.SystemException,
156             com.liferay.portlet.tasks.NoSuchProposalException;
157 
158     public void removeAll()
159         throws com.liferay.portal.kernel.exception.SystemException;
160 
161     public int countByGroupId(long groupId)
162         throws com.liferay.portal.kernel.exception.SystemException;
163 
164     public int countByG_U(long groupId, long userId)
165         throws com.liferay.portal.kernel.exception.SystemException;
166 
167     public int countByC_C(long classNameId, java.lang.String classPK)
168         throws com.liferay.portal.kernel.exception.SystemException;
169 
170     public int countAll()
171         throws com.liferay.portal.kernel.exception.SystemException;
172 }