1   /**
2    * Copyright (c) 2000-2008 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.polls.service.persistence;
24  
25  /**
26   * <a href="PollsChoicePersistence.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public interface PollsChoicePersistence {
32      public com.liferay.portlet.polls.model.PollsChoice create(long choiceId);
33  
34      public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
35          throws com.liferay.portlet.polls.NoSuchChoiceException, 
36              com.liferay.portal.SystemException;
37  
38      public com.liferay.portlet.polls.model.PollsChoice remove(
39          com.liferay.portlet.polls.model.PollsChoice pollsChoice)
40          throws com.liferay.portal.SystemException;
41  
42      public com.liferay.portlet.polls.model.PollsChoice update(
43          com.liferay.portlet.polls.model.PollsChoice pollsChoice)
44          throws com.liferay.portal.SystemException;
45  
46      public com.liferay.portlet.polls.model.PollsChoice update(
47          com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
48          throws com.liferay.portal.SystemException;
49  
50      public com.liferay.portlet.polls.model.PollsChoice updateImpl(
51          com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
52          throws com.liferay.portal.SystemException;
53  
54      public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
55          long choiceId)
56          throws com.liferay.portlet.polls.NoSuchChoiceException, 
57              com.liferay.portal.SystemException;
58  
59      public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
60          long choiceId) throws com.liferay.portal.SystemException;
61  
62      public java.util.List findByUuid(java.lang.String uuid)
63          throws com.liferay.portal.SystemException;
64  
65      public java.util.List findByUuid(java.lang.String uuid, int begin, int end)
66          throws com.liferay.portal.SystemException;
67  
68      public java.util.List findByUuid(java.lang.String uuid, int begin, int end,
69          com.liferay.portal.kernel.util.OrderByComparator obc)
70          throws com.liferay.portal.SystemException;
71  
72      public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
73          java.lang.String uuid,
74          com.liferay.portal.kernel.util.OrderByComparator obc)
75          throws com.liferay.portlet.polls.NoSuchChoiceException, 
76              com.liferay.portal.SystemException;
77  
78      public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
79          java.lang.String uuid,
80          com.liferay.portal.kernel.util.OrderByComparator obc)
81          throws com.liferay.portlet.polls.NoSuchChoiceException, 
82              com.liferay.portal.SystemException;
83  
84      public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
85          long choiceId, java.lang.String uuid,
86          com.liferay.portal.kernel.util.OrderByComparator obc)
87          throws com.liferay.portlet.polls.NoSuchChoiceException, 
88              com.liferay.portal.SystemException;
89  
90      public java.util.List findByQuestionId(long questionId)
91          throws com.liferay.portal.SystemException;
92  
93      public java.util.List findByQuestionId(long questionId, int begin, int end)
94          throws com.liferay.portal.SystemException;
95  
96      public java.util.List findByQuestionId(long questionId, int begin, int end,
97          com.liferay.portal.kernel.util.OrderByComparator obc)
98          throws com.liferay.portal.SystemException;
99  
100     public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
101         long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
102         throws com.liferay.portlet.polls.NoSuchChoiceException, 
103             com.liferay.portal.SystemException;
104 
105     public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
106         long questionId, com.liferay.portal.kernel.util.OrderByComparator obc)
107         throws com.liferay.portlet.polls.NoSuchChoiceException, 
108             com.liferay.portal.SystemException;
109 
110     public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
111         long choiceId, long questionId,
112         com.liferay.portal.kernel.util.OrderByComparator obc)
113         throws com.liferay.portlet.polls.NoSuchChoiceException, 
114             com.liferay.portal.SystemException;
115 
116     public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
117         long questionId, java.lang.String name)
118         throws com.liferay.portlet.polls.NoSuchChoiceException, 
119             com.liferay.portal.SystemException;
120 
121     public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
122         long questionId, java.lang.String name)
123         throws com.liferay.portal.SystemException;
124 
125     public java.util.List findWithDynamicQuery(
126         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
127         throws com.liferay.portal.SystemException;
128 
129     public java.util.List findWithDynamicQuery(
130         com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
131         int begin, int end) throws com.liferay.portal.SystemException;
132 
133     public java.util.List findAll() throws com.liferay.portal.SystemException;
134 
135     public java.util.List findAll(int begin, int end)
136         throws com.liferay.portal.SystemException;
137 
138     public java.util.List findAll(int begin, int end,
139         com.liferay.portal.kernel.util.OrderByComparator obc)
140         throws com.liferay.portal.SystemException;
141 
142     public void removeByUuid(java.lang.String uuid)
143         throws com.liferay.portal.SystemException;
144 
145     public void removeByQuestionId(long questionId)
146         throws com.liferay.portal.SystemException;
147 
148     public void removeByQ_N(long questionId, java.lang.String name)
149         throws com.liferay.portlet.polls.NoSuchChoiceException, 
150             com.liferay.portal.SystemException;
151 
152     public void removeAll() throws com.liferay.portal.SystemException;
153 
154     public int countByUuid(java.lang.String uuid)
155         throws com.liferay.portal.SystemException;
156 
157     public int countByQuestionId(long questionId)
158         throws com.liferay.portal.SystemException;
159 
160     public int countByQ_N(long questionId, java.lang.String name)
161         throws com.liferay.portal.SystemException;
162 
163     public int countAll() throws com.liferay.portal.SystemException;
164 }