001
014
015 package com.liferay.portlet.ratings.service.persistence;
016
017 import com.liferay.portal.service.persistence.BasePersistence;
018
019 import com.liferay.portlet.ratings.model.RatingsEntry;
020
021
027 public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> {
028 public void cacheResult(
029 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry);
030
031 public void cacheResult(
032 java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries);
033
034 public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
035
036 public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
037 throws com.liferay.portal.kernel.exception.SystemException,
038 com.liferay.portlet.ratings.NoSuchEntryException;
039
040 public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
041 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
042 boolean merge)
043 throws com.liferay.portal.kernel.exception.SystemException;
044
045 public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
046 long entryId)
047 throws com.liferay.portal.kernel.exception.SystemException,
048 com.liferay.portlet.ratings.NoSuchEntryException;
049
050 public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
051 long entryId)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
055 long classNameId, long classPK)
056 throws com.liferay.portal.kernel.exception.SystemException;
057
058 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
059 long classNameId, long classPK, int start, int end)
060 throws com.liferay.portal.kernel.exception.SystemException;
061
062 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
063 long classNameId, long classPK, 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.ratings.model.RatingsEntry findByC_C_First(
068 long classNameId, long classPK,
069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
070 throws com.liferay.portal.kernel.exception.SystemException,
071 com.liferay.portlet.ratings.NoSuchEntryException;
072
073 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
074 long classNameId, long classPK,
075 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
076 throws com.liferay.portal.kernel.exception.SystemException,
077 com.liferay.portlet.ratings.NoSuchEntryException;
078
079 public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
080 long entryId, long classNameId, long classPK,
081 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
082 throws com.liferay.portal.kernel.exception.SystemException,
083 com.liferay.portlet.ratings.NoSuchEntryException;
084
085 public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
086 long userId, long classNameId, long classPK)
087 throws com.liferay.portal.kernel.exception.SystemException,
088 com.liferay.portlet.ratings.NoSuchEntryException;
089
090 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
091 long userId, long classNameId, long classPK)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
095 long userId, long classNameId, long classPK, boolean retrieveFromCache)
096 throws com.liferay.portal.kernel.exception.SystemException;
097
098 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
099 throws com.liferay.portal.kernel.exception.SystemException;
100
101 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
102 int start, int end)
103 throws com.liferay.portal.kernel.exception.SystemException;
104
105 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
106 int start, int end,
107 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
108 throws com.liferay.portal.kernel.exception.SystemException;
109
110 public void removeByC_C(long classNameId, long classPK)
111 throws com.liferay.portal.kernel.exception.SystemException;
112
113 public void removeByU_C_C(long userId, long classNameId, long classPK)
114 throws com.liferay.portal.kernel.exception.SystemException,
115 com.liferay.portlet.ratings.NoSuchEntryException;
116
117 public void removeAll()
118 throws com.liferay.portal.kernel.exception.SystemException;
119
120 public int countByC_C(long classNameId, long classPK)
121 throws com.liferay.portal.kernel.exception.SystemException;
122
123 public int countByU_C_C(long userId, long classNameId, long classPK)
124 throws com.liferay.portal.kernel.exception.SystemException;
125
126 public int countAll()
127 throws com.liferay.portal.kernel.exception.SystemException;
128 }