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