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.PollsChoice;
020    
021    /**
022     * @author    Brian Wing Shun Chan
023     * @see       PollsChoicePersistenceImpl
024     * @see       PollsChoiceUtil
025     * @generated
026     */
027    public interface PollsChoicePersistence extends BasePersistence<PollsChoice> {
028            public void cacheResult(
029                    com.liferay.portlet.polls.model.PollsChoice pollsChoice);
030    
031            public void cacheResult(
032                    java.util.List<com.liferay.portlet.polls.model.PollsChoice> pollsChoices);
033    
034            public com.liferay.portlet.polls.model.PollsChoice create(long choiceId);
035    
036            public com.liferay.portlet.polls.model.PollsChoice remove(long choiceId)
037                    throws com.liferay.portal.kernel.exception.SystemException,
038                            com.liferay.portlet.polls.NoSuchChoiceException;
039    
040            public com.liferay.portlet.polls.model.PollsChoice updateImpl(
041                    com.liferay.portlet.polls.model.PollsChoice pollsChoice, boolean merge)
042                    throws com.liferay.portal.kernel.exception.SystemException;
043    
044            public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
045                    long choiceId)
046                    throws com.liferay.portal.kernel.exception.SystemException,
047                            com.liferay.portlet.polls.NoSuchChoiceException;
048    
049            public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
050                    long choiceId)
051                    throws com.liferay.portal.kernel.exception.SystemException;
052    
053            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
054                    java.lang.String uuid)
055                    throws com.liferay.portal.kernel.exception.SystemException;
056    
057            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
058                    java.lang.String uuid, int start, int end)
059                    throws com.liferay.portal.kernel.exception.SystemException;
060    
061            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByUuid(
062                    java.lang.String uuid, int start, int end,
063                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
064                    throws com.liferay.portal.kernel.exception.SystemException;
065    
066            public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
067                    java.lang.String uuid,
068                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
069                    throws com.liferay.portal.kernel.exception.SystemException,
070                            com.liferay.portlet.polls.NoSuchChoiceException;
071    
072            public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
073                    java.lang.String uuid,
074                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
075                    throws com.liferay.portal.kernel.exception.SystemException,
076                            com.liferay.portlet.polls.NoSuchChoiceException;
077    
078            public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
079                    long choiceId, java.lang.String uuid,
080                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
081                    throws com.liferay.portal.kernel.exception.SystemException,
082                            com.liferay.portlet.polls.NoSuchChoiceException;
083    
084            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
085                    long questionId)
086                    throws com.liferay.portal.kernel.exception.SystemException;
087    
088            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
089                    long questionId, int start, int end)
090                    throws com.liferay.portal.kernel.exception.SystemException;
091    
092            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findByQuestionId(
093                    long questionId, int start, int end,
094                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
095                    throws com.liferay.portal.kernel.exception.SystemException;
096    
097            public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
098                    long questionId,
099                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
100                    throws com.liferay.portal.kernel.exception.SystemException,
101                            com.liferay.portlet.polls.NoSuchChoiceException;
102    
103            public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
104                    long questionId,
105                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
106                    throws com.liferay.portal.kernel.exception.SystemException,
107                            com.liferay.portlet.polls.NoSuchChoiceException;
108    
109            public com.liferay.portlet.polls.model.PollsChoice[] findByQuestionId_PrevAndNext(
110                    long choiceId, long questionId,
111                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
112                    throws com.liferay.portal.kernel.exception.SystemException,
113                            com.liferay.portlet.polls.NoSuchChoiceException;
114    
115            public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
116                    long questionId, java.lang.String name)
117                    throws com.liferay.portal.kernel.exception.SystemException,
118                            com.liferay.portlet.polls.NoSuchChoiceException;
119    
120            public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
121                    long questionId, java.lang.String name)
122                    throws com.liferay.portal.kernel.exception.SystemException;
123    
124            public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
125                    long questionId, java.lang.String name, boolean retrieveFromCache)
126                    throws com.liferay.portal.kernel.exception.SystemException;
127    
128            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll()
129                    throws com.liferay.portal.kernel.exception.SystemException;
130    
131            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
132                    int start, int end)
133                    throws com.liferay.portal.kernel.exception.SystemException;
134    
135            public java.util.List<com.liferay.portlet.polls.model.PollsChoice> findAll(
136                    int start, int end,
137                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
138                    throws com.liferay.portal.kernel.exception.SystemException;
139    
140            public void removeByUuid(java.lang.String uuid)
141                    throws com.liferay.portal.kernel.exception.SystemException;
142    
143            public void removeByQuestionId(long questionId)
144                    throws com.liferay.portal.kernel.exception.SystemException;
145    
146            public void removeByQ_N(long questionId, java.lang.String name)
147                    throws com.liferay.portal.kernel.exception.SystemException,
148                            com.liferay.portlet.polls.NoSuchChoiceException;
149    
150            public void removeAll()
151                    throws com.liferay.portal.kernel.exception.SystemException;
152    
153            public int countByUuid(java.lang.String uuid)
154                    throws com.liferay.portal.kernel.exception.SystemException;
155    
156            public int countByQuestionId(long questionId)
157                    throws com.liferay.portal.kernel.exception.SystemException;
158    
159            public int countByQ_N(long questionId, java.lang.String name)
160                    throws com.liferay.portal.kernel.exception.SystemException;
161    
162            public int countAll()
163                    throws com.liferay.portal.kernel.exception.SystemException;
164    }