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 obc)
75 throws com.liferay.portal.SystemException;
76
77 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_First(
78 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
79 throws com.liferay.portal.SystemException,
80 com.liferay.portlet.messageboards.NoSuchBanException;
81
82 public com.liferay.portlet.messageboards.model.MBBan findByGroupId_Last(
83 long groupId, com.liferay.portal.kernel.util.OrderByComparator obc)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portlet.messageboards.NoSuchBanException;
86
87 public com.liferay.portlet.messageboards.model.MBBan[] findByGroupId_PrevAndNext(
88 long banId, long groupId,
89 com.liferay.portal.kernel.util.OrderByComparator obc)
90 throws com.liferay.portal.SystemException,
91 com.liferay.portlet.messageboards.NoSuchBanException;
92
93 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
94 long userId) throws com.liferay.portal.SystemException;
95
96 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
97 long userId, int start, int end)
98 throws com.liferay.portal.SystemException;
99
100 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByUserId(
101 long userId, int start, int end,
102 com.liferay.portal.kernel.util.OrderByComparator obc)
103 throws com.liferay.portal.SystemException;
104
105 public com.liferay.portlet.messageboards.model.MBBan findByUserId_First(
106 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
107 throws com.liferay.portal.SystemException,
108 com.liferay.portlet.messageboards.NoSuchBanException;
109
110 public com.liferay.portlet.messageboards.model.MBBan findByUserId_Last(
111 long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
112 throws com.liferay.portal.SystemException,
113 com.liferay.portlet.messageboards.NoSuchBanException;
114
115 public com.liferay.portlet.messageboards.model.MBBan[] findByUserId_PrevAndNext(
116 long banId, long userId,
117 com.liferay.portal.kernel.util.OrderByComparator obc)
118 throws com.liferay.portal.SystemException,
119 com.liferay.portlet.messageboards.NoSuchBanException;
120
121 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
122 long banUserId) throws com.liferay.portal.SystemException;
123
124 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findByBanUserId(
125 long banUserId, int start, int end)
126 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 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException;
132
133 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_First(
134 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
135 throws com.liferay.portal.SystemException,
136 com.liferay.portlet.messageboards.NoSuchBanException;
137
138 public com.liferay.portlet.messageboards.model.MBBan findByBanUserId_Last(
139 long banUserId, com.liferay.portal.kernel.util.OrderByComparator obc)
140 throws com.liferay.portal.SystemException,
141 com.liferay.portlet.messageboards.NoSuchBanException;
142
143 public com.liferay.portlet.messageboards.model.MBBan[] findByBanUserId_PrevAndNext(
144 long banId, long banUserId,
145 com.liferay.portal.kernel.util.OrderByComparator obc)
146 throws com.liferay.portal.SystemException,
147 com.liferay.portlet.messageboards.NoSuchBanException;
148
149 public com.liferay.portlet.messageboards.model.MBBan findByG_B(
150 long groupId, long banUserId)
151 throws com.liferay.portal.SystemException,
152 com.liferay.portlet.messageboards.NoSuchBanException;
153
154 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
155 long groupId, long banUserId) throws com.liferay.portal.SystemException;
156
157 public com.liferay.portlet.messageboards.model.MBBan fetchByG_B(
158 long groupId, long banUserId, boolean retrieveFromCache)
159 throws com.liferay.portal.SystemException;
160
161 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll()
162 throws com.liferay.portal.SystemException;
163
164 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
165 int start, int end) throws com.liferay.portal.SystemException;
166
167 public java.util.List<com.liferay.portlet.messageboards.model.MBBan> findAll(
168 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
169 throws com.liferay.portal.SystemException;
170
171 public void removeByGroupId(long groupId)
172 throws com.liferay.portal.SystemException;
173
174 public void removeByUserId(long userId)
175 throws com.liferay.portal.SystemException;
176
177 public void removeByBanUserId(long banUserId)
178 throws com.liferay.portal.SystemException;
179
180 public void removeByG_B(long groupId, long banUserId)
181 throws com.liferay.portal.SystemException,
182 com.liferay.portlet.messageboards.NoSuchBanException;
183
184 public void removeAll() throws com.liferay.portal.SystemException;
185
186 public int countByGroupId(long groupId)
187 throws com.liferay.portal.SystemException;
188
189 public int countByUserId(long userId)
190 throws com.liferay.portal.SystemException;
191
192 public int countByBanUserId(long banUserId)
193 throws com.liferay.portal.SystemException;
194
195 public int countByG_B(long groupId, long banUserId)
196 throws com.liferay.portal.SystemException;
197
198 public int countAll() throws com.liferay.portal.SystemException;
199 }