1
14
15 package com.liferay.portlet.ratings.service.persistence;
16
17 import com.liferay.portal.service.persistence.BasePersistence;
18
19 import com.liferay.portlet.ratings.model.RatingsEntry;
20
21
34 public interface RatingsEntryPersistence extends BasePersistence<RatingsEntry> {
35 public void cacheResult(
36 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry);
37
38 public void cacheResult(
39 java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> ratingsEntries);
40
41 public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
42
43 public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.ratings.NoSuchEntryException;
46
47
50 public com.liferay.portlet.ratings.model.RatingsEntry update(
51 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
52 throws com.liferay.portal.SystemException;
53
54 public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
55 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
56 boolean merge) throws com.liferay.portal.SystemException;
57
58 public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
59 long entryId)
60 throws com.liferay.portal.SystemException,
61 com.liferay.portlet.ratings.NoSuchEntryException;
62
63 public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
64 long entryId) throws com.liferay.portal.SystemException;
65
66 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
67 long classNameId, long classPK)
68 throws com.liferay.portal.SystemException;
69
70 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
71 long classNameId, long classPK, int start, int end)
72 throws com.liferay.portal.SystemException;
73
74 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
75 long classNameId, long classPK, int start, int end,
76 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
77 throws com.liferay.portal.SystemException;
78
79 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
80 long classNameId, long classPK,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.ratings.NoSuchEntryException;
84
85 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
86 long classNameId, long classPK,
87 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
88 throws com.liferay.portal.SystemException,
89 com.liferay.portlet.ratings.NoSuchEntryException;
90
91 public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
92 long entryId, long classNameId, long classPK,
93 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
94 throws com.liferay.portal.SystemException,
95 com.liferay.portlet.ratings.NoSuchEntryException;
96
97 public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
98 long userId, long classNameId, long classPK)
99 throws com.liferay.portal.SystemException,
100 com.liferay.portlet.ratings.NoSuchEntryException;
101
102 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
103 long userId, long classNameId, long classPK)
104 throws com.liferay.portal.SystemException;
105
106 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
107 long userId, long classNameId, long classPK, boolean retrieveFromCache)
108 throws com.liferay.portal.SystemException;
109
110 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
111 throws com.liferay.portal.SystemException;
112
113 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
114 int start, int end) throws com.liferay.portal.SystemException;
115
116 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
117 int start, int end,
118 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
119 throws com.liferay.portal.SystemException;
120
121 public void removeByC_C(long classNameId, long classPK)
122 throws com.liferay.portal.SystemException;
123
124 public void removeByU_C_C(long userId, long classNameId, long classPK)
125 throws com.liferay.portal.SystemException,
126 com.liferay.portlet.ratings.NoSuchEntryException;
127
128 public void removeAll() throws com.liferay.portal.SystemException;
129
130 public int countByC_C(long classNameId, long classPK)
131 throws com.liferay.portal.SystemException;
132
133 public int countByU_C_C(long userId, long classNameId, long classPK)
134 throws com.liferay.portal.SystemException;
135
136 public int countAll() throws com.liferay.portal.SystemException;
137 }