001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.messageboards.service.persistence; 016 017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 018 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 019 import com.liferay.portal.kernel.exception.SystemException; 020 import com.liferay.portal.kernel.util.OrderByComparator; 021 import com.liferay.portal.kernel.util.ReferenceRegistry; 022 import com.liferay.portal.service.ServiceContext; 023 024 import com.liferay.portlet.messageboards.model.MBDiscussion; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the message boards discussion service. This utility wraps {@link MBDiscussionPersistenceImpl} and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class. 030 * 031 * <p> 032 * Caching information and settings can be found in <code>portal.properties</code> 033 * </p> 034 * 035 * @author Brian Wing Shun Chan 036 * @see MBDiscussionPersistence 037 * @see MBDiscussionPersistenceImpl 038 * @generated 039 */ 040 public class MBDiscussionUtil { 041 /* 042 * NOTE FOR DEVELOPERS: 043 * 044 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 045 */ 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 049 */ 050 public static void clearCache() { 051 getPersistence().clearCache(); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 056 */ 057 public static void clearCache(MBDiscussion mbDiscussion) { 058 getPersistence().clearCache(mbDiscussion); 059 } 060 061 /** 062 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 063 */ 064 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 065 throws SystemException { 066 return getPersistence().countWithDynamicQuery(dynamicQuery); 067 } 068 069 /** 070 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 071 */ 072 public static List<MBDiscussion> findWithDynamicQuery( 073 DynamicQuery dynamicQuery) throws SystemException { 074 return getPersistence().findWithDynamicQuery(dynamicQuery); 075 } 076 077 /** 078 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 079 */ 080 public static List<MBDiscussion> findWithDynamicQuery( 081 DynamicQuery dynamicQuery, int start, int end) 082 throws SystemException { 083 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 084 } 085 086 /** 087 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 088 */ 089 public static List<MBDiscussion> findWithDynamicQuery( 090 DynamicQuery dynamicQuery, int start, int end, 091 OrderByComparator orderByComparator) throws SystemException { 092 return getPersistence() 093 .findWithDynamicQuery(dynamicQuery, start, end, 094 orderByComparator); 095 } 096 097 /** 098 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 099 */ 100 public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge) 101 throws SystemException { 102 return getPersistence().update(mbDiscussion, merge); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 107 */ 108 public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge, 109 ServiceContext serviceContext) throws SystemException { 110 return getPersistence().update(mbDiscussion, merge, serviceContext); 111 } 112 113 /** 114 * Caches the message boards discussion in the entity cache if it is enabled. 115 * 116 * @param mbDiscussion the message boards discussion 117 */ 118 public static void cacheResult( 119 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) { 120 getPersistence().cacheResult(mbDiscussion); 121 } 122 123 /** 124 * Caches the message boards discussions in the entity cache if it is enabled. 125 * 126 * @param mbDiscussions the message boards discussions 127 */ 128 public static void cacheResult( 129 java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions) { 130 getPersistence().cacheResult(mbDiscussions); 131 } 132 133 /** 134 * Creates a new message boards discussion with the primary key. Does not add the message boards discussion to the database. 135 * 136 * @param discussionId the primary key for the new message boards discussion 137 * @return the new message boards discussion 138 */ 139 public static com.liferay.portlet.messageboards.model.MBDiscussion create( 140 long discussionId) { 141 return getPersistence().create(discussionId); 142 } 143 144 /** 145 * Removes the message boards discussion with the primary key from the database. Also notifies the appropriate model listeners. 146 * 147 * @param discussionId the primary key of the message boards discussion 148 * @return the message boards discussion that was removed 149 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 150 * @throws SystemException if a system exception occurred 151 */ 152 public static com.liferay.portlet.messageboards.model.MBDiscussion remove( 153 long discussionId) 154 throws com.liferay.portal.kernel.exception.SystemException, 155 com.liferay.portlet.messageboards.NoSuchDiscussionException { 156 return getPersistence().remove(discussionId); 157 } 158 159 public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl( 160 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion, 161 boolean merge) 162 throws com.liferay.portal.kernel.exception.SystemException { 163 return getPersistence().updateImpl(mbDiscussion, merge); 164 } 165 166 /** 167 * Returns the message boards discussion with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 168 * 169 * @param discussionId the primary key of the message boards discussion 170 * @return the message boards discussion 171 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey( 175 long discussionId) 176 throws com.liferay.portal.kernel.exception.SystemException, 177 com.liferay.portlet.messageboards.NoSuchDiscussionException { 178 return getPersistence().findByPrimaryKey(discussionId); 179 } 180 181 /** 182 * Returns the message boards discussion with the primary key or returns <code>null</code> if it could not be found. 183 * 184 * @param discussionId the primary key of the message boards discussion 185 * @return the message boards discussion, or <code>null</code> if a message boards discussion with the primary key could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey( 189 long discussionId) 190 throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(discussionId); 192 } 193 194 /** 195 * Returns all the message boards discussions where classNameId = ?. 196 * 197 * @param classNameId the class name ID 198 * @return the matching message boards discussions 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 202 long classNameId) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByClassNameId(classNameId); 205 } 206 207 /** 208 * Returns a range of all the message boards discussions where classNameId = ?. 209 * 210 * <p> 211 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 212 * </p> 213 * 214 * @param classNameId the class name ID 215 * @param start the lower bound of the range of message boards discussions 216 * @param end the upper bound of the range of message boards discussions (not inclusive) 217 * @return the range of matching message boards discussions 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 221 long classNameId, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByClassNameId(classNameId, start, end); 224 } 225 226 /** 227 * Returns an ordered range of all the message boards discussions where classNameId = ?. 228 * 229 * <p> 230 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 231 * </p> 232 * 233 * @param classNameId the class name ID 234 * @param start the lower bound of the range of message boards discussions 235 * @param end the upper bound of the range of message boards discussions (not inclusive) 236 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 237 * @return the ordered range of matching message boards discussions 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 241 long classNameId, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence() 245 .findByClassNameId(classNameId, start, end, orderByComparator); 246 } 247 248 /** 249 * Returns the first message boards discussion in the ordered set where classNameId = ?. 250 * 251 * <p> 252 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 253 * </p> 254 * 255 * @param classNameId the class name ID 256 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 257 * @return the first matching message boards discussion 258 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 259 * @throws SystemException if a system exception occurred 260 */ 261 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First( 262 long classNameId, 263 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 264 throws com.liferay.portal.kernel.exception.SystemException, 265 com.liferay.portlet.messageboards.NoSuchDiscussionException { 266 return getPersistence() 267 .findByClassNameId_First(classNameId, orderByComparator); 268 } 269 270 /** 271 * Returns the last message boards discussion in the ordered set where classNameId = ?. 272 * 273 * <p> 274 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 275 * </p> 276 * 277 * @param classNameId the class name ID 278 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 279 * @return the last matching message boards discussion 280 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 281 * @throws SystemException if a system exception occurred 282 */ 283 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last( 284 long classNameId, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException, 287 com.liferay.portlet.messageboards.NoSuchDiscussionException { 288 return getPersistence() 289 .findByClassNameId_Last(classNameId, orderByComparator); 290 } 291 292 /** 293 * Returns the message boards discussions before and after the current message boards discussion in the ordered set where classNameId = ?. 294 * 295 * <p> 296 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 297 * </p> 298 * 299 * @param discussionId the primary key of the current message boards discussion 300 * @param classNameId the class name ID 301 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 302 * @return the previous, current, and next message boards discussion 303 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 304 * @throws SystemException if a system exception occurred 305 */ 306 public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext( 307 long discussionId, long classNameId, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException, 310 com.liferay.portlet.messageboards.NoSuchDiscussionException { 311 return getPersistence() 312 .findByClassNameId_PrevAndNext(discussionId, classNameId, 313 orderByComparator); 314 } 315 316 /** 317 * Returns the message boards discussion where threadId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 318 * 319 * @param threadId the thread ID 320 * @return the matching message boards discussion 321 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 322 * @throws SystemException if a system exception occurred 323 */ 324 public static com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId( 325 long threadId) 326 throws com.liferay.portal.kernel.exception.SystemException, 327 com.liferay.portlet.messageboards.NoSuchDiscussionException { 328 return getPersistence().findByThreadId(threadId); 329 } 330 331 /** 332 * Returns the message boards discussion where threadId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 333 * 334 * @param threadId the thread ID 335 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 336 * @throws SystemException if a system exception occurred 337 */ 338 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId( 339 long threadId) 340 throws com.liferay.portal.kernel.exception.SystemException { 341 return getPersistence().fetchByThreadId(threadId); 342 } 343 344 /** 345 * Returns the message boards discussion where threadId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 346 * 347 * @param threadId the thread ID 348 * @param retrieveFromCache whether to use the finder cache 349 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 350 * @throws SystemException if a system exception occurred 351 */ 352 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId( 353 long threadId, boolean retrieveFromCache) 354 throws com.liferay.portal.kernel.exception.SystemException { 355 return getPersistence().fetchByThreadId(threadId, retrieveFromCache); 356 } 357 358 /** 359 * Returns the message boards discussion where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 360 * 361 * @param classNameId the class name ID 362 * @param classPK the class p k 363 * @return the matching message boards discussion 364 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 365 * @throws SystemException if a system exception occurred 366 */ 367 public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C( 368 long classNameId, long classPK) 369 throws com.liferay.portal.kernel.exception.SystemException, 370 com.liferay.portlet.messageboards.NoSuchDiscussionException { 371 return getPersistence().findByC_C(classNameId, classPK); 372 } 373 374 /** 375 * Returns the message boards discussion where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 376 * 377 * @param classNameId the class name ID 378 * @param classPK the class p k 379 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C( 383 long classNameId, long classPK) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().fetchByC_C(classNameId, classPK); 386 } 387 388 /** 389 * Returns the message boards discussion where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 390 * 391 * @param classNameId the class name ID 392 * @param classPK the class p k 393 * @param retrieveFromCache whether to use the finder cache 394 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 395 * @throws SystemException if a system exception occurred 396 */ 397 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C( 398 long classNameId, long classPK, boolean retrieveFromCache) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return getPersistence() 401 .fetchByC_C(classNameId, classPK, retrieveFromCache); 402 } 403 404 /** 405 * Returns all the message boards discussions. 406 * 407 * @return the message boards discussions 408 * @throws SystemException if a system exception occurred 409 */ 410 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll() 411 throws com.liferay.portal.kernel.exception.SystemException { 412 return getPersistence().findAll(); 413 } 414 415 /** 416 * Returns a range of all the message boards discussions. 417 * 418 * <p> 419 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 420 * </p> 421 * 422 * @param start the lower bound of the range of message boards discussions 423 * @param end the upper bound of the range of message boards discussions (not inclusive) 424 * @return the range of message boards discussions 425 * @throws SystemException if a system exception occurred 426 */ 427 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll( 428 int start, int end) 429 throws com.liferay.portal.kernel.exception.SystemException { 430 return getPersistence().findAll(start, end); 431 } 432 433 /** 434 * Returns an ordered range of all the message boards discussions. 435 * 436 * <p> 437 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 438 * </p> 439 * 440 * @param start the lower bound of the range of message boards discussions 441 * @param end the upper bound of the range of message boards discussions (not inclusive) 442 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 443 * @return the ordered range of message boards discussions 444 * @throws SystemException if a system exception occurred 445 */ 446 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll( 447 int start, int end, 448 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 449 throws com.liferay.portal.kernel.exception.SystemException { 450 return getPersistence().findAll(start, end, orderByComparator); 451 } 452 453 /** 454 * Removes all the message boards discussions where classNameId = ? from the database. 455 * 456 * @param classNameId the class name ID 457 * @throws SystemException if a system exception occurred 458 */ 459 public static void removeByClassNameId(long classNameId) 460 throws com.liferay.portal.kernel.exception.SystemException { 461 getPersistence().removeByClassNameId(classNameId); 462 } 463 464 /** 465 * Removes the message boards discussion where threadId = ? from the database. 466 * 467 * @param threadId the thread ID 468 * @throws SystemException if a system exception occurred 469 */ 470 public static void removeByThreadId(long threadId) 471 throws com.liferay.portal.kernel.exception.SystemException, 472 com.liferay.portlet.messageboards.NoSuchDiscussionException { 473 getPersistence().removeByThreadId(threadId); 474 } 475 476 /** 477 * Removes the message boards discussion where classNameId = ? and classPK = ? from the database. 478 * 479 * @param classNameId the class name ID 480 * @param classPK the class p k 481 * @throws SystemException if a system exception occurred 482 */ 483 public static void removeByC_C(long classNameId, long classPK) 484 throws com.liferay.portal.kernel.exception.SystemException, 485 com.liferay.portlet.messageboards.NoSuchDiscussionException { 486 getPersistence().removeByC_C(classNameId, classPK); 487 } 488 489 /** 490 * Removes all the message boards discussions from the database. 491 * 492 * @throws SystemException if a system exception occurred 493 */ 494 public static void removeAll() 495 throws com.liferay.portal.kernel.exception.SystemException { 496 getPersistence().removeAll(); 497 } 498 499 /** 500 * Returns the number of message boards discussions where classNameId = ?. 501 * 502 * @param classNameId the class name ID 503 * @return the number of matching message boards discussions 504 * @throws SystemException if a system exception occurred 505 */ 506 public static int countByClassNameId(long classNameId) 507 throws com.liferay.portal.kernel.exception.SystemException { 508 return getPersistence().countByClassNameId(classNameId); 509 } 510 511 /** 512 * Returns the number of message boards discussions where threadId = ?. 513 * 514 * @param threadId the thread ID 515 * @return the number of matching message boards discussions 516 * @throws SystemException if a system exception occurred 517 */ 518 public static int countByThreadId(long threadId) 519 throws com.liferay.portal.kernel.exception.SystemException { 520 return getPersistence().countByThreadId(threadId); 521 } 522 523 /** 524 * Returns the number of message boards discussions where classNameId = ? and classPK = ?. 525 * 526 * @param classNameId the class name ID 527 * @param classPK the class p k 528 * @return the number of matching message boards discussions 529 * @throws SystemException if a system exception occurred 530 */ 531 public static int countByC_C(long classNameId, long classPK) 532 throws com.liferay.portal.kernel.exception.SystemException { 533 return getPersistence().countByC_C(classNameId, classPK); 534 } 535 536 /** 537 * Returns the number of message boards discussions. 538 * 539 * @return the number of message boards discussions 540 * @throws SystemException if a system exception occurred 541 */ 542 public static int countAll() 543 throws com.liferay.portal.kernel.exception.SystemException { 544 return getPersistence().countAll(); 545 } 546 547 public static MBDiscussionPersistence getPersistence() { 548 if (_persistence == null) { 549 _persistence = (MBDiscussionPersistence)PortalBeanLocatorUtil.locate(MBDiscussionPersistence.class.getName()); 550 551 ReferenceRegistry.registerReference(MBDiscussionUtil.class, 552 "_persistence"); 553 } 554 555 return _persistence; 556 } 557 558 public void setPersistence(MBDiscussionPersistence persistence) { 559 _persistence = persistence; 560 561 ReferenceRegistry.registerReference(MBDiscussionUtil.class, 562 "_persistence"); 563 } 564 565 private static MBDiscussionPersistence _persistence; 566 }