1
22
23 package com.liferay.portlet.messageboards.service.persistence;
24
25
31 public class MBDiscussionUtil {
32 public static com.liferay.portlet.messageboards.model.MBDiscussion create(
33 long discussionId) {
34 return getPersistence().create(discussionId);
35 }
36
37 public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
38 long discussionId)
39 throws com.liferay.portal.SystemException,
40 com.liferay.portlet.messageboards.NoSuchDiscussionException {
41 return getPersistence().remove(discussionId);
42 }
43
44 public static com.liferay.portlet.messageboards.model.MBDiscussion remove(
45 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
46 throws com.liferay.portal.SystemException {
47 return getPersistence().remove(mbDiscussion);
48 }
49
50
53 public static com.liferay.portlet.messageboards.model.MBDiscussion update(
54 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion)
55 throws com.liferay.portal.SystemException {
56 return getPersistence().update(mbDiscussion);
57 }
58
59
72 public static com.liferay.portlet.messageboards.model.MBDiscussion update(
73 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
74 boolean merge) throws com.liferay.portal.SystemException {
75 return getPersistence().update(mbDiscussion, merge);
76 }
77
78 public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl(
79 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion,
80 boolean merge) throws com.liferay.portal.SystemException {
81 return getPersistence().updateImpl(mbDiscussion, merge);
82 }
83
84 public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey(
85 long discussionId)
86 throws com.liferay.portal.SystemException,
87 com.liferay.portlet.messageboards.NoSuchDiscussionException {
88 return getPersistence().findByPrimaryKey(discussionId);
89 }
90
91 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey(
92 long discussionId) throws com.liferay.portal.SystemException {
93 return getPersistence().fetchByPrimaryKey(discussionId);
94 }
95
96 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
97 long classNameId) throws com.liferay.portal.SystemException {
98 return getPersistence().findByClassNameId(classNameId);
99 }
100
101 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
102 long classNameId, int start, int end)
103 throws com.liferay.portal.SystemException {
104 return getPersistence().findByClassNameId(classNameId, start, end);
105 }
106
107 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId(
108 long classNameId, int start, int end,
109 com.liferay.portal.kernel.util.OrderByComparator obc)
110 throws com.liferay.portal.SystemException {
111 return getPersistence().findByClassNameId(classNameId, start, end, obc);
112 }
113
114 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First(
115 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
116 throws com.liferay.portal.SystemException,
117 com.liferay.portlet.messageboards.NoSuchDiscussionException {
118 return getPersistence().findByClassNameId_First(classNameId, obc);
119 }
120
121 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last(
122 long classNameId, com.liferay.portal.kernel.util.OrderByComparator obc)
123 throws com.liferay.portal.SystemException,
124 com.liferay.portlet.messageboards.NoSuchDiscussionException {
125 return getPersistence().findByClassNameId_Last(classNameId, obc);
126 }
127
128 public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext(
129 long discussionId, long classNameId,
130 com.liferay.portal.kernel.util.OrderByComparator obc)
131 throws com.liferay.portal.SystemException,
132 com.liferay.portlet.messageboards.NoSuchDiscussionException {
133 return getPersistence()
134 .findByClassNameId_PrevAndNext(discussionId, classNameId, obc);
135 }
136
137 public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C(
138 long classNameId, long classPK)
139 throws com.liferay.portal.SystemException,
140 com.liferay.portlet.messageboards.NoSuchDiscussionException {
141 return getPersistence().findByC_C(classNameId, classPK);
142 }
143
144 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C(
145 long classNameId, long classPK)
146 throws com.liferay.portal.SystemException {
147 return getPersistence().fetchByC_C(classNameId, classPK);
148 }
149
150 public static java.util.List<Object> findWithDynamicQuery(
151 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
152 throws com.liferay.portal.SystemException {
153 return getPersistence().findWithDynamicQuery(dynamicQuery);
154 }
155
156 public static java.util.List<Object> findWithDynamicQuery(
157 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
158 int end) throws com.liferay.portal.SystemException {
159 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end);
160 }
161
162 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll()
163 throws com.liferay.portal.SystemException {
164 return getPersistence().findAll();
165 }
166
167 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
168 int start, int end) throws com.liferay.portal.SystemException {
169 return getPersistence().findAll(start, end);
170 }
171
172 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll(
173 int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
174 throws com.liferay.portal.SystemException {
175 return getPersistence().findAll(start, end, obc);
176 }
177
178 public static void removeByClassNameId(long classNameId)
179 throws com.liferay.portal.SystemException {
180 getPersistence().removeByClassNameId(classNameId);
181 }
182
183 public static void removeByC_C(long classNameId, long classPK)
184 throws com.liferay.portal.SystemException,
185 com.liferay.portlet.messageboards.NoSuchDiscussionException {
186 getPersistence().removeByC_C(classNameId, classPK);
187 }
188
189 public static void removeAll() throws com.liferay.portal.SystemException {
190 getPersistence().removeAll();
191 }
192
193 public static int countByClassNameId(long classNameId)
194 throws com.liferay.portal.SystemException {
195 return getPersistence().countByClassNameId(classNameId);
196 }
197
198 public static int countByC_C(long classNameId, long classPK)
199 throws com.liferay.portal.SystemException {
200 return getPersistence().countByC_C(classNameId, classPK);
201 }
202
203 public static int countAll() throws com.liferay.portal.SystemException {
204 return getPersistence().countAll();
205 }
206
207 public static void registerListener(
208 com.liferay.portal.model.ModelListener listener) {
209 getPersistence().registerListener(listener);
210 }
211
212 public static void unregisterListener(
213 com.liferay.portal.model.ModelListener listener) {
214 getPersistence().unregisterListener(listener);
215 }
216
217 public static MBDiscussionPersistence getPersistence() {
218 return _persistence;
219 }
220
221 public void setPersistence(MBDiscussionPersistence persistence) {
222 _persistence = persistence;
223 }
224
225 private static MBDiscussionPersistence _persistence;
226 }