1
19
20 package com.liferay.portlet.ratings.service.persistence;
21
22 import com.liferay.portal.PortalException;
23 import com.liferay.portal.SystemException;
24 import com.liferay.portal.kernel.annotation.Propagation;
25 import com.liferay.portal.kernel.annotation.Transactional;
26 import com.liferay.portal.service.persistence.BasePersistence;
27
28
34 @Transactional(rollbackFor = {
35 PortalException.class, SystemException.class})
36 public interface RatingsEntryPersistence extends BasePersistence {
37 public com.liferay.portlet.ratings.model.RatingsEntry create(long entryId);
38
39 public com.liferay.portlet.ratings.model.RatingsEntry remove(long entryId)
40 throws com.liferay.portal.SystemException,
41 com.liferay.portlet.ratings.NoSuchEntryException;
42
43 public com.liferay.portlet.ratings.model.RatingsEntry remove(
44 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry)
45 throws com.liferay.portal.SystemException;
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
67 public com.liferay.portlet.ratings.model.RatingsEntry update(
68 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
69 boolean merge) throws com.liferay.portal.SystemException;
70
71 public com.liferay.portlet.ratings.model.RatingsEntry updateImpl(
72 com.liferay.portlet.ratings.model.RatingsEntry ratingsEntry,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
76 public com.liferay.portlet.ratings.model.RatingsEntry findByPrimaryKey(
77 long entryId)
78 throws com.liferay.portal.SystemException,
79 com.liferay.portlet.ratings.NoSuchEntryException;
80
81 public com.liferay.portlet.ratings.model.RatingsEntry fetchByPrimaryKey(
82 long entryId) throws com.liferay.portal.SystemException;
83
84 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
85 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
86 long classNameId, long classPK)
87 throws com.liferay.portal.SystemException;
88
89 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
90 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
91 long classNameId, long classPK, int start, int end)
92 throws com.liferay.portal.SystemException;
93
94 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
95 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findByC_C(
96 long classNameId, long classPK, int start, int end,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException;
99
100 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
101 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_First(
102 long classNameId, long classPK,
103 com.liferay.portal.kernel.util.OrderByComparator obc)
104 throws com.liferay.portal.SystemException,
105 com.liferay.portlet.ratings.NoSuchEntryException;
106
107 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
108 public com.liferay.portlet.ratings.model.RatingsEntry findByC_C_Last(
109 long classNameId, long classPK,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException,
112 com.liferay.portlet.ratings.NoSuchEntryException;
113
114 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
115 public com.liferay.portlet.ratings.model.RatingsEntry[] findByC_C_PrevAndNext(
116 long entryId, long classNameId, long classPK,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.ratings.NoSuchEntryException;
120
121 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
122 public com.liferay.portlet.ratings.model.RatingsEntry findByU_C_C(
123 long userId, long classNameId, long classPK)
124 throws com.liferay.portal.SystemException,
125 com.liferay.portlet.ratings.NoSuchEntryException;
126
127 public com.liferay.portlet.ratings.model.RatingsEntry fetchByU_C_C(
128 long userId, long classNameId, long classPK)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<Object> findWithDynamicQuery(
133 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
134 throws com.liferay.portal.SystemException;
135
136 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
137 public java.util.List<Object> findWithDynamicQuery(
138 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
139 int end) throws com.liferay.portal.SystemException;
140
141 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
142 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll()
143 throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
147 int start, int end) throws com.liferay.portal.SystemException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public java.util.List<com.liferay.portlet.ratings.model.RatingsEntry> findAll(
151 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
152 throws com.liferay.portal.SystemException;
153
154 public void removeByC_C(long classNameId, long classPK)
155 throws com.liferay.portal.SystemException;
156
157 public void removeByU_C_C(long userId, long classNameId, long classPK)
158 throws com.liferay.portal.SystemException,
159 com.liferay.portlet.ratings.NoSuchEntryException;
160
161 public void removeAll() throws com.liferay.portal.SystemException;
162
163 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
164 public int countByC_C(long classNameId, long classPK)
165 throws com.liferay.portal.SystemException;
166
167 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
168 public int countByU_C_C(long userId, long classNameId, long classPK)
169 throws com.liferay.portal.SystemException;
170
171 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
172 public int countAll() throws com.liferay.portal.SystemException;
173 }