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 obc)
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 obc)
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 obc)
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 obc)
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, com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException;
119
120 public void removeByC_C(long classNameId, long classPK)
121 throws com.liferay.portal.SystemException;
122
123 public void removeByU_C_C(long userId, long classNameId, long classPK)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.ratings.NoSuchEntryException;
126
127 public void removeAll() throws com.liferay.portal.SystemException;
128
129 public int countByC_C(long classNameId, long classPK)
130 throws com.liferay.portal.SystemException;
131
132 public int countByU_C_C(long userId, long classNameId, long classPK)
133 throws com.liferay.portal.SystemException;
134
135 public int countAll() throws com.liferay.portal.SystemException;
136 }