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