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.journal.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.journal.model.JournalContentSearch; 025 026 import java.util.List; 027 028 /** 029 * The persistence utility for the journal content search service. This utility wraps {@link JournalContentSearchPersistenceImpl} 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 JournalContentSearchPersistence 037 * @see JournalContentSearchPersistenceImpl 038 * @generated 039 */ 040 public class JournalContentSearchUtil { 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(JournalContentSearch journalContentSearch) { 058 getPersistence().clearCache(journalContentSearch); 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<JournalContentSearch> 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<JournalContentSearch> 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<JournalContentSearch> 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 JournalContentSearch update( 101 JournalContentSearch journalContentSearch, boolean merge) 102 throws SystemException { 103 return getPersistence().update(journalContentSearch, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static JournalContentSearch update( 110 JournalContentSearch journalContentSearch, boolean merge, 111 ServiceContext serviceContext) throws SystemException { 112 return getPersistence() 113 .update(journalContentSearch, merge, serviceContext); 114 } 115 116 /** 117 * Caches the journal content search in the entity cache if it is enabled. 118 * 119 * @param journalContentSearch the journal content search 120 */ 121 public static void cacheResult( 122 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) { 123 getPersistence().cacheResult(journalContentSearch); 124 } 125 126 /** 127 * Caches the journal content searchs in the entity cache if it is enabled. 128 * 129 * @param journalContentSearchs the journal content searchs 130 */ 131 public static void cacheResult( 132 java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs) { 133 getPersistence().cacheResult(journalContentSearchs); 134 } 135 136 /** 137 * Creates a new journal content search with the primary key. Does not add the journal content search to the database. 138 * 139 * @param contentSearchId the primary key for the new journal content search 140 * @return the new journal content search 141 */ 142 public static com.liferay.portlet.journal.model.JournalContentSearch create( 143 long contentSearchId) { 144 return getPersistence().create(contentSearchId); 145 } 146 147 /** 148 * Removes the journal content search with the primary key from the database. Also notifies the appropriate model listeners. 149 * 150 * @param contentSearchId the primary key of the journal content search 151 * @return the journal content search that was removed 152 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 153 * @throws SystemException if a system exception occurred 154 */ 155 public static com.liferay.portlet.journal.model.JournalContentSearch remove( 156 long contentSearchId) 157 throws com.liferay.portal.kernel.exception.SystemException, 158 com.liferay.portlet.journal.NoSuchContentSearchException { 159 return getPersistence().remove(contentSearchId); 160 } 161 162 public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl( 163 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch, 164 boolean merge) 165 throws com.liferay.portal.kernel.exception.SystemException { 166 return getPersistence().updateImpl(journalContentSearch, merge); 167 } 168 169 /** 170 * Returns the journal content search with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found. 171 * 172 * @param contentSearchId the primary key of the journal content search 173 * @return the journal content search 174 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey( 178 long contentSearchId) 179 throws com.liferay.portal.kernel.exception.SystemException, 180 com.liferay.portlet.journal.NoSuchContentSearchException { 181 return getPersistence().findByPrimaryKey(contentSearchId); 182 } 183 184 /** 185 * Returns the journal content search with the primary key or returns <code>null</code> if it could not be found. 186 * 187 * @param contentSearchId the primary key of the journal content search 188 * @return the journal content search, or <code>null</code> if a journal content search with the primary key could not be found 189 * @throws SystemException if a system exception occurred 190 */ 191 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey( 192 long contentSearchId) 193 throws com.liferay.portal.kernel.exception.SystemException { 194 return getPersistence().fetchByPrimaryKey(contentSearchId); 195 } 196 197 /** 198 * Returns all the journal content searchs where articleId = ?. 199 * 200 * @param articleId the article ID 201 * @return the matching journal content searchs 202 * @throws SystemException if a system exception occurred 203 */ 204 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 205 java.lang.String articleId) 206 throws com.liferay.portal.kernel.exception.SystemException { 207 return getPersistence().findByArticleId(articleId); 208 } 209 210 /** 211 * Returns a range of all the journal content searchs where articleId = ?. 212 * 213 * <p> 214 * 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. 215 * </p> 216 * 217 * @param articleId the article ID 218 * @param start the lower bound of the range of journal content searchs 219 * @param end the upper bound of the range of journal content searchs (not inclusive) 220 * @return the range of matching journal content searchs 221 * @throws SystemException if a system exception occurred 222 */ 223 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 224 java.lang.String articleId, int start, int end) 225 throws com.liferay.portal.kernel.exception.SystemException { 226 return getPersistence().findByArticleId(articleId, start, end); 227 } 228 229 /** 230 * Returns an ordered range of all the journal content searchs where articleId = ?. 231 * 232 * <p> 233 * 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. 234 * </p> 235 * 236 * @param articleId the article ID 237 * @param start the lower bound of the range of journal content searchs 238 * @param end the upper bound of the range of journal content searchs (not inclusive) 239 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 240 * @return the ordered range of matching journal content searchs 241 * @throws SystemException if a system exception occurred 242 */ 243 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 244 java.lang.String articleId, int start, int end, 245 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 246 throws com.liferay.portal.kernel.exception.SystemException { 247 return getPersistence() 248 .findByArticleId(articleId, start, end, orderByComparator); 249 } 250 251 /** 252 * Returns the first journal content search in the ordered set where articleId = ?. 253 * 254 * <p> 255 * 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. 256 * </p> 257 * 258 * @param articleId the article ID 259 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 260 * @return the first matching journal content search 261 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 262 * @throws SystemException if a system exception occurred 263 */ 264 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First( 265 java.lang.String articleId, 266 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 267 throws com.liferay.portal.kernel.exception.SystemException, 268 com.liferay.portlet.journal.NoSuchContentSearchException { 269 return getPersistence() 270 .findByArticleId_First(articleId, orderByComparator); 271 } 272 273 /** 274 * Returns the last journal content search in the ordered set where articleId = ?. 275 * 276 * <p> 277 * 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. 278 * </p> 279 * 280 * @param articleId the article ID 281 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 282 * @return the last matching journal content search 283 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 284 * @throws SystemException if a system exception occurred 285 */ 286 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last( 287 java.lang.String articleId, 288 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 289 throws com.liferay.portal.kernel.exception.SystemException, 290 com.liferay.portlet.journal.NoSuchContentSearchException { 291 return getPersistence() 292 .findByArticleId_Last(articleId, orderByComparator); 293 } 294 295 /** 296 * Returns the journal content searchs before and after the current journal content search in the ordered set where articleId = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param contentSearchId the primary key of the current journal content search 303 * @param articleId the article ID 304 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 305 * @return the previous, current, and next journal content search 306 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 307 * @throws SystemException if a system exception occurred 308 */ 309 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext( 310 long contentSearchId, java.lang.String articleId, 311 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 312 throws com.liferay.portal.kernel.exception.SystemException, 313 com.liferay.portlet.journal.NoSuchContentSearchException { 314 return getPersistence() 315 .findByArticleId_PrevAndNext(contentSearchId, articleId, 316 orderByComparator); 317 } 318 319 /** 320 * Returns all the journal content searchs where groupId = ? and privateLayout = ?. 321 * 322 * @param groupId the group ID 323 * @param privateLayout the private layout 324 * @return the matching journal content searchs 325 * @throws SystemException if a system exception occurred 326 */ 327 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 328 long groupId, boolean privateLayout) 329 throws com.liferay.portal.kernel.exception.SystemException { 330 return getPersistence().findByG_P(groupId, privateLayout); 331 } 332 333 /** 334 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param groupId the group ID 341 * @param privateLayout the private layout 342 * @param start the lower bound of the range of journal content searchs 343 * @param end the upper bound of the range of journal content searchs (not inclusive) 344 * @return the range of matching journal content searchs 345 * @throws SystemException if a system exception occurred 346 */ 347 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 348 long groupId, boolean privateLayout, int start, int end) 349 throws com.liferay.portal.kernel.exception.SystemException { 350 return getPersistence().findByG_P(groupId, privateLayout, start, end); 351 } 352 353 /** 354 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ?. 355 * 356 * <p> 357 * 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. 358 * </p> 359 * 360 * @param groupId the group ID 361 * @param privateLayout the private layout 362 * @param start the lower bound of the range of journal content searchs 363 * @param end the upper bound of the range of journal content searchs (not inclusive) 364 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 365 * @return the ordered range of matching journal content searchs 366 * @throws SystemException if a system exception occurred 367 */ 368 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 369 long groupId, boolean privateLayout, int start, int end, 370 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 371 throws com.liferay.portal.kernel.exception.SystemException { 372 return getPersistence() 373 .findByG_P(groupId, privateLayout, start, end, 374 orderByComparator); 375 } 376 377 /** 378 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ?. 379 * 380 * <p> 381 * 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. 382 * </p> 383 * 384 * @param groupId the group ID 385 * @param privateLayout the private layout 386 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 387 * @return the first matching journal content search 388 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 389 * @throws SystemException if a system exception occurred 390 */ 391 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First( 392 long groupId, boolean privateLayout, 393 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 394 throws com.liferay.portal.kernel.exception.SystemException, 395 com.liferay.portlet.journal.NoSuchContentSearchException { 396 return getPersistence() 397 .findByG_P_First(groupId, privateLayout, orderByComparator); 398 } 399 400 /** 401 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ?. 402 * 403 * <p> 404 * 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. 405 * </p> 406 * 407 * @param groupId the group ID 408 * @param privateLayout the private layout 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the last matching journal content search 411 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last( 415 long groupId, boolean privateLayout, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.kernel.exception.SystemException, 418 com.liferay.portlet.journal.NoSuchContentSearchException { 419 return getPersistence() 420 .findByG_P_Last(groupId, privateLayout, orderByComparator); 421 } 422 423 /** 424 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ?. 425 * 426 * <p> 427 * 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. 428 * </p> 429 * 430 * @param contentSearchId the primary key of the current journal content search 431 * @param groupId the group ID 432 * @param privateLayout the private layout 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the previous, current, and next journal content search 435 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext( 439 long contentSearchId, long groupId, boolean privateLayout, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.journal.NoSuchContentSearchException { 443 return getPersistence() 444 .findByG_P_PrevAndNext(contentSearchId, groupId, 445 privateLayout, orderByComparator); 446 } 447 448 /** 449 * Returns all the journal content searchs where groupId = ? and articleId = ?. 450 * 451 * @param groupId the group ID 452 * @param articleId the article ID 453 * @return the matching journal content searchs 454 * @throws SystemException if a system exception occurred 455 */ 456 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 457 long groupId, java.lang.String articleId) 458 throws com.liferay.portal.kernel.exception.SystemException { 459 return getPersistence().findByG_A(groupId, articleId); 460 } 461 462 /** 463 * Returns a range of all the journal content searchs where groupId = ? and articleId = ?. 464 * 465 * <p> 466 * 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. 467 * </p> 468 * 469 * @param groupId the group ID 470 * @param articleId the article ID 471 * @param start the lower bound of the range of journal content searchs 472 * @param end the upper bound of the range of journal content searchs (not inclusive) 473 * @return the range of matching journal content searchs 474 * @throws SystemException if a system exception occurred 475 */ 476 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 477 long groupId, java.lang.String articleId, int start, int end) 478 throws com.liferay.portal.kernel.exception.SystemException { 479 return getPersistence().findByG_A(groupId, articleId, start, end); 480 } 481 482 /** 483 * Returns an ordered range of all the journal content searchs where groupId = ? and articleId = ?. 484 * 485 * <p> 486 * 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. 487 * </p> 488 * 489 * @param groupId the group ID 490 * @param articleId the article ID 491 * @param start the lower bound of the range of journal content searchs 492 * @param end the upper bound of the range of journal content searchs (not inclusive) 493 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 494 * @return the ordered range of matching journal content searchs 495 * @throws SystemException if a system exception occurred 496 */ 497 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 498 long groupId, java.lang.String articleId, int start, int end, 499 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 500 throws com.liferay.portal.kernel.exception.SystemException { 501 return getPersistence() 502 .findByG_A(groupId, articleId, start, end, orderByComparator); 503 } 504 505 /** 506 * Returns the first journal content search in the ordered set where groupId = ? and articleId = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param groupId the group ID 513 * @param articleId the article ID 514 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 515 * @return the first matching journal content search 516 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 517 * @throws SystemException if a system exception occurred 518 */ 519 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First( 520 long groupId, java.lang.String articleId, 521 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 522 throws com.liferay.portal.kernel.exception.SystemException, 523 com.liferay.portlet.journal.NoSuchContentSearchException { 524 return getPersistence() 525 .findByG_A_First(groupId, articleId, orderByComparator); 526 } 527 528 /** 529 * Returns the last journal content search in the ordered set where groupId = ? and articleId = ?. 530 * 531 * <p> 532 * 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. 533 * </p> 534 * 535 * @param groupId the group ID 536 * @param articleId the article ID 537 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 538 * @return the last matching journal content search 539 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 540 * @throws SystemException if a system exception occurred 541 */ 542 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last( 543 long groupId, java.lang.String articleId, 544 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 545 throws com.liferay.portal.kernel.exception.SystemException, 546 com.liferay.portlet.journal.NoSuchContentSearchException { 547 return getPersistence() 548 .findByG_A_Last(groupId, articleId, orderByComparator); 549 } 550 551 /** 552 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and articleId = ?. 553 * 554 * <p> 555 * 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. 556 * </p> 557 * 558 * @param contentSearchId the primary key of the current journal content search 559 * @param groupId the group ID 560 * @param articleId the article ID 561 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 562 * @return the previous, current, and next journal content search 563 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 564 * @throws SystemException if a system exception occurred 565 */ 566 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext( 567 long contentSearchId, long groupId, java.lang.String articleId, 568 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 569 throws com.liferay.portal.kernel.exception.SystemException, 570 com.liferay.portlet.journal.NoSuchContentSearchException { 571 return getPersistence() 572 .findByG_A_PrevAndNext(contentSearchId, groupId, articleId, 573 orderByComparator); 574 } 575 576 /** 577 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 578 * 579 * @param groupId the group ID 580 * @param privateLayout the private layout 581 * @param layoutId the layout ID 582 * @return the matching journal content searchs 583 * @throws SystemException if a system exception occurred 584 */ 585 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 586 long groupId, boolean privateLayout, long layoutId) 587 throws com.liferay.portal.kernel.exception.SystemException { 588 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId); 589 } 590 591 /** 592 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 593 * 594 * <p> 595 * 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. 596 * </p> 597 * 598 * @param groupId the group ID 599 * @param privateLayout the private layout 600 * @param layoutId the layout ID 601 * @param start the lower bound of the range of journal content searchs 602 * @param end the upper bound of the range of journal content searchs (not inclusive) 603 * @return the range of matching journal content searchs 604 * @throws SystemException if a system exception occurred 605 */ 606 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 607 long groupId, boolean privateLayout, long layoutId, int start, int end) 608 throws com.liferay.portal.kernel.exception.SystemException { 609 return getPersistence() 610 .findByG_P_L(groupId, privateLayout, layoutId, start, end); 611 } 612 613 /** 614 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 615 * 616 * <p> 617 * 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. 618 * </p> 619 * 620 * @param groupId the group ID 621 * @param privateLayout the private layout 622 * @param layoutId the layout ID 623 * @param start the lower bound of the range of journal content searchs 624 * @param end the upper bound of the range of journal content searchs (not inclusive) 625 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 626 * @return the ordered range of matching journal content searchs 627 * @throws SystemException if a system exception occurred 628 */ 629 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 630 long groupId, boolean privateLayout, long layoutId, int start, int end, 631 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 632 throws com.liferay.portal.kernel.exception.SystemException { 633 return getPersistence() 634 .findByG_P_L(groupId, privateLayout, layoutId, start, end, 635 orderByComparator); 636 } 637 638 /** 639 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 640 * 641 * <p> 642 * 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. 643 * </p> 644 * 645 * @param groupId the group ID 646 * @param privateLayout the private layout 647 * @param layoutId the layout ID 648 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 649 * @return the first matching journal content search 650 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 651 * @throws SystemException if a system exception occurred 652 */ 653 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First( 654 long groupId, boolean privateLayout, long layoutId, 655 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 656 throws com.liferay.portal.kernel.exception.SystemException, 657 com.liferay.portlet.journal.NoSuchContentSearchException { 658 return getPersistence() 659 .findByG_P_L_First(groupId, privateLayout, layoutId, 660 orderByComparator); 661 } 662 663 /** 664 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 665 * 666 * <p> 667 * 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. 668 * </p> 669 * 670 * @param groupId the group ID 671 * @param privateLayout the private layout 672 * @param layoutId the layout ID 673 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 674 * @return the last matching journal content search 675 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 676 * @throws SystemException if a system exception occurred 677 */ 678 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last( 679 long groupId, boolean privateLayout, long layoutId, 680 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 681 throws com.liferay.portal.kernel.exception.SystemException, 682 com.liferay.portlet.journal.NoSuchContentSearchException { 683 return getPersistence() 684 .findByG_P_L_Last(groupId, privateLayout, layoutId, 685 orderByComparator); 686 } 687 688 /** 689 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 690 * 691 * <p> 692 * 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. 693 * </p> 694 * 695 * @param contentSearchId the primary key of the current journal content search 696 * @param groupId the group ID 697 * @param privateLayout the private layout 698 * @param layoutId the layout ID 699 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 700 * @return the previous, current, and next journal content search 701 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext( 705 long contentSearchId, long groupId, boolean privateLayout, 706 long layoutId, 707 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 708 throws com.liferay.portal.kernel.exception.SystemException, 709 com.liferay.portlet.journal.NoSuchContentSearchException { 710 return getPersistence() 711 .findByG_P_L_PrevAndNext(contentSearchId, groupId, 712 privateLayout, layoutId, orderByComparator); 713 } 714 715 /** 716 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 717 * 718 * @param groupId the group ID 719 * @param privateLayout the private layout 720 * @param articleId the article ID 721 * @return the matching journal content searchs 722 * @throws SystemException if a system exception occurred 723 */ 724 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 725 long groupId, boolean privateLayout, java.lang.String articleId) 726 throws com.liferay.portal.kernel.exception.SystemException { 727 return getPersistence().findByG_P_A(groupId, privateLayout, articleId); 728 } 729 730 /** 731 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 732 * 733 * <p> 734 * 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. 735 * </p> 736 * 737 * @param groupId the group ID 738 * @param privateLayout the private layout 739 * @param articleId the article ID 740 * @param start the lower bound of the range of journal content searchs 741 * @param end the upper bound of the range of journal content searchs (not inclusive) 742 * @return the range of matching journal content searchs 743 * @throws SystemException if a system exception occurred 744 */ 745 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 746 long groupId, boolean privateLayout, java.lang.String articleId, 747 int start, int end) 748 throws com.liferay.portal.kernel.exception.SystemException { 749 return getPersistence() 750 .findByG_P_A(groupId, privateLayout, articleId, start, end); 751 } 752 753 /** 754 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 755 * 756 * <p> 757 * 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. 758 * </p> 759 * 760 * @param groupId the group ID 761 * @param privateLayout the private layout 762 * @param articleId the article ID 763 * @param start the lower bound of the range of journal content searchs 764 * @param end the upper bound of the range of journal content searchs (not inclusive) 765 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 766 * @return the ordered range of matching journal content searchs 767 * @throws SystemException if a system exception occurred 768 */ 769 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 770 long groupId, boolean privateLayout, java.lang.String articleId, 771 int start, int end, 772 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 773 throws com.liferay.portal.kernel.exception.SystemException { 774 return getPersistence() 775 .findByG_P_A(groupId, privateLayout, articleId, start, end, 776 orderByComparator); 777 } 778 779 /** 780 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 781 * 782 * <p> 783 * 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. 784 * </p> 785 * 786 * @param groupId the group ID 787 * @param privateLayout the private layout 788 * @param articleId the article ID 789 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 790 * @return the first matching journal content search 791 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 792 * @throws SystemException if a system exception occurred 793 */ 794 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First( 795 long groupId, boolean privateLayout, java.lang.String articleId, 796 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 797 throws com.liferay.portal.kernel.exception.SystemException, 798 com.liferay.portlet.journal.NoSuchContentSearchException { 799 return getPersistence() 800 .findByG_P_A_First(groupId, privateLayout, articleId, 801 orderByComparator); 802 } 803 804 /** 805 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 806 * 807 * <p> 808 * 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. 809 * </p> 810 * 811 * @param groupId the group ID 812 * @param privateLayout the private layout 813 * @param articleId the article ID 814 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 815 * @return the last matching journal content search 816 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 817 * @throws SystemException if a system exception occurred 818 */ 819 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last( 820 long groupId, boolean privateLayout, java.lang.String articleId, 821 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 822 throws com.liferay.portal.kernel.exception.SystemException, 823 com.liferay.portlet.journal.NoSuchContentSearchException { 824 return getPersistence() 825 .findByG_P_A_Last(groupId, privateLayout, articleId, 826 orderByComparator); 827 } 828 829 /** 830 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 831 * 832 * <p> 833 * 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. 834 * </p> 835 * 836 * @param contentSearchId the primary key of the current journal content search 837 * @param groupId the group ID 838 * @param privateLayout the private layout 839 * @param articleId the article ID 840 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 841 * @return the previous, current, and next journal content search 842 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 843 * @throws SystemException if a system exception occurred 844 */ 845 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext( 846 long contentSearchId, long groupId, boolean privateLayout, 847 java.lang.String articleId, 848 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 849 throws com.liferay.portal.kernel.exception.SystemException, 850 com.liferay.portlet.journal.NoSuchContentSearchException { 851 return getPersistence() 852 .findByG_P_A_PrevAndNext(contentSearchId, groupId, 853 privateLayout, articleId, orderByComparator); 854 } 855 856 /** 857 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 858 * 859 * @param groupId the group ID 860 * @param privateLayout the private layout 861 * @param layoutId the layout ID 862 * @param portletId the portlet ID 863 * @return the matching journal content searchs 864 * @throws SystemException if a system exception occurred 865 */ 866 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 867 long groupId, boolean privateLayout, long layoutId, 868 java.lang.String portletId) 869 throws com.liferay.portal.kernel.exception.SystemException { 870 return getPersistence() 871 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId); 872 } 873 874 /** 875 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 876 * 877 * <p> 878 * 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. 879 * </p> 880 * 881 * @param groupId the group ID 882 * @param privateLayout the private layout 883 * @param layoutId the layout ID 884 * @param portletId the portlet ID 885 * @param start the lower bound of the range of journal content searchs 886 * @param end the upper bound of the range of journal content searchs (not inclusive) 887 * @return the range of matching journal content searchs 888 * @throws SystemException if a system exception occurred 889 */ 890 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 891 long groupId, boolean privateLayout, long layoutId, 892 java.lang.String portletId, int start, int end) 893 throws com.liferay.portal.kernel.exception.SystemException { 894 return getPersistence() 895 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId, 896 start, end); 897 } 898 899 /** 900 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 901 * 902 * <p> 903 * 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. 904 * </p> 905 * 906 * @param groupId the group ID 907 * @param privateLayout the private layout 908 * @param layoutId the layout ID 909 * @param portletId the portlet ID 910 * @param start the lower bound of the range of journal content searchs 911 * @param end the upper bound of the range of journal content searchs (not inclusive) 912 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 913 * @return the ordered range of matching journal content searchs 914 * @throws SystemException if a system exception occurred 915 */ 916 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 917 long groupId, boolean privateLayout, long layoutId, 918 java.lang.String portletId, int start, int end, 919 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 920 throws com.liferay.portal.kernel.exception.SystemException { 921 return getPersistence() 922 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId, 923 start, end, orderByComparator); 924 } 925 926 /** 927 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 928 * 929 * <p> 930 * 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. 931 * </p> 932 * 933 * @param groupId the group ID 934 * @param privateLayout the private layout 935 * @param layoutId the layout ID 936 * @param portletId the portlet ID 937 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 938 * @return the first matching journal content search 939 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 940 * @throws SystemException if a system exception occurred 941 */ 942 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First( 943 long groupId, boolean privateLayout, long layoutId, 944 java.lang.String portletId, 945 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 946 throws com.liferay.portal.kernel.exception.SystemException, 947 com.liferay.portlet.journal.NoSuchContentSearchException { 948 return getPersistence() 949 .findByG_P_L_P_First(groupId, privateLayout, layoutId, 950 portletId, orderByComparator); 951 } 952 953 /** 954 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 955 * 956 * <p> 957 * 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. 958 * </p> 959 * 960 * @param groupId the group ID 961 * @param privateLayout the private layout 962 * @param layoutId the layout ID 963 * @param portletId the portlet ID 964 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 965 * @return the last matching journal content search 966 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 967 * @throws SystemException if a system exception occurred 968 */ 969 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last( 970 long groupId, boolean privateLayout, long layoutId, 971 java.lang.String portletId, 972 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 973 throws com.liferay.portal.kernel.exception.SystemException, 974 com.liferay.portlet.journal.NoSuchContentSearchException { 975 return getPersistence() 976 .findByG_P_L_P_Last(groupId, privateLayout, layoutId, 977 portletId, orderByComparator); 978 } 979 980 /** 981 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 982 * 983 * <p> 984 * 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. 985 * </p> 986 * 987 * @param contentSearchId the primary key of the current journal content search 988 * @param groupId the group ID 989 * @param privateLayout the private layout 990 * @param layoutId the layout ID 991 * @param portletId the portlet ID 992 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 993 * @return the previous, current, and next journal content search 994 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 995 * @throws SystemException if a system exception occurred 996 */ 997 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext( 998 long contentSearchId, long groupId, boolean privateLayout, 999 long layoutId, java.lang.String portletId, 1000 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1001 throws com.liferay.portal.kernel.exception.SystemException, 1002 com.liferay.portlet.journal.NoSuchContentSearchException { 1003 return getPersistence() 1004 .findByG_P_L_P_PrevAndNext(contentSearchId, groupId, 1005 privateLayout, layoutId, portletId, orderByComparator); 1006 } 1007 1008 /** 1009 * Returns the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found. 1010 * 1011 * @param groupId the group ID 1012 * @param privateLayout the private layout 1013 * @param layoutId the layout ID 1014 * @param portletId the portlet ID 1015 * @param articleId the article ID 1016 * @return the matching journal content search 1017 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1018 * @throws SystemException if a system exception occurred 1019 */ 1020 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A( 1021 long groupId, boolean privateLayout, long layoutId, 1022 java.lang.String portletId, java.lang.String articleId) 1023 throws com.liferay.portal.kernel.exception.SystemException, 1024 com.liferay.portlet.journal.NoSuchContentSearchException { 1025 return getPersistence() 1026 .findByG_P_L_P_A(groupId, privateLayout, layoutId, 1027 portletId, articleId); 1028 } 1029 1030 /** 1031 * Returns the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 1032 * 1033 * @param groupId the group ID 1034 * @param privateLayout the private layout 1035 * @param layoutId the layout ID 1036 * @param portletId the portlet ID 1037 * @param articleId the article ID 1038 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1039 * @throws SystemException if a system exception occurred 1040 */ 1041 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1042 long groupId, boolean privateLayout, long layoutId, 1043 java.lang.String portletId, java.lang.String articleId) 1044 throws com.liferay.portal.kernel.exception.SystemException { 1045 return getPersistence() 1046 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId, 1047 portletId, articleId); 1048 } 1049 1050 /** 1051 * Returns the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 1052 * 1053 * @param groupId the group ID 1054 * @param privateLayout the private layout 1055 * @param layoutId the layout ID 1056 * @param portletId the portlet ID 1057 * @param articleId the article ID 1058 * @param retrieveFromCache whether to use the finder cache 1059 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1063 long groupId, boolean privateLayout, long layoutId, 1064 java.lang.String portletId, java.lang.String articleId, 1065 boolean retrieveFromCache) 1066 throws com.liferay.portal.kernel.exception.SystemException { 1067 return getPersistence() 1068 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId, 1069 portletId, articleId, retrieveFromCache); 1070 } 1071 1072 /** 1073 * Returns all the journal content searchs. 1074 * 1075 * @return the journal content searchs 1076 * @throws SystemException if a system exception occurred 1077 */ 1078 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll() 1079 throws com.liferay.portal.kernel.exception.SystemException { 1080 return getPersistence().findAll(); 1081 } 1082 1083 /** 1084 * Returns a range of all the journal content searchs. 1085 * 1086 * <p> 1087 * 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. 1088 * </p> 1089 * 1090 * @param start the lower bound of the range of journal content searchs 1091 * @param end the upper bound of the range of journal content searchs (not inclusive) 1092 * @return the range of journal content searchs 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1096 int start, int end) 1097 throws com.liferay.portal.kernel.exception.SystemException { 1098 return getPersistence().findAll(start, end); 1099 } 1100 1101 /** 1102 * Returns an ordered range of all the journal content searchs. 1103 * 1104 * <p> 1105 * 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. 1106 * </p> 1107 * 1108 * @param start the lower bound of the range of journal content searchs 1109 * @param end the upper bound of the range of journal content searchs (not inclusive) 1110 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1111 * @return the ordered range of journal content searchs 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1115 int start, int end, 1116 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1117 throws com.liferay.portal.kernel.exception.SystemException { 1118 return getPersistence().findAll(start, end, orderByComparator); 1119 } 1120 1121 /** 1122 * Removes all the journal content searchs where articleId = ? from the database. 1123 * 1124 * @param articleId the article ID 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public static void removeByArticleId(java.lang.String articleId) 1128 throws com.liferay.portal.kernel.exception.SystemException { 1129 getPersistence().removeByArticleId(articleId); 1130 } 1131 1132 /** 1133 * Removes all the journal content searchs where groupId = ? and privateLayout = ? from the database. 1134 * 1135 * @param groupId the group ID 1136 * @param privateLayout the private layout 1137 * @throws SystemException if a system exception occurred 1138 */ 1139 public static void removeByG_P(long groupId, boolean privateLayout) 1140 throws com.liferay.portal.kernel.exception.SystemException { 1141 getPersistence().removeByG_P(groupId, privateLayout); 1142 } 1143 1144 /** 1145 * Removes all the journal content searchs where groupId = ? and articleId = ? from the database. 1146 * 1147 * @param groupId the group ID 1148 * @param articleId the article ID 1149 * @throws SystemException if a system exception occurred 1150 */ 1151 public static void removeByG_A(long groupId, java.lang.String articleId) 1152 throws com.liferay.portal.kernel.exception.SystemException { 1153 getPersistence().removeByG_A(groupId, articleId); 1154 } 1155 1156 /** 1157 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? from the database. 1158 * 1159 * @param groupId the group ID 1160 * @param privateLayout the private layout 1161 * @param layoutId the layout ID 1162 * @throws SystemException if a system exception occurred 1163 */ 1164 public static void removeByG_P_L(long groupId, boolean privateLayout, 1165 long layoutId) 1166 throws com.liferay.portal.kernel.exception.SystemException { 1167 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId); 1168 } 1169 1170 /** 1171 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ? from the database. 1172 * 1173 * @param groupId the group ID 1174 * @param privateLayout the private layout 1175 * @param articleId the article ID 1176 * @throws SystemException if a system exception occurred 1177 */ 1178 public static void removeByG_P_A(long groupId, boolean privateLayout, 1179 java.lang.String articleId) 1180 throws com.liferay.portal.kernel.exception.SystemException { 1181 getPersistence().removeByG_P_A(groupId, privateLayout, articleId); 1182 } 1183 1184 /** 1185 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? from the database. 1186 * 1187 * @param groupId the group ID 1188 * @param privateLayout the private layout 1189 * @param layoutId the layout ID 1190 * @param portletId the portlet ID 1191 * @throws SystemException if a system exception occurred 1192 */ 1193 public static void removeByG_P_L_P(long groupId, boolean privateLayout, 1194 long layoutId, java.lang.String portletId) 1195 throws com.liferay.portal.kernel.exception.SystemException { 1196 getPersistence() 1197 .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId); 1198 } 1199 1200 /** 1201 * Removes the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? from the database. 1202 * 1203 * @param groupId the group ID 1204 * @param privateLayout the private layout 1205 * @param layoutId the layout ID 1206 * @param portletId the portlet ID 1207 * @param articleId the article ID 1208 * @throws SystemException if a system exception occurred 1209 */ 1210 public static void removeByG_P_L_P_A(long groupId, boolean privateLayout, 1211 long layoutId, java.lang.String portletId, java.lang.String articleId) 1212 throws com.liferay.portal.kernel.exception.SystemException, 1213 com.liferay.portlet.journal.NoSuchContentSearchException { 1214 getPersistence() 1215 .removeByG_P_L_P_A(groupId, privateLayout, layoutId, portletId, 1216 articleId); 1217 } 1218 1219 /** 1220 * Removes all the journal content searchs from the database. 1221 * 1222 * @throws SystemException if a system exception occurred 1223 */ 1224 public static void removeAll() 1225 throws com.liferay.portal.kernel.exception.SystemException { 1226 getPersistence().removeAll(); 1227 } 1228 1229 /** 1230 * Returns the number of journal content searchs where articleId = ?. 1231 * 1232 * @param articleId the article ID 1233 * @return the number of matching journal content searchs 1234 * @throws SystemException if a system exception occurred 1235 */ 1236 public static int countByArticleId(java.lang.String articleId) 1237 throws com.liferay.portal.kernel.exception.SystemException { 1238 return getPersistence().countByArticleId(articleId); 1239 } 1240 1241 /** 1242 * Returns the number of journal content searchs where groupId = ? and privateLayout = ?. 1243 * 1244 * @param groupId the group ID 1245 * @param privateLayout the private layout 1246 * @return the number of matching journal content searchs 1247 * @throws SystemException if a system exception occurred 1248 */ 1249 public static int countByG_P(long groupId, boolean privateLayout) 1250 throws com.liferay.portal.kernel.exception.SystemException { 1251 return getPersistence().countByG_P(groupId, privateLayout); 1252 } 1253 1254 /** 1255 * Returns the number of journal content searchs where groupId = ? and articleId = ?. 1256 * 1257 * @param groupId the group ID 1258 * @param articleId the article ID 1259 * @return the number of matching journal content searchs 1260 * @throws SystemException if a system exception occurred 1261 */ 1262 public static int countByG_A(long groupId, java.lang.String articleId) 1263 throws com.liferay.portal.kernel.exception.SystemException { 1264 return getPersistence().countByG_A(groupId, articleId); 1265 } 1266 1267 /** 1268 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 1269 * 1270 * @param groupId the group ID 1271 * @param privateLayout the private layout 1272 * @param layoutId the layout ID 1273 * @return the number of matching journal content searchs 1274 * @throws SystemException if a system exception occurred 1275 */ 1276 public static int countByG_P_L(long groupId, boolean privateLayout, 1277 long layoutId) 1278 throws com.liferay.portal.kernel.exception.SystemException { 1279 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId); 1280 } 1281 1282 /** 1283 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 1284 * 1285 * @param groupId the group ID 1286 * @param privateLayout the private layout 1287 * @param articleId the article ID 1288 * @return the number of matching journal content searchs 1289 * @throws SystemException if a system exception occurred 1290 */ 1291 public static int countByG_P_A(long groupId, boolean privateLayout, 1292 java.lang.String articleId) 1293 throws com.liferay.portal.kernel.exception.SystemException { 1294 return getPersistence().countByG_P_A(groupId, privateLayout, articleId); 1295 } 1296 1297 /** 1298 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1299 * 1300 * @param groupId the group ID 1301 * @param privateLayout the private layout 1302 * @param layoutId the layout ID 1303 * @param portletId the portlet ID 1304 * @return the number of matching journal content searchs 1305 * @throws SystemException if a system exception occurred 1306 */ 1307 public static int countByG_P_L_P(long groupId, boolean privateLayout, 1308 long layoutId, java.lang.String portletId) 1309 throws com.liferay.portal.kernel.exception.SystemException { 1310 return getPersistence() 1311 .countByG_P_L_P(groupId, privateLayout, layoutId, portletId); 1312 } 1313 1314 /** 1315 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ?. 1316 * 1317 * @param groupId the group ID 1318 * @param privateLayout the private layout 1319 * @param layoutId the layout ID 1320 * @param portletId the portlet ID 1321 * @param articleId the article ID 1322 * @return the number of matching journal content searchs 1323 * @throws SystemException if a system exception occurred 1324 */ 1325 public static int countByG_P_L_P_A(long groupId, boolean privateLayout, 1326 long layoutId, java.lang.String portletId, java.lang.String articleId) 1327 throws com.liferay.portal.kernel.exception.SystemException { 1328 return getPersistence() 1329 .countByG_P_L_P_A(groupId, privateLayout, layoutId, 1330 portletId, articleId); 1331 } 1332 1333 /** 1334 * Returns the number of journal content searchs. 1335 * 1336 * @return the number of journal content searchs 1337 * @throws SystemException if a system exception occurred 1338 */ 1339 public static int countAll() 1340 throws com.liferay.portal.kernel.exception.SystemException { 1341 return getPersistence().countAll(); 1342 } 1343 1344 public static JournalContentSearchPersistence getPersistence() { 1345 if (_persistence == null) { 1346 _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName()); 1347 1348 ReferenceRegistry.registerReference(JournalContentSearchUtil.class, 1349 "_persistence"); 1350 } 1351 1352 return _persistence; 1353 } 1354 1355 public void setPersistence(JournalContentSearchPersistence persistence) { 1356 _persistence = persistence; 1357 1358 ReferenceRegistry.registerReference(JournalContentSearchUtil.class, 1359 "_persistence"); 1360 } 1361 1362 private static JournalContentSearchPersistence _persistence; 1363 }