001 /** 002 * Copyright (c) 2000-2013 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 aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil; 020 import com.liferay.portal.kernel.dao.orm.DynamicQuery; 021 import com.liferay.portal.kernel.exception.SystemException; 022 import com.liferay.portal.kernel.util.OrderByComparator; 023 import com.liferay.portal.kernel.util.ReferenceRegistry; 024 import com.liferay.portal.service.ServiceContext; 025 026 import com.liferay.portlet.journal.model.JournalContentSearch; 027 028 import java.util.List; 029 030 /** 031 * 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. 032 * 033 * <p> 034 * Caching information and settings can be found in <code>portal.properties</code> 035 * </p> 036 * 037 * @author Brian Wing Shun Chan 038 * @see JournalContentSearchPersistence 039 * @see JournalContentSearchPersistenceImpl 040 * @generated 041 */ 042 @ProviderType 043 public class JournalContentSearchUtil { 044 /* 045 * NOTE FOR DEVELOPERS: 046 * 047 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this class. 048 */ 049 050 /** 051 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 052 */ 053 public static void clearCache() { 054 getPersistence().clearCache(); 055 } 056 057 /** 058 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 059 */ 060 public static void clearCache(JournalContentSearch journalContentSearch) { 061 getPersistence().clearCache(journalContentSearch); 062 } 063 064 /** 065 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 066 */ 067 public static long countWithDynamicQuery(DynamicQuery dynamicQuery) 068 throws SystemException { 069 return getPersistence().countWithDynamicQuery(dynamicQuery); 070 } 071 072 /** 073 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 074 */ 075 public static List<JournalContentSearch> findWithDynamicQuery( 076 DynamicQuery dynamicQuery) throws SystemException { 077 return getPersistence().findWithDynamicQuery(dynamicQuery); 078 } 079 080 /** 081 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 082 */ 083 public static List<JournalContentSearch> findWithDynamicQuery( 084 DynamicQuery dynamicQuery, int start, int end) 085 throws SystemException { 086 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 087 } 088 089 /** 090 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 091 */ 092 public static List<JournalContentSearch> findWithDynamicQuery( 093 DynamicQuery dynamicQuery, int start, int end, 094 OrderByComparator orderByComparator) throws SystemException { 095 return getPersistence() 096 .findWithDynamicQuery(dynamicQuery, start, end, 097 orderByComparator); 098 } 099 100 /** 101 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel) 102 */ 103 public static JournalContentSearch update( 104 JournalContentSearch journalContentSearch) throws SystemException { 105 return getPersistence().update(journalContentSearch); 106 } 107 108 /** 109 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, ServiceContext) 110 */ 111 public static JournalContentSearch update( 112 JournalContentSearch journalContentSearch, ServiceContext serviceContext) 113 throws SystemException { 114 return getPersistence().update(journalContentSearch, serviceContext); 115 } 116 117 /** 118 * Returns all the journal content searchs where portletId = ?. 119 * 120 * @param portletId the portlet ID 121 * @return the matching journal content searchs 122 * @throws SystemException if a system exception occurred 123 */ 124 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 125 java.lang.String portletId) 126 throws com.liferay.portal.kernel.exception.SystemException { 127 return getPersistence().findByPortletId(portletId); 128 } 129 130 /** 131 * Returns a range of all the journal content searchs where portletId = ?. 132 * 133 * <p> 134 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 135 * </p> 136 * 137 * @param portletId the portlet ID 138 * @param start the lower bound of the range of journal content searchs 139 * @param end the upper bound of the range of journal content searchs (not inclusive) 140 * @return the range of matching journal content searchs 141 * @throws SystemException if a system exception occurred 142 */ 143 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 144 java.lang.String portletId, int start, int end) 145 throws com.liferay.portal.kernel.exception.SystemException { 146 return getPersistence().findByPortletId(portletId, start, end); 147 } 148 149 /** 150 * Returns an ordered range of all the journal content searchs where portletId = ?. 151 * 152 * <p> 153 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 154 * </p> 155 * 156 * @param portletId the portlet ID 157 * @param start the lower bound of the range of journal content searchs 158 * @param end the upper bound of the range of journal content searchs (not inclusive) 159 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 160 * @return the ordered range of matching journal content searchs 161 * @throws SystemException if a system exception occurred 162 */ 163 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 164 java.lang.String portletId, int start, int end, 165 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 166 throws com.liferay.portal.kernel.exception.SystemException { 167 return getPersistence() 168 .findByPortletId(portletId, start, end, orderByComparator); 169 } 170 171 /** 172 * Returns the first journal content search in the ordered set where portletId = ?. 173 * 174 * @param portletId the portlet ID 175 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 176 * @return the first matching journal content search 177 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 178 * @throws SystemException if a system exception occurred 179 */ 180 public static com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_First( 181 java.lang.String portletId, 182 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 183 throws com.liferay.portal.kernel.exception.SystemException, 184 com.liferay.portlet.journal.NoSuchContentSearchException { 185 return getPersistence() 186 .findByPortletId_First(portletId, orderByComparator); 187 } 188 189 /** 190 * Returns the first journal content search in the ordered set where portletId = ?. 191 * 192 * @param portletId the portlet ID 193 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 194 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_First( 198 java.lang.String portletId, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException { 201 return getPersistence() 202 .fetchByPortletId_First(portletId, orderByComparator); 203 } 204 205 /** 206 * Returns the last journal content search in the ordered set where portletId = ?. 207 * 208 * @param portletId the portlet ID 209 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 210 * @return the last matching journal content search 211 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 212 * @throws SystemException if a system exception occurred 213 */ 214 public static com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_Last( 215 java.lang.String portletId, 216 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 217 throws com.liferay.portal.kernel.exception.SystemException, 218 com.liferay.portlet.journal.NoSuchContentSearchException { 219 return getPersistence() 220 .findByPortletId_Last(portletId, orderByComparator); 221 } 222 223 /** 224 * Returns the last journal content search in the ordered set where portletId = ?. 225 * 226 * @param portletId the portlet ID 227 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 228 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 229 * @throws SystemException if a system exception occurred 230 */ 231 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_Last( 232 java.lang.String portletId, 233 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 234 throws com.liferay.portal.kernel.exception.SystemException { 235 return getPersistence() 236 .fetchByPortletId_Last(portletId, orderByComparator); 237 } 238 239 /** 240 * Returns the journal content searchs before and after the current journal content search in the ordered set where portletId = ?. 241 * 242 * @param contentSearchId the primary key of the current journal content search 243 * @param portletId the portlet ID 244 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 245 * @return the previous, current, and next journal content search 246 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 247 * @throws SystemException if a system exception occurred 248 */ 249 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByPortletId_PrevAndNext( 250 long contentSearchId, java.lang.String portletId, 251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 252 throws com.liferay.portal.kernel.exception.SystemException, 253 com.liferay.portlet.journal.NoSuchContentSearchException { 254 return getPersistence() 255 .findByPortletId_PrevAndNext(contentSearchId, portletId, 256 orderByComparator); 257 } 258 259 /** 260 * Removes all the journal content searchs where portletId = ? from the database. 261 * 262 * @param portletId the portlet ID 263 * @throws SystemException if a system exception occurred 264 */ 265 public static void removeByPortletId(java.lang.String portletId) 266 throws com.liferay.portal.kernel.exception.SystemException { 267 getPersistence().removeByPortletId(portletId); 268 } 269 270 /** 271 * Returns the number of journal content searchs where portletId = ?. 272 * 273 * @param portletId the portlet ID 274 * @return the number of matching journal content searchs 275 * @throws SystemException if a system exception occurred 276 */ 277 public static int countByPortletId(java.lang.String portletId) 278 throws com.liferay.portal.kernel.exception.SystemException { 279 return getPersistence().countByPortletId(portletId); 280 } 281 282 /** 283 * Returns all the journal content searchs where articleId = ?. 284 * 285 * @param articleId the article ID 286 * @return the matching journal content searchs 287 * @throws SystemException if a system exception occurred 288 */ 289 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 290 java.lang.String articleId) 291 throws com.liferay.portal.kernel.exception.SystemException { 292 return getPersistence().findByArticleId(articleId); 293 } 294 295 /** 296 * Returns a range of all the journal content searchs 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 300 * </p> 301 * 302 * @param articleId the article ID 303 * @param start the lower bound of the range of journal content searchs 304 * @param end the upper bound of the range of journal content searchs (not inclusive) 305 * @return the range of matching journal content searchs 306 * @throws SystemException if a system exception occurred 307 */ 308 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 309 java.lang.String articleId, int start, int end) 310 throws com.liferay.portal.kernel.exception.SystemException { 311 return getPersistence().findByArticleId(articleId, start, end); 312 } 313 314 /** 315 * Returns an ordered range of all the journal content searchs where articleId = ?. 316 * 317 * <p> 318 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 319 * </p> 320 * 321 * @param articleId the article ID 322 * @param start the lower bound of the range of journal content searchs 323 * @param end the upper bound of the range of journal content searchs (not inclusive) 324 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 325 * @return the ordered range of matching journal content searchs 326 * @throws SystemException if a system exception occurred 327 */ 328 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 329 java.lang.String articleId, int start, int end, 330 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 331 throws com.liferay.portal.kernel.exception.SystemException { 332 return getPersistence() 333 .findByArticleId(articleId, start, end, orderByComparator); 334 } 335 336 /** 337 * Returns the first journal content search in the ordered set where articleId = ?. 338 * 339 * @param articleId the article ID 340 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 341 * @return the first matching journal content search 342 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 343 * @throws SystemException if a system exception occurred 344 */ 345 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First( 346 java.lang.String articleId, 347 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 348 throws com.liferay.portal.kernel.exception.SystemException, 349 com.liferay.portlet.journal.NoSuchContentSearchException { 350 return getPersistence() 351 .findByArticleId_First(articleId, orderByComparator); 352 } 353 354 /** 355 * Returns the first journal content search in the ordered set where articleId = ?. 356 * 357 * @param articleId the article ID 358 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 359 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 360 * @throws SystemException if a system exception occurred 361 */ 362 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_First( 363 java.lang.String articleId, 364 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 365 throws com.liferay.portal.kernel.exception.SystemException { 366 return getPersistence() 367 .fetchByArticleId_First(articleId, orderByComparator); 368 } 369 370 /** 371 * Returns the last journal content search in the ordered set where articleId = ?. 372 * 373 * @param articleId the article ID 374 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 375 * @return the last matching journal content search 376 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 377 * @throws SystemException if a system exception occurred 378 */ 379 public static com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last( 380 java.lang.String articleId, 381 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 382 throws com.liferay.portal.kernel.exception.SystemException, 383 com.liferay.portlet.journal.NoSuchContentSearchException { 384 return getPersistence() 385 .findByArticleId_Last(articleId, orderByComparator); 386 } 387 388 /** 389 * Returns the last journal content search in the ordered set where articleId = ?. 390 * 391 * @param articleId the article ID 392 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 393 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 394 * @throws SystemException if a system exception occurred 395 */ 396 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_Last( 397 java.lang.String articleId, 398 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 399 throws com.liferay.portal.kernel.exception.SystemException { 400 return getPersistence() 401 .fetchByArticleId_Last(articleId, orderByComparator); 402 } 403 404 /** 405 * Returns the journal content searchs before and after the current journal content search in the ordered set where articleId = ?. 406 * 407 * @param contentSearchId the primary key of the current journal content search 408 * @param articleId the article ID 409 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 410 * @return the previous, current, and next journal content search 411 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext( 415 long contentSearchId, java.lang.String articleId, 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 .findByArticleId_PrevAndNext(contentSearchId, articleId, 421 orderByComparator); 422 } 423 424 /** 425 * Removes all the journal content searchs where articleId = ? from the database. 426 * 427 * @param articleId the article ID 428 * @throws SystemException if a system exception occurred 429 */ 430 public static void removeByArticleId(java.lang.String articleId) 431 throws com.liferay.portal.kernel.exception.SystemException { 432 getPersistence().removeByArticleId(articleId); 433 } 434 435 /** 436 * Returns the number of journal content searchs where articleId = ?. 437 * 438 * @param articleId the article ID 439 * @return the number of matching journal content searchs 440 * @throws SystemException if a system exception occurred 441 */ 442 public static int countByArticleId(java.lang.String articleId) 443 throws com.liferay.portal.kernel.exception.SystemException { 444 return getPersistence().countByArticleId(articleId); 445 } 446 447 /** 448 * Returns all the journal content searchs where groupId = ? and privateLayout = ?. 449 * 450 * @param groupId the group ID 451 * @param privateLayout the private layout 452 * @return the matching journal content searchs 453 * @throws SystemException if a system exception occurred 454 */ 455 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 456 long groupId, boolean privateLayout) 457 throws com.liferay.portal.kernel.exception.SystemException { 458 return getPersistence().findByG_P(groupId, privateLayout); 459 } 460 461 /** 462 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ?. 463 * 464 * <p> 465 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 466 * </p> 467 * 468 * @param groupId the group ID 469 * @param privateLayout the private layout 470 * @param start the lower bound of the range of journal content searchs 471 * @param end the upper bound of the range of journal content searchs (not inclusive) 472 * @return the range of matching journal content searchs 473 * @throws SystemException if a system exception occurred 474 */ 475 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 476 long groupId, boolean privateLayout, int start, int end) 477 throws com.liferay.portal.kernel.exception.SystemException { 478 return getPersistence().findByG_P(groupId, privateLayout, start, end); 479 } 480 481 /** 482 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ?. 483 * 484 * <p> 485 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 486 * </p> 487 * 488 * @param groupId the group ID 489 * @param privateLayout the private layout 490 * @param start the lower bound of the range of journal content searchs 491 * @param end the upper bound of the range of journal content searchs (not inclusive) 492 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 493 * @return the ordered range of matching journal content searchs 494 * @throws SystemException if a system exception occurred 495 */ 496 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 497 long groupId, boolean privateLayout, int start, int end, 498 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 499 throws com.liferay.portal.kernel.exception.SystemException { 500 return getPersistence() 501 .findByG_P(groupId, privateLayout, start, end, 502 orderByComparator); 503 } 504 505 /** 506 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ?. 507 * 508 * @param groupId the group ID 509 * @param privateLayout the private layout 510 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 511 * @return the first matching journal content search 512 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 513 * @throws SystemException if a system exception occurred 514 */ 515 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First( 516 long groupId, boolean privateLayout, 517 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 518 throws com.liferay.portal.kernel.exception.SystemException, 519 com.liferay.portlet.journal.NoSuchContentSearchException { 520 return getPersistence() 521 .findByG_P_First(groupId, privateLayout, orderByComparator); 522 } 523 524 /** 525 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ?. 526 * 527 * @param groupId the group ID 528 * @param privateLayout the private layout 529 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 530 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 531 * @throws SystemException if a system exception occurred 532 */ 533 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_First( 534 long groupId, boolean privateLayout, 535 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 536 throws com.liferay.portal.kernel.exception.SystemException { 537 return getPersistence() 538 .fetchByG_P_First(groupId, privateLayout, orderByComparator); 539 } 540 541 /** 542 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ?. 543 * 544 * @param groupId the group ID 545 * @param privateLayout the private layout 546 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 547 * @return the last matching journal content search 548 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 549 * @throws SystemException if a system exception occurred 550 */ 551 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last( 552 long groupId, boolean privateLayout, 553 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 554 throws com.liferay.portal.kernel.exception.SystemException, 555 com.liferay.portlet.journal.NoSuchContentSearchException { 556 return getPersistence() 557 .findByG_P_Last(groupId, privateLayout, orderByComparator); 558 } 559 560 /** 561 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ?. 562 * 563 * @param groupId the group ID 564 * @param privateLayout the private layout 565 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 566 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 567 * @throws SystemException if a system exception occurred 568 */ 569 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_Last( 570 long groupId, boolean privateLayout, 571 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 572 throws com.liferay.portal.kernel.exception.SystemException { 573 return getPersistence() 574 .fetchByG_P_Last(groupId, privateLayout, orderByComparator); 575 } 576 577 /** 578 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ?. 579 * 580 * @param contentSearchId the primary key of the current journal content search 581 * @param groupId the group ID 582 * @param privateLayout the private layout 583 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 584 * @return the previous, current, and next journal content search 585 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 586 * @throws SystemException if a system exception occurred 587 */ 588 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext( 589 long contentSearchId, long groupId, boolean privateLayout, 590 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 591 throws com.liferay.portal.kernel.exception.SystemException, 592 com.liferay.portlet.journal.NoSuchContentSearchException { 593 return getPersistence() 594 .findByG_P_PrevAndNext(contentSearchId, groupId, 595 privateLayout, orderByComparator); 596 } 597 598 /** 599 * Removes all the journal content searchs where groupId = ? and privateLayout = ? from the database. 600 * 601 * @param groupId the group ID 602 * @param privateLayout the private layout 603 * @throws SystemException if a system exception occurred 604 */ 605 public static void removeByG_P(long groupId, boolean privateLayout) 606 throws com.liferay.portal.kernel.exception.SystemException { 607 getPersistence().removeByG_P(groupId, privateLayout); 608 } 609 610 /** 611 * Returns the number of journal content searchs where groupId = ? and privateLayout = ?. 612 * 613 * @param groupId the group ID 614 * @param privateLayout the private layout 615 * @return the number of matching journal content searchs 616 * @throws SystemException if a system exception occurred 617 */ 618 public static int countByG_P(long groupId, boolean privateLayout) 619 throws com.liferay.portal.kernel.exception.SystemException { 620 return getPersistence().countByG_P(groupId, privateLayout); 621 } 622 623 /** 624 * Returns all the journal content searchs where groupId = ? and articleId = ?. 625 * 626 * @param groupId the group ID 627 * @param articleId the article ID 628 * @return the matching journal content searchs 629 * @throws SystemException if a system exception occurred 630 */ 631 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 632 long groupId, java.lang.String articleId) 633 throws com.liferay.portal.kernel.exception.SystemException { 634 return getPersistence().findByG_A(groupId, articleId); 635 } 636 637 /** 638 * Returns a range of all the journal content searchs where groupId = ? and articleId = ?. 639 * 640 * <p> 641 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 642 * </p> 643 * 644 * @param groupId the group ID 645 * @param articleId the article ID 646 * @param start the lower bound of the range of journal content searchs 647 * @param end the upper bound of the range of journal content searchs (not inclusive) 648 * @return the range of matching journal content searchs 649 * @throws SystemException if a system exception occurred 650 */ 651 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 652 long groupId, java.lang.String articleId, int start, int end) 653 throws com.liferay.portal.kernel.exception.SystemException { 654 return getPersistence().findByG_A(groupId, articleId, start, end); 655 } 656 657 /** 658 * Returns an ordered range of all the journal content searchs where groupId = ? and articleId = ?. 659 * 660 * <p> 661 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 662 * </p> 663 * 664 * @param groupId the group ID 665 * @param articleId the article ID 666 * @param start the lower bound of the range of journal content searchs 667 * @param end the upper bound of the range of journal content searchs (not inclusive) 668 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 669 * @return the ordered range of matching journal content searchs 670 * @throws SystemException if a system exception occurred 671 */ 672 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 673 long groupId, java.lang.String articleId, int start, int end, 674 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 675 throws com.liferay.portal.kernel.exception.SystemException { 676 return getPersistence() 677 .findByG_A(groupId, articleId, start, end, orderByComparator); 678 } 679 680 /** 681 * Returns the first journal content search in the ordered set where groupId = ? and articleId = ?. 682 * 683 * @param groupId the group ID 684 * @param articleId the article ID 685 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 686 * @return the first matching journal content search 687 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 688 * @throws SystemException if a system exception occurred 689 */ 690 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First( 691 long groupId, java.lang.String articleId, 692 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 693 throws com.liferay.portal.kernel.exception.SystemException, 694 com.liferay.portlet.journal.NoSuchContentSearchException { 695 return getPersistence() 696 .findByG_A_First(groupId, articleId, orderByComparator); 697 } 698 699 /** 700 * Returns the first journal content search in the ordered set where groupId = ? and articleId = ?. 701 * 702 * @param groupId the group ID 703 * @param articleId the article ID 704 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 705 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 706 * @throws SystemException if a system exception occurred 707 */ 708 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_First( 709 long groupId, java.lang.String articleId, 710 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 711 throws com.liferay.portal.kernel.exception.SystemException { 712 return getPersistence() 713 .fetchByG_A_First(groupId, articleId, orderByComparator); 714 } 715 716 /** 717 * Returns the last journal content search in the ordered set where groupId = ? and articleId = ?. 718 * 719 * @param groupId the group ID 720 * @param articleId the article ID 721 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 722 * @return the last matching journal content search 723 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 724 * @throws SystemException if a system exception occurred 725 */ 726 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last( 727 long groupId, java.lang.String articleId, 728 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 729 throws com.liferay.portal.kernel.exception.SystemException, 730 com.liferay.portlet.journal.NoSuchContentSearchException { 731 return getPersistence() 732 .findByG_A_Last(groupId, articleId, orderByComparator); 733 } 734 735 /** 736 * Returns the last journal content search in the ordered set where groupId = ? and articleId = ?. 737 * 738 * @param groupId the group ID 739 * @param articleId the article ID 740 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 741 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 742 * @throws SystemException if a system exception occurred 743 */ 744 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_Last( 745 long groupId, java.lang.String articleId, 746 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 747 throws com.liferay.portal.kernel.exception.SystemException { 748 return getPersistence() 749 .fetchByG_A_Last(groupId, articleId, orderByComparator); 750 } 751 752 /** 753 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and articleId = ?. 754 * 755 * @param contentSearchId the primary key of the current journal content search 756 * @param groupId the group ID 757 * @param articleId the article ID 758 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 759 * @return the previous, current, and next journal content search 760 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 761 * @throws SystemException if a system exception occurred 762 */ 763 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext( 764 long contentSearchId, long groupId, java.lang.String articleId, 765 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 766 throws com.liferay.portal.kernel.exception.SystemException, 767 com.liferay.portlet.journal.NoSuchContentSearchException { 768 return getPersistence() 769 .findByG_A_PrevAndNext(contentSearchId, groupId, articleId, 770 orderByComparator); 771 } 772 773 /** 774 * Removes all the journal content searchs where groupId = ? and articleId = ? from the database. 775 * 776 * @param groupId the group ID 777 * @param articleId the article ID 778 * @throws SystemException if a system exception occurred 779 */ 780 public static void removeByG_A(long groupId, java.lang.String articleId) 781 throws com.liferay.portal.kernel.exception.SystemException { 782 getPersistence().removeByG_A(groupId, articleId); 783 } 784 785 /** 786 * Returns the number of journal content searchs where groupId = ? and articleId = ?. 787 * 788 * @param groupId the group ID 789 * @param articleId the article ID 790 * @return the number of matching journal content searchs 791 * @throws SystemException if a system exception occurred 792 */ 793 public static int countByG_A(long groupId, java.lang.String articleId) 794 throws com.liferay.portal.kernel.exception.SystemException { 795 return getPersistence().countByG_A(groupId, articleId); 796 } 797 798 /** 799 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 800 * 801 * @param groupId the group ID 802 * @param privateLayout the private layout 803 * @param layoutId the layout ID 804 * @return the matching journal content searchs 805 * @throws SystemException if a system exception occurred 806 */ 807 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 808 long groupId, boolean privateLayout, long layoutId) 809 throws com.liferay.portal.kernel.exception.SystemException { 810 return getPersistence().findByG_P_L(groupId, privateLayout, layoutId); 811 } 812 813 /** 814 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 815 * 816 * <p> 817 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 818 * </p> 819 * 820 * @param groupId the group ID 821 * @param privateLayout the private layout 822 * @param layoutId the layout ID 823 * @param start the lower bound of the range of journal content searchs 824 * @param end the upper bound of the range of journal content searchs (not inclusive) 825 * @return the range of matching journal content searchs 826 * @throws SystemException if a system exception occurred 827 */ 828 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 829 long groupId, boolean privateLayout, long layoutId, int start, int end) 830 throws com.liferay.portal.kernel.exception.SystemException { 831 return getPersistence() 832 .findByG_P_L(groupId, privateLayout, layoutId, start, end); 833 } 834 835 /** 836 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 837 * 838 * <p> 839 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 840 * </p> 841 * 842 * @param groupId the group ID 843 * @param privateLayout the private layout 844 * @param layoutId the layout ID 845 * @param start the lower bound of the range of journal content searchs 846 * @param end the upper bound of the range of journal content searchs (not inclusive) 847 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 848 * @return the ordered range of matching journal content searchs 849 * @throws SystemException if a system exception occurred 850 */ 851 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 852 long groupId, boolean privateLayout, long layoutId, int start, int end, 853 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 854 throws com.liferay.portal.kernel.exception.SystemException { 855 return getPersistence() 856 .findByG_P_L(groupId, privateLayout, layoutId, start, end, 857 orderByComparator); 858 } 859 860 /** 861 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 862 * 863 * @param groupId the group ID 864 * @param privateLayout the private layout 865 * @param layoutId the layout ID 866 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 867 * @return the first matching journal content search 868 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 869 * @throws SystemException if a system exception occurred 870 */ 871 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First( 872 long groupId, boolean privateLayout, long layoutId, 873 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 874 throws com.liferay.portal.kernel.exception.SystemException, 875 com.liferay.portlet.journal.NoSuchContentSearchException { 876 return getPersistence() 877 .findByG_P_L_First(groupId, privateLayout, layoutId, 878 orderByComparator); 879 } 880 881 /** 882 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 883 * 884 * @param groupId the group ID 885 * @param privateLayout the private layout 886 * @param layoutId the layout ID 887 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 888 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 889 * @throws SystemException if a system exception occurred 890 */ 891 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_First( 892 long groupId, boolean privateLayout, long layoutId, 893 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 894 throws com.liferay.portal.kernel.exception.SystemException { 895 return getPersistence() 896 .fetchByG_P_L_First(groupId, privateLayout, layoutId, 897 orderByComparator); 898 } 899 900 /** 901 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 902 * 903 * @param groupId the group ID 904 * @param privateLayout the private layout 905 * @param layoutId the layout ID 906 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 907 * @return the last matching journal content search 908 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 909 * @throws SystemException if a system exception occurred 910 */ 911 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last( 912 long groupId, boolean privateLayout, long layoutId, 913 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 914 throws com.liferay.portal.kernel.exception.SystemException, 915 com.liferay.portlet.journal.NoSuchContentSearchException { 916 return getPersistence() 917 .findByG_P_L_Last(groupId, privateLayout, layoutId, 918 orderByComparator); 919 } 920 921 /** 922 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 923 * 924 * @param groupId the group ID 925 * @param privateLayout the private layout 926 * @param layoutId the layout ID 927 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 928 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 929 * @throws SystemException if a system exception occurred 930 */ 931 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_Last( 932 long groupId, boolean privateLayout, long layoutId, 933 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 934 throws com.liferay.portal.kernel.exception.SystemException { 935 return getPersistence() 936 .fetchByG_P_L_Last(groupId, privateLayout, layoutId, 937 orderByComparator); 938 } 939 940 /** 941 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 942 * 943 * @param contentSearchId the primary key of the current journal content search 944 * @param groupId the group ID 945 * @param privateLayout the private layout 946 * @param layoutId the layout ID 947 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 948 * @return the previous, current, and next journal content search 949 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 950 * @throws SystemException if a system exception occurred 951 */ 952 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext( 953 long contentSearchId, long groupId, boolean privateLayout, 954 long layoutId, 955 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 956 throws com.liferay.portal.kernel.exception.SystemException, 957 com.liferay.portlet.journal.NoSuchContentSearchException { 958 return getPersistence() 959 .findByG_P_L_PrevAndNext(contentSearchId, groupId, 960 privateLayout, layoutId, orderByComparator); 961 } 962 963 /** 964 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? from the database. 965 * 966 * @param groupId the group ID 967 * @param privateLayout the private layout 968 * @param layoutId the layout ID 969 * @throws SystemException if a system exception occurred 970 */ 971 public static void removeByG_P_L(long groupId, boolean privateLayout, 972 long layoutId) 973 throws com.liferay.portal.kernel.exception.SystemException { 974 getPersistence().removeByG_P_L(groupId, privateLayout, layoutId); 975 } 976 977 /** 978 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 979 * 980 * @param groupId the group ID 981 * @param privateLayout the private layout 982 * @param layoutId the layout ID 983 * @return the number of matching journal content searchs 984 * @throws SystemException if a system exception occurred 985 */ 986 public static int countByG_P_L(long groupId, boolean privateLayout, 987 long layoutId) 988 throws com.liferay.portal.kernel.exception.SystemException { 989 return getPersistence().countByG_P_L(groupId, privateLayout, layoutId); 990 } 991 992 /** 993 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 994 * 995 * @param groupId the group ID 996 * @param privateLayout the private layout 997 * @param articleId the article ID 998 * @return the matching journal content searchs 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 1002 long groupId, boolean privateLayout, java.lang.String articleId) 1003 throws com.liferay.portal.kernel.exception.SystemException { 1004 return getPersistence().findByG_P_A(groupId, privateLayout, articleId); 1005 } 1006 1007 /** 1008 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 1009 * 1010 * <p> 1011 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1012 * </p> 1013 * 1014 * @param groupId the group ID 1015 * @param privateLayout the private layout 1016 * @param articleId the article ID 1017 * @param start the lower bound of the range of journal content searchs 1018 * @param end the upper bound of the range of journal content searchs (not inclusive) 1019 * @return the range of matching journal content searchs 1020 * @throws SystemException if a system exception occurred 1021 */ 1022 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 1023 long groupId, boolean privateLayout, java.lang.String articleId, 1024 int start, int end) 1025 throws com.liferay.portal.kernel.exception.SystemException { 1026 return getPersistence() 1027 .findByG_P_A(groupId, privateLayout, articleId, start, end); 1028 } 1029 1030 /** 1031 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 1032 * 1033 * <p> 1034 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1035 * </p> 1036 * 1037 * @param groupId the group ID 1038 * @param privateLayout the private layout 1039 * @param articleId the article ID 1040 * @param start the lower bound of the range of journal content searchs 1041 * @param end the upper bound of the range of journal content searchs (not inclusive) 1042 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1043 * @return the ordered range of matching journal content searchs 1044 * @throws SystemException if a system exception occurred 1045 */ 1046 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 1047 long groupId, boolean privateLayout, java.lang.String articleId, 1048 int start, int end, 1049 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1050 throws com.liferay.portal.kernel.exception.SystemException { 1051 return getPersistence() 1052 .findByG_P_A(groupId, privateLayout, articleId, start, end, 1053 orderByComparator); 1054 } 1055 1056 /** 1057 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 1058 * 1059 * @param groupId the group ID 1060 * @param privateLayout the private layout 1061 * @param articleId the article ID 1062 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1063 * @return the first matching journal content search 1064 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1065 * @throws SystemException if a system exception occurred 1066 */ 1067 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First( 1068 long groupId, boolean privateLayout, java.lang.String articleId, 1069 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1070 throws com.liferay.portal.kernel.exception.SystemException, 1071 com.liferay.portlet.journal.NoSuchContentSearchException { 1072 return getPersistence() 1073 .findByG_P_A_First(groupId, privateLayout, articleId, 1074 orderByComparator); 1075 } 1076 1077 /** 1078 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 1079 * 1080 * @param groupId the group ID 1081 * @param privateLayout the private layout 1082 * @param articleId the article ID 1083 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1084 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 1085 * @throws SystemException if a system exception occurred 1086 */ 1087 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_First( 1088 long groupId, boolean privateLayout, java.lang.String articleId, 1089 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1090 throws com.liferay.portal.kernel.exception.SystemException { 1091 return getPersistence() 1092 .fetchByG_P_A_First(groupId, privateLayout, articleId, 1093 orderByComparator); 1094 } 1095 1096 /** 1097 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 1098 * 1099 * @param groupId the group ID 1100 * @param privateLayout the private layout 1101 * @param articleId the article ID 1102 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1103 * @return the last matching journal content search 1104 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last( 1108 long groupId, boolean privateLayout, java.lang.String articleId, 1109 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1110 throws com.liferay.portal.kernel.exception.SystemException, 1111 com.liferay.portlet.journal.NoSuchContentSearchException { 1112 return getPersistence() 1113 .findByG_P_A_Last(groupId, privateLayout, articleId, 1114 orderByComparator); 1115 } 1116 1117 /** 1118 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 1119 * 1120 * @param groupId the group ID 1121 * @param privateLayout the private layout 1122 * @param articleId the article ID 1123 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1124 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 1125 * @throws SystemException if a system exception occurred 1126 */ 1127 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_Last( 1128 long groupId, boolean privateLayout, java.lang.String articleId, 1129 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1130 throws com.liferay.portal.kernel.exception.SystemException { 1131 return getPersistence() 1132 .fetchByG_P_A_Last(groupId, privateLayout, articleId, 1133 orderByComparator); 1134 } 1135 1136 /** 1137 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 1138 * 1139 * @param contentSearchId the primary key of the current journal content search 1140 * @param groupId the group ID 1141 * @param privateLayout the private layout 1142 * @param articleId the article ID 1143 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1144 * @return the previous, current, and next journal content search 1145 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1146 * @throws SystemException if a system exception occurred 1147 */ 1148 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext( 1149 long contentSearchId, long groupId, boolean privateLayout, 1150 java.lang.String articleId, 1151 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1152 throws com.liferay.portal.kernel.exception.SystemException, 1153 com.liferay.portlet.journal.NoSuchContentSearchException { 1154 return getPersistence() 1155 .findByG_P_A_PrevAndNext(contentSearchId, groupId, 1156 privateLayout, articleId, orderByComparator); 1157 } 1158 1159 /** 1160 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ? from the database. 1161 * 1162 * @param groupId the group ID 1163 * @param privateLayout the private layout 1164 * @param articleId the article ID 1165 * @throws SystemException if a system exception occurred 1166 */ 1167 public static void removeByG_P_A(long groupId, boolean privateLayout, 1168 java.lang.String articleId) 1169 throws com.liferay.portal.kernel.exception.SystemException { 1170 getPersistence().removeByG_P_A(groupId, privateLayout, articleId); 1171 } 1172 1173 /** 1174 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 1175 * 1176 * @param groupId the group ID 1177 * @param privateLayout the private layout 1178 * @param articleId the article ID 1179 * @return the number of matching journal content searchs 1180 * @throws SystemException if a system exception occurred 1181 */ 1182 public static int countByG_P_A(long groupId, boolean privateLayout, 1183 java.lang.String articleId) 1184 throws com.liferay.portal.kernel.exception.SystemException { 1185 return getPersistence().countByG_P_A(groupId, privateLayout, articleId); 1186 } 1187 1188 /** 1189 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1190 * 1191 * @param groupId the group ID 1192 * @param privateLayout the private layout 1193 * @param layoutId the layout ID 1194 * @param portletId the portlet ID 1195 * @return the matching journal content searchs 1196 * @throws SystemException if a system exception occurred 1197 */ 1198 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 1199 long groupId, boolean privateLayout, long layoutId, 1200 java.lang.String portletId) 1201 throws com.liferay.portal.kernel.exception.SystemException { 1202 return getPersistence() 1203 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId); 1204 } 1205 1206 /** 1207 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1208 * 1209 * <p> 1210 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1211 * </p> 1212 * 1213 * @param groupId the group ID 1214 * @param privateLayout the private layout 1215 * @param layoutId the layout ID 1216 * @param portletId the portlet ID 1217 * @param start the lower bound of the range of journal content searchs 1218 * @param end the upper bound of the range of journal content searchs (not inclusive) 1219 * @return the range of matching journal content searchs 1220 * @throws SystemException if a system exception occurred 1221 */ 1222 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 1223 long groupId, boolean privateLayout, long layoutId, 1224 java.lang.String portletId, int start, int end) 1225 throws com.liferay.portal.kernel.exception.SystemException { 1226 return getPersistence() 1227 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId, 1228 start, end); 1229 } 1230 1231 /** 1232 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1233 * 1234 * <p> 1235 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1236 * </p> 1237 * 1238 * @param groupId the group ID 1239 * @param privateLayout the private layout 1240 * @param layoutId the layout ID 1241 * @param portletId the portlet ID 1242 * @param start the lower bound of the range of journal content searchs 1243 * @param end the upper bound of the range of journal content searchs (not inclusive) 1244 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1245 * @return the ordered range of matching journal content searchs 1246 * @throws SystemException if a system exception occurred 1247 */ 1248 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 1249 long groupId, boolean privateLayout, long layoutId, 1250 java.lang.String portletId, int start, int end, 1251 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1252 throws com.liferay.portal.kernel.exception.SystemException { 1253 return getPersistence() 1254 .findByG_P_L_P(groupId, privateLayout, layoutId, portletId, 1255 start, end, orderByComparator); 1256 } 1257 1258 /** 1259 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1260 * 1261 * @param groupId the group ID 1262 * @param privateLayout the private layout 1263 * @param layoutId the layout ID 1264 * @param portletId the portlet ID 1265 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1266 * @return the first matching journal content search 1267 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1268 * @throws SystemException if a system exception occurred 1269 */ 1270 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First( 1271 long groupId, boolean privateLayout, long layoutId, 1272 java.lang.String portletId, 1273 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1274 throws com.liferay.portal.kernel.exception.SystemException, 1275 com.liferay.portlet.journal.NoSuchContentSearchException { 1276 return getPersistence() 1277 .findByG_P_L_P_First(groupId, privateLayout, layoutId, 1278 portletId, orderByComparator); 1279 } 1280 1281 /** 1282 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1283 * 1284 * @param groupId the group ID 1285 * @param privateLayout the private layout 1286 * @param layoutId the layout ID 1287 * @param portletId the portlet ID 1288 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1289 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 1290 * @throws SystemException if a system exception occurred 1291 */ 1292 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_First( 1293 long groupId, boolean privateLayout, long layoutId, 1294 java.lang.String portletId, 1295 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1296 throws com.liferay.portal.kernel.exception.SystemException { 1297 return getPersistence() 1298 .fetchByG_P_L_P_First(groupId, privateLayout, layoutId, 1299 portletId, orderByComparator); 1300 } 1301 1302 /** 1303 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1304 * 1305 * @param groupId the group ID 1306 * @param privateLayout the private layout 1307 * @param layoutId the layout ID 1308 * @param portletId the portlet ID 1309 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1310 * @return the last matching journal content search 1311 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1312 * @throws SystemException if a system exception occurred 1313 */ 1314 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last( 1315 long groupId, boolean privateLayout, long layoutId, 1316 java.lang.String portletId, 1317 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1318 throws com.liferay.portal.kernel.exception.SystemException, 1319 com.liferay.portlet.journal.NoSuchContentSearchException { 1320 return getPersistence() 1321 .findByG_P_L_P_Last(groupId, privateLayout, layoutId, 1322 portletId, orderByComparator); 1323 } 1324 1325 /** 1326 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1327 * 1328 * @param groupId the group ID 1329 * @param privateLayout the private layout 1330 * @param layoutId the layout ID 1331 * @param portletId the portlet ID 1332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1333 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 1334 * @throws SystemException if a system exception occurred 1335 */ 1336 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_Last( 1337 long groupId, boolean privateLayout, long layoutId, 1338 java.lang.String portletId, 1339 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1340 throws com.liferay.portal.kernel.exception.SystemException { 1341 return getPersistence() 1342 .fetchByG_P_L_P_Last(groupId, privateLayout, layoutId, 1343 portletId, orderByComparator); 1344 } 1345 1346 /** 1347 * 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 = ?. 1348 * 1349 * @param contentSearchId the primary key of the current journal content search 1350 * @param groupId the group ID 1351 * @param privateLayout the private layout 1352 * @param layoutId the layout ID 1353 * @param portletId the portlet ID 1354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1355 * @return the previous, current, and next journal content search 1356 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1357 * @throws SystemException if a system exception occurred 1358 */ 1359 public static com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext( 1360 long contentSearchId, long groupId, boolean privateLayout, 1361 long layoutId, java.lang.String portletId, 1362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1363 throws com.liferay.portal.kernel.exception.SystemException, 1364 com.liferay.portlet.journal.NoSuchContentSearchException { 1365 return getPersistence() 1366 .findByG_P_L_P_PrevAndNext(contentSearchId, groupId, 1367 privateLayout, layoutId, portletId, orderByComparator); 1368 } 1369 1370 /** 1371 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? from the database. 1372 * 1373 * @param groupId the group ID 1374 * @param privateLayout the private layout 1375 * @param layoutId the layout ID 1376 * @param portletId the portlet ID 1377 * @throws SystemException if a system exception occurred 1378 */ 1379 public static void removeByG_P_L_P(long groupId, boolean privateLayout, 1380 long layoutId, java.lang.String portletId) 1381 throws com.liferay.portal.kernel.exception.SystemException { 1382 getPersistence() 1383 .removeByG_P_L_P(groupId, privateLayout, layoutId, portletId); 1384 } 1385 1386 /** 1387 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 1388 * 1389 * @param groupId the group ID 1390 * @param privateLayout the private layout 1391 * @param layoutId the layout ID 1392 * @param portletId the portlet ID 1393 * @return the number of matching journal content searchs 1394 * @throws SystemException if a system exception occurred 1395 */ 1396 public static int countByG_P_L_P(long groupId, boolean privateLayout, 1397 long layoutId, java.lang.String portletId) 1398 throws com.liferay.portal.kernel.exception.SystemException { 1399 return getPersistence() 1400 .countByG_P_L_P(groupId, privateLayout, layoutId, portletId); 1401 } 1402 1403 /** 1404 * 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. 1405 * 1406 * @param groupId the group ID 1407 * @param privateLayout the private layout 1408 * @param layoutId the layout ID 1409 * @param portletId the portlet ID 1410 * @param articleId the article ID 1411 * @return the matching journal content search 1412 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 1413 * @throws SystemException if a system exception occurred 1414 */ 1415 public static com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A( 1416 long groupId, boolean privateLayout, long layoutId, 1417 java.lang.String portletId, java.lang.String articleId) 1418 throws com.liferay.portal.kernel.exception.SystemException, 1419 com.liferay.portlet.journal.NoSuchContentSearchException { 1420 return getPersistence() 1421 .findByG_P_L_P_A(groupId, privateLayout, layoutId, 1422 portletId, articleId); 1423 } 1424 1425 /** 1426 * 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. 1427 * 1428 * @param groupId the group ID 1429 * @param privateLayout the private layout 1430 * @param layoutId the layout ID 1431 * @param portletId the portlet ID 1432 * @param articleId the article ID 1433 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1434 * @throws SystemException if a system exception occurred 1435 */ 1436 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1437 long groupId, boolean privateLayout, long layoutId, 1438 java.lang.String portletId, java.lang.String articleId) 1439 throws com.liferay.portal.kernel.exception.SystemException { 1440 return getPersistence() 1441 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId, 1442 portletId, articleId); 1443 } 1444 1445 /** 1446 * 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. 1447 * 1448 * @param groupId the group ID 1449 * @param privateLayout the private layout 1450 * @param layoutId the layout ID 1451 * @param portletId the portlet ID 1452 * @param articleId the article ID 1453 * @param retrieveFromCache whether to use the finder cache 1454 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1455 * @throws SystemException if a system exception occurred 1456 */ 1457 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1458 long groupId, boolean privateLayout, long layoutId, 1459 java.lang.String portletId, java.lang.String articleId, 1460 boolean retrieveFromCache) 1461 throws com.liferay.portal.kernel.exception.SystemException { 1462 return getPersistence() 1463 .fetchByG_P_L_P_A(groupId, privateLayout, layoutId, 1464 portletId, articleId, retrieveFromCache); 1465 } 1466 1467 /** 1468 * Removes the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? from the database. 1469 * 1470 * @param groupId the group ID 1471 * @param privateLayout the private layout 1472 * @param layoutId the layout ID 1473 * @param portletId the portlet ID 1474 * @param articleId the article ID 1475 * @return the journal content search that was removed 1476 * @throws SystemException if a system exception occurred 1477 */ 1478 public static com.liferay.portlet.journal.model.JournalContentSearch removeByG_P_L_P_A( 1479 long groupId, boolean privateLayout, long layoutId, 1480 java.lang.String portletId, java.lang.String articleId) 1481 throws com.liferay.portal.kernel.exception.SystemException, 1482 com.liferay.portlet.journal.NoSuchContentSearchException { 1483 return getPersistence() 1484 .removeByG_P_L_P_A(groupId, privateLayout, layoutId, 1485 portletId, articleId); 1486 } 1487 1488 /** 1489 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ?. 1490 * 1491 * @param groupId the group ID 1492 * @param privateLayout the private layout 1493 * @param layoutId the layout ID 1494 * @param portletId the portlet ID 1495 * @param articleId the article ID 1496 * @return the number of matching journal content searchs 1497 * @throws SystemException if a system exception occurred 1498 */ 1499 public static int countByG_P_L_P_A(long groupId, boolean privateLayout, 1500 long layoutId, java.lang.String portletId, java.lang.String articleId) 1501 throws com.liferay.portal.kernel.exception.SystemException { 1502 return getPersistence() 1503 .countByG_P_L_P_A(groupId, privateLayout, layoutId, 1504 portletId, articleId); 1505 } 1506 1507 /** 1508 * Caches the journal content search in the entity cache if it is enabled. 1509 * 1510 * @param journalContentSearch the journal content search 1511 */ 1512 public static void cacheResult( 1513 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) { 1514 getPersistence().cacheResult(journalContentSearch); 1515 } 1516 1517 /** 1518 * Caches the journal content searchs in the entity cache if it is enabled. 1519 * 1520 * @param journalContentSearchs the journal content searchs 1521 */ 1522 public static void cacheResult( 1523 java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs) { 1524 getPersistence().cacheResult(journalContentSearchs); 1525 } 1526 1527 /** 1528 * Creates a new journal content search with the primary key. Does not add the journal content search to the database. 1529 * 1530 * @param contentSearchId the primary key for the new journal content search 1531 * @return the new journal content search 1532 */ 1533 public static com.liferay.portlet.journal.model.JournalContentSearch create( 1534 long contentSearchId) { 1535 return getPersistence().create(contentSearchId); 1536 } 1537 1538 /** 1539 * Removes the journal content search with the primary key from the database. Also notifies the appropriate model listeners. 1540 * 1541 * @param contentSearchId the primary key of the journal content search 1542 * @return the journal content search that was removed 1543 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1544 * @throws SystemException if a system exception occurred 1545 */ 1546 public static com.liferay.portlet.journal.model.JournalContentSearch remove( 1547 long contentSearchId) 1548 throws com.liferay.portal.kernel.exception.SystemException, 1549 com.liferay.portlet.journal.NoSuchContentSearchException { 1550 return getPersistence().remove(contentSearchId); 1551 } 1552 1553 public static com.liferay.portlet.journal.model.JournalContentSearch updateImpl( 1554 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch) 1555 throws com.liferay.portal.kernel.exception.SystemException { 1556 return getPersistence().updateImpl(journalContentSearch); 1557 } 1558 1559 /** 1560 * Returns the journal content search with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found. 1561 * 1562 * @param contentSearchId the primary key of the journal content search 1563 * @return the journal content search 1564 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1565 * @throws SystemException if a system exception occurred 1566 */ 1567 public static com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey( 1568 long contentSearchId) 1569 throws com.liferay.portal.kernel.exception.SystemException, 1570 com.liferay.portlet.journal.NoSuchContentSearchException { 1571 return getPersistence().findByPrimaryKey(contentSearchId); 1572 } 1573 1574 /** 1575 * Returns the journal content search with the primary key or returns <code>null</code> if it could not be found. 1576 * 1577 * @param contentSearchId the primary key of the journal content search 1578 * @return the journal content search, or <code>null</code> if a journal content search with the primary key could not be found 1579 * @throws SystemException if a system exception occurred 1580 */ 1581 public static com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey( 1582 long contentSearchId) 1583 throws com.liferay.portal.kernel.exception.SystemException { 1584 return getPersistence().fetchByPrimaryKey(contentSearchId); 1585 } 1586 1587 /** 1588 * Returns all the journal content searchs. 1589 * 1590 * @return the journal content searchs 1591 * @throws SystemException if a system exception occurred 1592 */ 1593 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll() 1594 throws com.liferay.portal.kernel.exception.SystemException { 1595 return getPersistence().findAll(); 1596 } 1597 1598 /** 1599 * Returns a range of all the journal content searchs. 1600 * 1601 * <p> 1602 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1603 * </p> 1604 * 1605 * @param start the lower bound of the range of journal content searchs 1606 * @param end the upper bound of the range of journal content searchs (not inclusive) 1607 * @return the range of journal content searchs 1608 * @throws SystemException if a system exception occurred 1609 */ 1610 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1611 int start, int end) 1612 throws com.liferay.portal.kernel.exception.SystemException { 1613 return getPersistence().findAll(start, end); 1614 } 1615 1616 /** 1617 * Returns an ordered range of all the journal content searchs. 1618 * 1619 * <p> 1620 * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.journal.model.impl.JournalContentSearchModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 1621 * </p> 1622 * 1623 * @param start the lower bound of the range of journal content searchs 1624 * @param end the upper bound of the range of journal content searchs (not inclusive) 1625 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1626 * @return the ordered range of journal content searchs 1627 * @throws SystemException if a system exception occurred 1628 */ 1629 public static java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1630 int start, int end, 1631 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1632 throws com.liferay.portal.kernel.exception.SystemException { 1633 return getPersistence().findAll(start, end, orderByComparator); 1634 } 1635 1636 /** 1637 * Removes all the journal content searchs from the database. 1638 * 1639 * @throws SystemException if a system exception occurred 1640 */ 1641 public static void removeAll() 1642 throws com.liferay.portal.kernel.exception.SystemException { 1643 getPersistence().removeAll(); 1644 } 1645 1646 /** 1647 * Returns the number of journal content searchs. 1648 * 1649 * @return the number of journal content searchs 1650 * @throws SystemException if a system exception occurred 1651 */ 1652 public static int countAll() 1653 throws com.liferay.portal.kernel.exception.SystemException { 1654 return getPersistence().countAll(); 1655 } 1656 1657 public static JournalContentSearchPersistence getPersistence() { 1658 if (_persistence == null) { 1659 _persistence = (JournalContentSearchPersistence)PortalBeanLocatorUtil.locate(JournalContentSearchPersistence.class.getName()); 1660 1661 ReferenceRegistry.registerReference(JournalContentSearchUtil.class, 1662 "_persistence"); 1663 } 1664 1665 return _persistence; 1666 } 1667 1668 /** 1669 * @deprecated As of 6.2.0 1670 */ 1671 public void setPersistence(JournalContentSearchPersistence persistence) { 1672 } 1673 1674 private static JournalContentSearchPersistence _persistence; 1675 }