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