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.ratings.service.persistence;
022:
023: /**
024: * <a href="RatingsEntryPersistence.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public interface RatingsEntryPersistence {
030: public com.liferay.portlet.ratings.model.RatingsEntry create(
031: long entryId);
032:
033: public com.liferay.portlet.ratings.model.RatingsEntry remove(
034: long entryId) throws com.liferay.portal.SystemException,
035: com.liferay.portlet.ratings.NoSuchEntryException;
036:
037: public com.liferay.portlet.ratings.model.RatingsEntry remove(
038: com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
039: throws com.liferay.portal.SystemException;
040:
041: public com.liferay.portlet.ratings.model.RatingsEntry update(
042: com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
043: throws com.liferay.portal.SystemException;
044:
045: public com.liferay.portlet.ratings.model.RatingsEntry update(
046: com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
047: boolean merge) throws com.liferay.portal.SystemException;
048:
049: public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
050: com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
051: boolean merge) throws com.liferay.portal.SystemException;
052:
053: public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
054: long entryId) throws com.liferay.portal.SystemException,
055: com.liferay.portlet.ratings.NoSuchEntryException;
056:
057: public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
058: long entryId) throws com.liferay.portal.SystemException;
059:
060: public java.util.List findByC_C(long classNameId, long classPK)
061: throws com.liferay.portal.SystemException;
062:
063: public java.util.List findByC_C(long classNameId, long classPK,
064: int begin, int end)
065: throws com.liferay.portal.SystemException;
066:
067: public java.util.List findByC_C(long classNameId, long classPK,
068: int begin, int end,
069: com.liferay.portal.kernel.util.OrderByComparator obc)
070: throws com.liferay.portal.SystemException;
071:
072: public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
073: long classNameId, long classPK,
074: com.liferay.portal.kernel.util.OrderByComparator obc)
075: throws com.liferay.portal.SystemException,
076: com.liferay.portlet.ratings.NoSuchEntryException;
077:
078: public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
079: long classNameId, long classPK,
080: com.liferay.portal.kernel.util.OrderByComparator obc)
081: throws com.liferay.portal.SystemException,
082: com.liferay.portlet.ratings.NoSuchEntryException;
083:
084: public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
085: long entryId, long classNameId, long classPK,
086: com.liferay.portal.kernel.util.OrderByComparator obc)
087: throws com.liferay.portal.SystemException,
088: com.liferay.portlet.ratings.NoSuchEntryException;
089:
090: public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
091: long userId, long classNameId, long classPK)
092: throws com.liferay.portal.SystemException,
093: com.liferay.portlet.ratings.NoSuchEntryException;
094:
095: public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
096: long userId, long classNameId, long classPK)
097: throws com.liferay.portal.SystemException;
098:
099: public java.util.List findWithDynamicQuery(
100: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
101: throws com.liferay.portal.SystemException;
102:
103: public java.util.List findWithDynamicQuery(
104: com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
105: int begin, int end)
106: throws com.liferay.portal.SystemException;
107:
108: public java.util.List findAll()
109: throws com.liferay.portal.SystemException;
110:
111: public java.util.List findAll(int begin, int end)
112: throws com.liferay.portal.SystemException;
113:
114: public java.util.List findAll(int begin, int end,
115: com.liferay.portal.kernel.util.OrderByComparator obc)
116: throws com.liferay.portal.SystemException;
117:
118: public void removeByC_C(long classNameId, long classPK)
119: throws com.liferay.portal.SystemException;
120:
121: public void removeByU_C_C(long userId, long classNameId,
122: long classPK) throws com.liferay.portal.SystemException,
123: com.liferay.portlet.ratings.NoSuchEntryException;
124:
125: public void removeAll() throws com.liferay.portal.SystemException;
126:
127: public int countByC_C(long classNameId, long classPK)
128: throws com.liferay.portal.SystemException;
129:
130: public int countByU_C_C(long userId, long classNameId, long classPK)
131: throws com.liferay.portal.SystemException;
132:
133: public int countAll() throws com.liferay.portal.SystemException;
134: }
|