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