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