001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.polls.service.persistence;
016    
017    import com.liferay.portal.service.persistence.BasePersistence;
018    
019    import com.liferay.portlet.polls.model.PollsQuestion;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       PollsQuestionPersistenceImpl
024     * @see       PollsQuestionUtil
025     * @generated
026     */
027    public interface PollsQuestionPersistence extends BasePersistence<PollsQuestion> {
028            public void cacheResult(
029                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.polls.model.PollsQuestion> pollsQuestions);
033    
034            public com.liferay.portlet.polls.model.PollsQuestion create(long questionId);
035    
036            public com.liferay.portlet.polls.model.PollsQuestion remove(long questionId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.polls.NoSuchQuestionException;
039    
040            public com.liferay.portlet.polls.model.PollsQuestion updateImpl(
041                    com.liferay.portlet.polls.model.PollsQuestion pollsQuestion,
042                    boolean merge)
043                    throws com.liferay.portal.kernel.exception.SystemException;
044    
045            public com.liferay.portlet.polls.model.PollsQuestion findByPrimaryKey(
046                    long questionId)
047                    throws com.liferay.portal.kernel.exception.SystemException,
048                            com.liferay.portlet.polls.NoSuchQuestionException;
049    
050            public com.liferay.portlet.polls.model.PollsQuestion fetchByPrimaryKey(
051                    long questionId)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
055                    java.lang.String uuid)
056                    throws com.liferay.portal.kernel.exception.SystemException;
057    
058            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
059                    java.lang.String uuid, int start, int end)
060                    throws com.liferay.portal.kernel.exception.SystemException;
061    
062            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByUuid(
063                    java.lang.String uuid, int start, int end,
064                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
065                    throws com.liferay.portal.kernel.exception.SystemException;
066    
067            public com.liferay.portlet.polls.model.PollsQuestion findByUuid_First(
068                    java.lang.String uuid,
069                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070                    throws com.liferay.portal.kernel.exception.SystemException,
071                            com.liferay.portlet.polls.NoSuchQuestionException;
072    
073            public com.liferay.portlet.polls.model.PollsQuestion findByUuid_Last(
074                    java.lang.String uuid,
075                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076                    throws com.liferay.portal.kernel.exception.SystemException,
077                            com.liferay.portlet.polls.NoSuchQuestionException;
078    
079            public com.liferay.portlet.polls.model.PollsQuestion[] findByUuid_PrevAndNext(
080                    long questionId, java.lang.String uuid,
081                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082                    throws com.liferay.portal.kernel.exception.SystemException,
083                            com.liferay.portlet.polls.NoSuchQuestionException;
084    
085            public com.liferay.portlet.polls.model.PollsQuestion findByUUID_G(
086                    java.lang.String uuid, long groupId)
087                    throws com.liferay.portal.kernel.exception.SystemException,
088                            com.liferay.portlet.polls.NoSuchQuestionException;
089    
090            public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
091                    java.lang.String uuid, long groupId)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            public com.liferay.portlet.polls.model.PollsQuestion fetchByUUID_G(
095                    java.lang.String uuid, long groupId, boolean retrieveFromCache)
096                    throws com.liferay.portal.kernel.exception.SystemException;
097    
098            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
099                    long groupId)
100                    throws com.liferay.portal.kernel.exception.SystemException;
101    
102            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
103                    long groupId, int start, int end)
104                    throws com.liferay.portal.kernel.exception.SystemException;
105    
106            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findByGroupId(
107                    long groupId, int start, int end,
108                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
109                    throws com.liferay.portal.kernel.exception.SystemException;
110    
111            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_First(
112                    long groupId,
113                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
114                    throws com.liferay.portal.kernel.exception.SystemException,
115                            com.liferay.portlet.polls.NoSuchQuestionException;
116    
117            public com.liferay.portlet.polls.model.PollsQuestion findByGroupId_Last(
118                    long groupId,
119                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
120                    throws com.liferay.portal.kernel.exception.SystemException,
121                            com.liferay.portlet.polls.NoSuchQuestionException;
122    
123            public com.liferay.portlet.polls.model.PollsQuestion[] findByGroupId_PrevAndNext(
124                    long questionId, long groupId,
125                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
126                    throws com.liferay.portal.kernel.exception.SystemException,
127                            com.liferay.portlet.polls.NoSuchQuestionException;
128    
129            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
130                    long groupId)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
134                    long groupId, int start, int end)
135                    throws com.liferay.portal.kernel.exception.SystemException;
136    
137            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> filterFindByGroupId(
138                    long groupId, int start, int end,
139                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
140                    throws com.liferay.portal.kernel.exception.SystemException;
141    
142            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll()
143                    throws com.liferay.portal.kernel.exception.SystemException;
144    
145            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
146                    int start, int end)
147                    throws com.liferay.portal.kernel.exception.SystemException;
148    
149            public java.util.List<com.liferay.portlet.polls.model.PollsQuestion> findAll(
150                    int start, int end,
151                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
152                    throws com.liferay.portal.kernel.exception.SystemException;
153    
154            public void removeByUuid(java.lang.String uuid)
155                    throws com.liferay.portal.kernel.exception.SystemException;
156    
157            public void removeByUUID_G(java.lang.String uuid, long groupId)
158                    throws com.liferay.portal.kernel.exception.SystemException,
159                            com.liferay.portlet.polls.NoSuchQuestionException;
160    
161            public void removeByGroupId(long groupId)
162                    throws com.liferay.portal.kernel.exception.SystemException;
163    
164            public void removeAll()
165                    throws com.liferay.portal.kernel.exception.SystemException;
166    
167            public int countByUuid(java.lang.String uuid)
168                    throws com.liferay.portal.kernel.exception.SystemException;
169    
170            public int countByUUID_G(java.lang.String uuid, long groupId)
171                    throws com.liferay.portal.kernel.exception.SystemException;
172    
173            public int countByGroupId(long groupId)
174                    throws com.liferay.portal.kernel.exception.SystemException;
175    
176            public int filterCountByGroupId(long groupId)
177                    throws com.liferay.portal.kernel.exception.SystemException;
178    
179            public int countAll()
180                    throws com.liferay.portal.kernel.exception.SystemException;
181    }