001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 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#remove(com.liferay.portal.model.BaseModel) 099 */ 100 public static MBDiscussion remove(MBDiscussion mbDiscussion) 101 throws SystemException { 102 return getPersistence().remove(mbDiscussion); 103 } 104 105 /** 106 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 107 */ 108 public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge) 109 throws SystemException { 110 return getPersistence().update(mbDiscussion, merge); 111 } 112 113 /** 114 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 115 */ 116 public static MBDiscussion update(MBDiscussion mbDiscussion, boolean merge, 117 ServiceContext serviceContext) throws SystemException { 118 return getPersistence().update(mbDiscussion, merge, serviceContext); 119 } 120 121 /** 122 * Caches the message boards discussion in the entity cache if it is enabled. 123 * 124 * @param mbDiscussion the message boards discussion to cache 125 */ 126 public static void cacheResult( 127 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion) { 128 getPersistence().cacheResult(mbDiscussion); 129 } 130 131 /** 132 * Caches the message boards discussions in the entity cache if it is enabled. 133 * 134 * @param mbDiscussions the message boards discussions to cache 135 */ 136 public static void cacheResult( 137 java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> mbDiscussions) { 138 getPersistence().cacheResult(mbDiscussions); 139 } 140 141 /** 142 * Creates a new message boards discussion with the primary key. Does not add the message boards discussion to the database. 143 * 144 * @param discussionId the primary key for the new message boards discussion 145 * @return the new message boards discussion 146 */ 147 public static com.liferay.portlet.messageboards.model.MBDiscussion create( 148 long discussionId) { 149 return getPersistence().create(discussionId); 150 } 151 152 /** 153 * Removes the message boards discussion with the primary key from the database. Also notifies the appropriate model listeners. 154 * 155 * @param discussionId the primary key of the message boards discussion to remove 156 * @return the message boards discussion that was removed 157 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public static com.liferay.portlet.messageboards.model.MBDiscussion remove( 161 long discussionId) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.messageboards.NoSuchDiscussionException { 164 return getPersistence().remove(discussionId); 165 } 166 167 public static com.liferay.portlet.messageboards.model.MBDiscussion updateImpl( 168 com.liferay.portlet.messageboards.model.MBDiscussion mbDiscussion, 169 boolean merge) 170 throws com.liferay.portal.kernel.exception.SystemException { 171 return getPersistence().updateImpl(mbDiscussion, merge); 172 } 173 174 /** 175 * Finds the message boards discussion with the primary key or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 176 * 177 * @param discussionId the primary key of the message boards discussion to find 178 * @return the message boards discussion 179 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 180 * @throws SystemException if a system exception occurred 181 */ 182 public static com.liferay.portlet.messageboards.model.MBDiscussion findByPrimaryKey( 183 long discussionId) 184 throws com.liferay.portal.kernel.exception.SystemException, 185 com.liferay.portlet.messageboards.NoSuchDiscussionException { 186 return getPersistence().findByPrimaryKey(discussionId); 187 } 188 189 /** 190 * Finds the message boards discussion with the primary key or returns <code>null</code> if it could not be found. 191 * 192 * @param discussionId the primary key of the message boards discussion to find 193 * @return the message boards discussion, or <code>null</code> if a message boards discussion with the primary key could not be found 194 * @throws SystemException if a system exception occurred 195 */ 196 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByPrimaryKey( 197 long discussionId) 198 throws com.liferay.portal.kernel.exception.SystemException { 199 return getPersistence().fetchByPrimaryKey(discussionId); 200 } 201 202 /** 203 * Finds all the message boards discussions where classNameId = ?. 204 * 205 * @param classNameId the class name ID to search with 206 * @return the matching message boards discussions 207 * @throws SystemException if a system exception occurred 208 */ 209 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 210 long classNameId) 211 throws com.liferay.portal.kernel.exception.SystemException { 212 return getPersistence().findByClassNameId(classNameId); 213 } 214 215 /** 216 * Finds a range of all the message boards discussions where classNameId = ?. 217 * 218 * <p> 219 * 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. 220 * </p> 221 * 222 * @param classNameId the class name ID to search with 223 * @param start the lower bound of the range of message boards discussions to return 224 * @param end the upper bound of the range of message boards discussions to return (not inclusive) 225 * @return the range of matching message boards discussions 226 * @throws SystemException if a system exception occurred 227 */ 228 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 229 long classNameId, int start, int end) 230 throws com.liferay.portal.kernel.exception.SystemException { 231 return getPersistence().findByClassNameId(classNameId, start, end); 232 } 233 234 /** 235 * Finds an ordered range of all the message boards discussions where classNameId = ?. 236 * 237 * <p> 238 * 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. 239 * </p> 240 * 241 * @param classNameId the class name ID to search with 242 * @param start the lower bound of the range of message boards discussions to return 243 * @param end the upper bound of the range of message boards discussions to return (not inclusive) 244 * @param orderByComparator the comparator to order the results by 245 * @return the ordered range of matching message boards discussions 246 * @throws SystemException if a system exception occurred 247 */ 248 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findByClassNameId( 249 long classNameId, int start, int end, 250 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 251 throws com.liferay.portal.kernel.exception.SystemException { 252 return getPersistence() 253 .findByClassNameId(classNameId, start, end, orderByComparator); 254 } 255 256 /** 257 * Finds the first message boards discussion in the ordered set where classNameId = ?. 258 * 259 * <p> 260 * 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. 261 * </p> 262 * 263 * @param classNameId the class name ID to search with 264 * @param orderByComparator the comparator to order the set by 265 * @return the first matching message boards discussion 266 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 267 * @throws SystemException if a system exception occurred 268 */ 269 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_First( 270 long classNameId, 271 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 272 throws com.liferay.portal.kernel.exception.SystemException, 273 com.liferay.portlet.messageboards.NoSuchDiscussionException { 274 return getPersistence() 275 .findByClassNameId_First(classNameId, orderByComparator); 276 } 277 278 /** 279 * Finds the last message boards discussion in the ordered set where classNameId = ?. 280 * 281 * <p> 282 * 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. 283 * </p> 284 * 285 * @param classNameId the class name ID to search with 286 * @param orderByComparator the comparator to order the set by 287 * @return the last matching message boards discussion 288 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 289 * @throws SystemException if a system exception occurred 290 */ 291 public static com.liferay.portlet.messageboards.model.MBDiscussion findByClassNameId_Last( 292 long classNameId, 293 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 294 throws com.liferay.portal.kernel.exception.SystemException, 295 com.liferay.portlet.messageboards.NoSuchDiscussionException { 296 return getPersistence() 297 .findByClassNameId_Last(classNameId, orderByComparator); 298 } 299 300 /** 301 * Finds the message boards discussions before and after the current message boards discussion in the ordered set where classNameId = ?. 302 * 303 * <p> 304 * 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. 305 * </p> 306 * 307 * @param discussionId the primary key of the current message boards discussion 308 * @param classNameId the class name ID to search with 309 * @param orderByComparator the comparator to order the set by 310 * @return the previous, current, and next message boards discussion 311 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a message boards discussion with the primary key could not be found 312 * @throws SystemException if a system exception occurred 313 */ 314 public static com.liferay.portlet.messageboards.model.MBDiscussion[] findByClassNameId_PrevAndNext( 315 long discussionId, long classNameId, 316 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 317 throws com.liferay.portal.kernel.exception.SystemException, 318 com.liferay.portlet.messageboards.NoSuchDiscussionException { 319 return getPersistence() 320 .findByClassNameId_PrevAndNext(discussionId, classNameId, 321 orderByComparator); 322 } 323 324 /** 325 * Finds the message boards discussion where threadId = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 326 * 327 * @param threadId the thread ID to search with 328 * @return the matching message boards discussion 329 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 330 * @throws SystemException if a system exception occurred 331 */ 332 public static com.liferay.portlet.messageboards.model.MBDiscussion findByThreadId( 333 long threadId) 334 throws com.liferay.portal.kernel.exception.SystemException, 335 com.liferay.portlet.messageboards.NoSuchDiscussionException { 336 return getPersistence().findByThreadId(threadId); 337 } 338 339 /** 340 * Finds the message boards discussion where threadId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 341 * 342 * @param threadId the thread ID to search with 343 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId( 347 long threadId) 348 throws com.liferay.portal.kernel.exception.SystemException { 349 return getPersistence().fetchByThreadId(threadId); 350 } 351 352 /** 353 * Finds the message boards discussion where threadId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 354 * 355 * @param threadId the thread ID to search with 356 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 357 * @throws SystemException if a system exception occurred 358 */ 359 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByThreadId( 360 long threadId, boolean retrieveFromCache) 361 throws com.liferay.portal.kernel.exception.SystemException { 362 return getPersistence().fetchByThreadId(threadId, retrieveFromCache); 363 } 364 365 /** 366 * Finds the message boards discussion where classNameId = ? and classPK = ? or throws a {@link com.liferay.portlet.messageboards.NoSuchDiscussionException} if it could not be found. 367 * 368 * @param classNameId the class name ID to search with 369 * @param classPK the class p k to search with 370 * @return the matching message boards discussion 371 * @throws com.liferay.portlet.messageboards.NoSuchDiscussionException if a matching message boards discussion could not be found 372 * @throws SystemException if a system exception occurred 373 */ 374 public static com.liferay.portlet.messageboards.model.MBDiscussion findByC_C( 375 long classNameId, long classPK) 376 throws com.liferay.portal.kernel.exception.SystemException, 377 com.liferay.portlet.messageboards.NoSuchDiscussionException { 378 return getPersistence().findByC_C(classNameId, classPK); 379 } 380 381 /** 382 * Finds the message boards discussion where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 383 * 384 * @param classNameId the class name ID to search with 385 * @param classPK the class p k to search with 386 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 387 * @throws SystemException if a system exception occurred 388 */ 389 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C( 390 long classNameId, long classPK) 391 throws com.liferay.portal.kernel.exception.SystemException { 392 return getPersistence().fetchByC_C(classNameId, classPK); 393 } 394 395 /** 396 * Finds the message boards discussion where classNameId = ? and classPK = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 397 * 398 * @param classNameId the class name ID to search with 399 * @param classPK the class p k to search with 400 * @return the matching message boards discussion, or <code>null</code> if a matching message boards discussion could not be found 401 * @throws SystemException if a system exception occurred 402 */ 403 public static com.liferay.portlet.messageboards.model.MBDiscussion fetchByC_C( 404 long classNameId, long classPK, boolean retrieveFromCache) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence() 407 .fetchByC_C(classNameId, classPK, retrieveFromCache); 408 } 409 410 /** 411 * Finds all the message boards discussions. 412 * 413 * @return the message boards discussions 414 * @throws SystemException if a system exception occurred 415 */ 416 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll() 417 throws com.liferay.portal.kernel.exception.SystemException { 418 return getPersistence().findAll(); 419 } 420 421 /** 422 * Finds a range of all the message boards discussions. 423 * 424 * <p> 425 * 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. 426 * </p> 427 * 428 * @param start the lower bound of the range of message boards discussions to return 429 * @param end the upper bound of the range of message boards discussions to return (not inclusive) 430 * @return the range of message boards discussions 431 * @throws SystemException if a system exception occurred 432 */ 433 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll( 434 int start, int end) 435 throws com.liferay.portal.kernel.exception.SystemException { 436 return getPersistence().findAll(start, end); 437 } 438 439 /** 440 * Finds an ordered range of all the message boards discussions. 441 * 442 * <p> 443 * 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. 444 * </p> 445 * 446 * @param start the lower bound of the range of message boards discussions to return 447 * @param end the upper bound of the range of message boards discussions to return (not inclusive) 448 * @param orderByComparator the comparator to order the results by 449 * @return the ordered range of message boards discussions 450 * @throws SystemException if a system exception occurred 451 */ 452 public static java.util.List<com.liferay.portlet.messageboards.model.MBDiscussion> findAll( 453 int start, int end, 454 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 455 throws com.liferay.portal.kernel.exception.SystemException { 456 return getPersistence().findAll(start, end, orderByComparator); 457 } 458 459 /** 460 * Removes all the message boards discussions where classNameId = ? from the database. 461 * 462 * @param classNameId the class name ID to search with 463 * @throws SystemException if a system exception occurred 464 */ 465 public static void removeByClassNameId(long classNameId) 466 throws com.liferay.portal.kernel.exception.SystemException { 467 getPersistence().removeByClassNameId(classNameId); 468 } 469 470 /** 471 * Removes the message boards discussion where threadId = ? from the database. 472 * 473 * @param threadId the thread ID to search with 474 * @throws SystemException if a system exception occurred 475 */ 476 public static void removeByThreadId(long threadId) 477 throws com.liferay.portal.kernel.exception.SystemException, 478 com.liferay.portlet.messageboards.NoSuchDiscussionException { 479 getPersistence().removeByThreadId(threadId); 480 } 481 482 /** 483 * Removes the message boards discussion where classNameId = ? and classPK = ? from the database. 484 * 485 * @param classNameId the class name ID to search with 486 * @param classPK the class p k to search with 487 * @throws SystemException if a system exception occurred 488 */ 489 public static void removeByC_C(long classNameId, long classPK) 490 throws com.liferay.portal.kernel.exception.SystemException, 491 com.liferay.portlet.messageboards.NoSuchDiscussionException { 492 getPersistence().removeByC_C(classNameId, classPK); 493 } 494 495 /** 496 * Removes all the message boards discussions from the database. 497 * 498 * @throws SystemException if a system exception occurred 499 */ 500 public static void removeAll() 501 throws com.liferay.portal.kernel.exception.SystemException { 502 getPersistence().removeAll(); 503 } 504 505 /** 506 * Counts all the message boards discussions where classNameId = ?. 507 * 508 * @param classNameId the class name ID to search with 509 * @return the number of matching message boards discussions 510 * @throws SystemException if a system exception occurred 511 */ 512 public static int countByClassNameId(long classNameId) 513 throws com.liferay.portal.kernel.exception.SystemException { 514 return getPersistence().countByClassNameId(classNameId); 515 } 516 517 /** 518 * Counts all the message boards discussions where threadId = ?. 519 * 520 * @param threadId the thread ID to search with 521 * @return the number of matching message boards discussions 522 * @throws SystemException if a system exception occurred 523 */ 524 public static int countByThreadId(long threadId) 525 throws com.liferay.portal.kernel.exception.SystemException { 526 return getPersistence().countByThreadId(threadId); 527 } 528 529 /** 530 * Counts all the message boards discussions where classNameId = ? and classPK = ?. 531 * 532 * @param classNameId the class name ID to search with 533 * @param classPK the class p k to search with 534 * @return the number of matching message boards discussions 535 * @throws SystemException if a system exception occurred 536 */ 537 public static int countByC_C(long classNameId, long classPK) 538 throws com.liferay.portal.kernel.exception.SystemException { 539 return getPersistence().countByC_C(classNameId, classPK); 540 } 541 542 /** 543 * Counts all the message boards discussions. 544 * 545 * @return the number of message boards discussions 546 * @throws SystemException if a system exception occurred 547 */ 548 public static int countAll() 549 throws com.liferay.portal.kernel.exception.SystemException { 550 return getPersistence().countAll(); 551 } 552 553 public static MBDiscussionPersistence getPersistence() { 554 if (_persistence == null) { 555 _persistence = (MBDiscussionPersistence)PortalBeanLocatorUtil.locate(MBDiscussionPersistence.class.getName()); 556 557 ReferenceRegistry.registerReference(MBDiscussionUtil.class, 558 "_persistence"); 559 } 560 561 return _persistence; 562 } 563 564 public void setPersistence(MBDiscussionPersistence persistence) { 565 _persistence = persistence; 566 567 ReferenceRegistry.registerReference(MBDiscussionUtil.class, 568 "_persistence"); 569 } 570 571 private static MBDiscussionPersistence _persistence; 572 }