001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.polls.service.persistence;
022:
023: /**
024: * <a href="PollsChoicePersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface PollsChoicePersistence {
030: public com.liferay.portlet.polls.model.PollsChoice create(
031: long choiceId);
032:
033: public com.liferay.portlet.polls.model.PollsChoice remove(
034: long choiceId)
035: throws com.liferay.portlet.polls.NoSuchChoiceException,
036: com.liferay.portal.SystemException;
037:
038: public com.liferay.portlet.polls.model.PollsChoice remove(
039: com.liferay.portlet.polls.model.PollsChoice pollsChoice)
040: throws com.liferay.portal.SystemException;
041:
042: public com.liferay.portlet.polls.model.PollsChoice update(
043: com.liferay.portlet.polls.model.PollsChoice pollsChoice)
044: throws com.liferay.portal.SystemException;
045:
046: public com.liferay.portlet.polls.model.PollsChoice update(
047: com.liferay.portlet.polls.model.PollsChoice pollsChoice,
048: boolean merge) throws com.liferay.portal.SystemException;
049:
050: public com.liferay.portlet.polls.model.PollsChoice updateImpl(
051: com.liferay.portlet.polls.model.PollsChoice pollsChoice,
052: boolean merge) throws com.liferay.portal.SystemException;
053:
054: public com.liferay.portlet.polls.model.PollsChoice findByPrimaryKey(
055: long choiceId)
056: throws com.liferay.portlet.polls.NoSuchChoiceException,
057: com.liferay.portal.SystemException;
058:
059: public com.liferay.portlet.polls.model.PollsChoice fetchByPrimaryKey(
060: long choiceId) throws com.liferay.portal.SystemException;
061:
062: public java.util.List findByUuid(java.lang.String uuid)
063: throws com.liferay.portal.SystemException;
064:
065: public java.util.List findByUuid(java.lang.String uuid, int begin,
066: int end) throws com.liferay.portal.SystemException;
067:
068: public java.util.List findByUuid(java.lang.String uuid, int begin,
069: int end,
070: com.liferay.portal.kernel.util.OrderByComparator obc)
071: throws com.liferay.portal.SystemException;
072:
073: public com.liferay.portlet.polls.model.PollsChoice findByUuid_First(
074: java.lang.String uuid,
075: com.liferay.portal.kernel.util.OrderByComparator obc)
076: throws com.liferay.portlet.polls.NoSuchChoiceException,
077: com.liferay.portal.SystemException;
078:
079: public com.liferay.portlet.polls.model.PollsChoice findByUuid_Last(
080: java.lang.String uuid,
081: com.liferay.portal.kernel.util.OrderByComparator obc)
082: throws com.liferay.portlet.polls.NoSuchChoiceException,
083: com.liferay.portal.SystemException;
084:
085: public com.liferay.portlet.polls.model.PollsChoice[] findByUuid_PrevAndNext(
086: long choiceId, java.lang.String uuid,
087: com.liferay.portal.kernel.util.OrderByComparator obc)
088: throws com.liferay.portlet.polls.NoSuchChoiceException,
089: com.liferay.portal.SystemException;
090:
091: public java.util.List findByQuestionId(long questionId)
092: throws com.liferay.portal.SystemException;
093:
094: public java.util.List findByQuestionId(long questionId, int begin,
095: int end) throws com.liferay.portal.SystemException;
096:
097: public java.util.List findByQuestionId(long questionId, int begin,
098: int end,
099: com.liferay.portal.kernel.util.OrderByComparator obc)
100: throws com.liferay.portal.SystemException;
101:
102: public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_First(
103: long questionId,
104: com.liferay.portal.kernel.util.OrderByComparator obc)
105: throws com.liferay.portlet.polls.NoSuchChoiceException,
106: com.liferay.portal.SystemException;
107:
108: public com.liferay.portlet.polls.model.PollsChoice findByQuestionId_Last(
109: long questionId,
110: com.liferay.portal.kernel.util.OrderByComparator obc)
111: throws com.liferay.portlet.polls.NoSuchChoiceException,
112: com.liferay.portal.SystemException;
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.portlet.polls.NoSuchChoiceException,
118: com.liferay.portal.SystemException;
119:
120: public com.liferay.portlet.polls.model.PollsChoice findByQ_N(
121: long questionId, java.lang.String name)
122: throws com.liferay.portlet.polls.NoSuchChoiceException,
123: com.liferay.portal.SystemException;
124:
125: public com.liferay.portlet.polls.model.PollsChoice fetchByQ_N(
126: long questionId, java.lang.String name)
127: throws com.liferay.portal.SystemException;
128:
129: public java.util.List findWithDynamicQuery(
130: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
131: throws com.liferay.portal.SystemException;
132:
133: public java.util.List findWithDynamicQuery(
134: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
135: int begin, int end)
136: throws com.liferay.portal.SystemException;
137:
138: public java.util.List findAll()
139: throws com.liferay.portal.SystemException;
140:
141: public java.util.List findAll(int begin, int end)
142: throws com.liferay.portal.SystemException;
143:
144: public java.util.List findAll(int begin, int end,
145: com.liferay.portal.kernel.util.OrderByComparator obc)
146: throws com.liferay.portal.SystemException;
147:
148: public void removeByUuid(java.lang.String uuid)
149: throws com.liferay.portal.SystemException;
150:
151: public void removeByQuestionId(long questionId)
152: throws com.liferay.portal.SystemException;
153:
154: public void removeByQ_N(long questionId, java.lang.String name)
155: throws com.liferay.portlet.polls.NoSuchChoiceException,
156: com.liferay.portal.SystemException;
157:
158: public void removeAll() throws com.liferay.portal.SystemException;
159:
160: public int countByUuid(java.lang.String uuid)
161: throws com.liferay.portal.SystemException;
162:
163: public int countByQuestionId(long questionId)
164: throws com.liferay.portal.SystemException;
165:
166: public int countByQ_N(long questionId, java.lang.String name)
167: throws com.liferay.portal.SystemException;
168:
169: public int countAll() throws com.liferay.portal.SystemException;
170: }
|