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