1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25 import com.liferay.portal.service.persistence.BasePersistence;
26
27 import com.liferay.portlet.messageboards.model.MBBan;
28
29
42 public interface MBBanPersistence extends BasePersistence<MBBan> {
43 public void cacheResult(com.liferay.portlet.messageboards.model.MBBan mbBan);
44
45 public void cacheResult(
46 java.util.List<com.liferay.portlet.messageboards.model.MBBan> mbBans);
47
48 public com.liferay.portlet.messageboards.model.MBBan create(long banId);
49
50 public com.liferay.portlet.messageboards.model.MBBan remove(long banId)
51 throws com.liferay.portal.SystemException,
52 com.liferay.portlet.messageboards.NoSuchBanException;
53
54
57 public com.liferay.portlet.messageboards.model.MBBan update(
58 com.liferay.portlet.messageboards.model.MBBan mbBan)
59 throws com.liferay.portal.SystemException;
60
61 public com.liferay.portlet.messageboards.model.MBBan updateImpl(
62 com.liferay.portlet.messageboards.model.MBBan mbBan, boolean merge)
63 throws com.liferay.portal.SystemException;
64
65 public com.liferay.portlet.messageboards.model.MBBan findByPrimaryKey(
66 long banId)
67 throws com.liferay.portal.SystemException,
68 com.liferay.portlet.messageboards.NoSuchBanException;
69
70 public com.liferay.portlet.messageboards.model.MBBan fetchByPrimaryKey(
71 long banId) throws com.liferay.portal.SystemException;
72
73 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
74 long groupId) throws com.liferay.portal.SystemException;
75
76 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
77 long groupId, int start, int end)
78 throws com.liferay.portal.SystemException;
79
80 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByGroupId(
81 long groupId, int start, int end,
82 com.liferay.portal.kernel.util.OrderByComparator obc)
83 throws com.liferay.portal.SystemException;
84
85 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
86 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
87 throws com.liferay.portal.SystemException,
88 com.liferay.portlet.messageboards.NoSuchBanException;
89
90 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
91 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
92 throws com.liferay.portal.SystemException,
93 com.liferay.portlet.messageboards.NoSuchBanException;
94
95 public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
96 long banId, long groupId,
97 com.liferay.portal.kernel.util.OrderByComparator obc)
98 throws com.liferay.portal.SystemException,
99 com.liferay.portlet.messageboards.NoSuchBanException;
100
101 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
102 long userId) throws com.liferay.portal.SystemException;
103
104 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
105 long userId, int start, int end)
106 throws com.liferay.portal.SystemException;
107
108 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
109 long userId, int start, int end,
110 com.liferay.portal.kernel.util.OrderByComparator obc)
111 throws com.liferay.portal.SystemException;
112
113 public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
114 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
115 throws com.liferay.portal.SystemException,
116 com.liferay.portlet.messageboards.NoSuchBanException;
117
118 public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
119 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
120 throws com.liferay.portal.SystemException,
121 com.liferay.portlet.messageboards.NoSuchBanException;
122
123 public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
124 long banId, long userId,
125 com.liferay.portal.kernel.util.OrderByComparator obc)
126 throws com.liferay.portal.SystemException,
127 com.liferay.portlet.messageboards.NoSuchBanException;
128
129 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
130 long banUserId) throws com.liferay.portal.SystemException;
131
132 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
133 long banUserId, int start, int end)
134 throws com.liferay.portal.SystemException;
135
136 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
137 long banUserId, int start, int end,
138 com.liferay.portal.kernel.util.OrderByComparator obc)
139 throws com.liferay.portal.SystemException;
140
141 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
142 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
143 throws com.liferay.portal.SystemException,
144 com.liferay.portlet.messageboards.NoSuchBanException;
145
146 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
147 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
148 throws com.liferay.portal.SystemException,
149 com.liferay.portlet.messageboards.NoSuchBanException;
150
151 public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
152 long banId, long banUserId,
153 com.liferay.portal.kernel.util.OrderByComparator obc)
154 throws com.liferay.portal.SystemException,
155 com.liferay.portlet.messageboards.NoSuchBanException;
156
157 public com.liferay.portlet.messageboards.model.MBBan findByG_B(
158 long groupId, long banUserId)
159 throws com.liferay.portal.SystemException,
160 com.liferay.portlet.messageboards.NoSuchBanException;
161
162 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
163 long groupId, long banUserId) throws com.liferay.portal.SystemException;
164
165 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
166 long groupId, long banUserId, boolean retrieveFromCache)
167 throws com.liferay.portal.SystemException;
168
169 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
170 throws com.liferay.portal.SystemException;
171
172 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
173 int start, int end) throws com.liferay.portal.SystemException;
174
175 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
176 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
177 throws com.liferay.portal.SystemException;
178
179 public void removeByGroupId(long groupId)
180 throws com.liferay.portal.SystemException;
181
182 public void removeByUserId(long userId)
183 throws com.liferay.portal.SystemException;
184
185 public void removeByBanUserId(long banUserId)
186 throws com.liferay.portal.SystemException;
187
188 public void removeByG_B(long groupId, long banUserId)
189 throws com.liferay.portal.SystemException,
190 com.liferay.portlet.messageboards.NoSuchBanException;
191
192 public void removeAll() throws com.liferay.portal.SystemException;
193
194 public int countByGroupId(long groupId)
195 throws com.liferay.portal.SystemException;
196
197 public int countByUserId(long userId)
198 throws com.liferay.portal.SystemException;
199
200 public int countByBanUserId(long banUserId)
201 throws com.liferay.portal.SystemException;
202
203 public int countByG_B(long groupId, long banUserId)
204 throws com.liferay.portal.SystemException;
205
206 public int countAll() throws com.liferay.portal.SystemException;
207 }