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