1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Propagation;
28 import com.liferay.portal.kernel.annotation.Transactional;
29
30
36 @Transactional(rollbackFor = {
37 PortalException.class, SystemException.class})
38 public interface MBMessageFlagPersistence {
39 public com.liferay.portlet.messageboards.model.MBMessageFlag create(
40 long messageFlagId);
41
42 public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
43 long messageFlagId)
44 throws com.liferay.portal.SystemException,
45 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
46
47 public com.liferay.portlet.messageboards.model.MBMessageFlag remove(
48 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
49 throws com.liferay.portal.SystemException;
50
51
54 public com.liferay.portlet.messageboards.model.MBMessageFlag update(
55 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag)
56 throws com.liferay.portal.SystemException;
57
58
71 public com.liferay.portlet.messageboards.model.MBMessageFlag update(
72 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
73 boolean merge) throws com.liferay.portal.SystemException;
74
75 public com.liferay.portlet.messageboards.model.MBMessageFlag updateImpl(
76 com.liferay.portlet.messageboards.model.MBMessageFlag mbMessageFlag,
77 boolean merge) throws com.liferay.portal.SystemException;
78
79 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
80 public com.liferay.portlet.messageboards.model.MBMessageFlag findByPrimaryKey(
81 long messageFlagId)
82 throws com.liferay.portal.SystemException,
83 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
84
85 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByPrimaryKey(
86 long messageFlagId) throws com.liferay.portal.SystemException;
87
88 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
89 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
90 long userId) throws com.liferay.portal.SystemException;
91
92 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
93 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
94 long userId, int start, int end)
95 throws com.liferay.portal.SystemException;
96
97 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
98 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByUserId(
99 long userId, int start, int end,
100 com.liferay.portal.kernel.util.OrderByComparator obc)
101 throws com.liferay.portal.SystemException;
102
103 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
104 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_First(
105 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
106 throws com.liferay.portal.SystemException,
107 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
108
109 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
110 public com.liferay.portlet.messageboards.model.MBMessageFlag findByUserId_Last(
111 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
114
115 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
116 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByUserId_PrevAndNext(
117 long messageFlagId, long userId,
118 com.liferay.portal.kernel.util.OrderByComparator obc)
119 throws com.liferay.portal.SystemException,
120 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
121
122 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
123 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
124 long messageId) throws com.liferay.portal.SystemException;
125
126 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
127 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
128 long messageId, int start, int end)
129 throws com.liferay.portal.SystemException;
130
131 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
132 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findByMessageId(
133 long messageId, int start, int end,
134 com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException;
136
137 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
138 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_First(
139 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
142
143 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
144 public com.liferay.portlet.messageboards.model.MBMessageFlag findByMessageId_Last(
145 long messageId, com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
148
149 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
150 public com.liferay.portlet.messageboards.model.MBMessageFlag[] findByMessageId_PrevAndNext(
151 long messageFlagId, long messageId,
152 com.liferay.portal.kernel.util.OrderByComparator obc)
153 throws com.liferay.portal.SystemException,
154 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
155
156 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
157 public com.liferay.portlet.messageboards.model.MBMessageFlag findByU_M(
158 long userId, long messageId)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
161
162 public com.liferay.portlet.messageboards.model.MBMessageFlag fetchByU_M(
163 long userId, long messageId) throws com.liferay.portal.SystemException;
164
165 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
166 public java.util.List<Object> findWithDynamicQuery(
167 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
168 throws com.liferay.portal.SystemException;
169
170 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
171 public java.util.List<Object> findWithDynamicQuery(
172 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
173 int end) throws com.liferay.portal.SystemException;
174
175 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
176 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll()
177 throws com.liferay.portal.SystemException;
178
179 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
180 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
181 int start, int end) throws com.liferay.portal.SystemException;
182
183 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
184 public java.util.List<com.liferay.portlet.messageboards.model.MBMessageFlag> findAll(
185 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
186 throws com.liferay.portal.SystemException;
187
188 public void removeByUserId(long userId)
189 throws com.liferay.portal.SystemException;
190
191 public void removeByMessageId(long messageId)
192 throws com.liferay.portal.SystemException;
193
194 public void removeByU_M(long userId, long messageId)
195 throws com.liferay.portal.SystemException,
196 com.liferay.portlet.messageboards.NoSuchMessageFlagException;
197
198 public void removeAll() throws com.liferay.portal.SystemException;
199
200 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
201 public int countByUserId(long userId)
202 throws com.liferay.portal.SystemException;
203
204 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
205 public int countByMessageId(long messageId)
206 throws com.liferay.portal.SystemException;
207
208 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
209 public int countByU_M(long userId, long messageId)
210 throws com.liferay.portal.SystemException;
211
212 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
213 public int countAll() throws com.liferay.portal.SystemException;
214
215 public void registerListener(
216 com.liferay.portal.model.ModelListener listener);
217
218 public void unregisterListener(
219 com.liferay.portal.model.ModelListener listener);
220 }