001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.journal.model.JournalContentSearch; 022 023 /** 024 * The persistence interface for the journal content search service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see JournalContentSearchPersistenceImpl 032 * @see JournalContentSearchUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface JournalContentSearchPersistence extends BasePersistence<JournalContentSearch> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link JournalContentSearchUtil} to access the journal content search persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the journal content searchs where portletId = ?. 045 * 046 * @param portletId the portlet ID 047 * @return the matching journal content searchs 048 */ 049 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 050 java.lang.String portletId); 051 052 /** 053 * Returns a range of all the journal content searchs where portletId = ?. 054 * 055 * <p> 056 * 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. 057 * </p> 058 * 059 * @param portletId the portlet ID 060 * @param start the lower bound of the range of journal content searchs 061 * @param end the upper bound of the range of journal content searchs (not inclusive) 062 * @return the range of matching journal content searchs 063 */ 064 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 065 java.lang.String portletId, int start, int end); 066 067 /** 068 * Returns an ordered range of all the journal content searchs where portletId = ?. 069 * 070 * <p> 071 * 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. 072 * </p> 073 * 074 * @param portletId the portlet ID 075 * @param start the lower bound of the range of journal content searchs 076 * @param end the upper bound of the range of journal content searchs (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching journal content searchs 079 */ 080 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByPortletId( 081 java.lang.String portletId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 083 084 /** 085 * Returns the first journal content search in the ordered set where portletId = ?. 086 * 087 * @param portletId the portlet ID 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching journal content search 090 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 091 */ 092 public com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_First( 093 java.lang.String portletId, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 095 throws com.liferay.portlet.journal.NoSuchContentSearchException; 096 097 /** 098 * Returns the first journal content search in the ordered set where portletId = ?. 099 * 100 * @param portletId the portlet ID 101 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 102 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 103 */ 104 public com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_First( 105 java.lang.String portletId, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 107 108 /** 109 * Returns the last journal content search in the ordered set where portletId = ?. 110 * 111 * @param portletId the portlet ID 112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 113 * @return the last matching journal content search 114 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 115 */ 116 public com.liferay.portlet.journal.model.JournalContentSearch findByPortletId_Last( 117 java.lang.String portletId, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 119 throws com.liferay.portlet.journal.NoSuchContentSearchException; 120 121 /** 122 * Returns the last journal content search in the ordered set where portletId = ?. 123 * 124 * @param portletId the portlet ID 125 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 126 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 127 */ 128 public com.liferay.portlet.journal.model.JournalContentSearch fetchByPortletId_Last( 129 java.lang.String portletId, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 131 132 /** 133 * Returns the journal content searchs before and after the current journal content search in the ordered set where portletId = ?. 134 * 135 * @param contentSearchId the primary key of the current journal content search 136 * @param portletId the portlet ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the previous, current, and next journal content search 139 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 140 */ 141 public com.liferay.portlet.journal.model.JournalContentSearch[] findByPortletId_PrevAndNext( 142 long contentSearchId, java.lang.String portletId, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 144 throws com.liferay.portlet.journal.NoSuchContentSearchException; 145 146 /** 147 * Removes all the journal content searchs where portletId = ? from the database. 148 * 149 * @param portletId the portlet ID 150 */ 151 public void removeByPortletId(java.lang.String portletId); 152 153 /** 154 * Returns the number of journal content searchs where portletId = ?. 155 * 156 * @param portletId the portlet ID 157 * @return the number of matching journal content searchs 158 */ 159 public int countByPortletId(java.lang.String portletId); 160 161 /** 162 * Returns all the journal content searchs where articleId = ?. 163 * 164 * @param articleId the article ID 165 * @return the matching journal content searchs 166 */ 167 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 168 java.lang.String articleId); 169 170 /** 171 * Returns a range of all the journal content searchs where articleId = ?. 172 * 173 * <p> 174 * 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. 175 * </p> 176 * 177 * @param articleId the article ID 178 * @param start the lower bound of the range of journal content searchs 179 * @param end the upper bound of the range of journal content searchs (not inclusive) 180 * @return the range of matching journal content searchs 181 */ 182 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 183 java.lang.String articleId, int start, int end); 184 185 /** 186 * Returns an ordered range of all the journal content searchs where articleId = ?. 187 * 188 * <p> 189 * 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. 190 * </p> 191 * 192 * @param articleId the article ID 193 * @param start the lower bound of the range of journal content searchs 194 * @param end the upper bound of the range of journal content searchs (not inclusive) 195 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 196 * @return the ordered range of matching journal content searchs 197 */ 198 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByArticleId( 199 java.lang.String articleId, int start, int end, 200 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 201 202 /** 203 * Returns the first journal content search in the ordered set where articleId = ?. 204 * 205 * @param articleId the article ID 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the first matching journal content search 208 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 209 */ 210 public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_First( 211 java.lang.String articleId, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 213 throws com.liferay.portlet.journal.NoSuchContentSearchException; 214 215 /** 216 * Returns the first journal content search in the ordered set where articleId = ?. 217 * 218 * @param articleId the article ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 221 */ 222 public com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_First( 223 java.lang.String articleId, 224 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 225 226 /** 227 * Returns the last journal content search in the ordered set where articleId = ?. 228 * 229 * @param articleId the article ID 230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 231 * @return the last matching journal content search 232 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 233 */ 234 public com.liferay.portlet.journal.model.JournalContentSearch findByArticleId_Last( 235 java.lang.String articleId, 236 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 237 throws com.liferay.portlet.journal.NoSuchContentSearchException; 238 239 /** 240 * Returns the last journal content search in the ordered set where articleId = ?. 241 * 242 * @param articleId the article ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 245 */ 246 public com.liferay.portlet.journal.model.JournalContentSearch fetchByArticleId_Last( 247 java.lang.String articleId, 248 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 249 250 /** 251 * Returns the journal content searchs before and after the current journal content search in the ordered set where articleId = ?. 252 * 253 * @param contentSearchId the primary key of the current journal content search 254 * @param articleId the article ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the previous, current, and next journal content search 257 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 258 */ 259 public com.liferay.portlet.journal.model.JournalContentSearch[] findByArticleId_PrevAndNext( 260 long contentSearchId, java.lang.String articleId, 261 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 262 throws com.liferay.portlet.journal.NoSuchContentSearchException; 263 264 /** 265 * Removes all the journal content searchs where articleId = ? from the database. 266 * 267 * @param articleId the article ID 268 */ 269 public void removeByArticleId(java.lang.String articleId); 270 271 /** 272 * Returns the number of journal content searchs where articleId = ?. 273 * 274 * @param articleId the article ID 275 * @return the number of matching journal content searchs 276 */ 277 public int countByArticleId(java.lang.String articleId); 278 279 /** 280 * Returns all the journal content searchs where groupId = ? and privateLayout = ?. 281 * 282 * @param groupId the group ID 283 * @param privateLayout the private layout 284 * @return the matching journal content searchs 285 */ 286 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 287 long groupId, boolean privateLayout); 288 289 /** 290 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param groupId the group ID 297 * @param privateLayout the private layout 298 * @param start the lower bound of the range of journal content searchs 299 * @param end the upper bound of the range of journal content searchs (not inclusive) 300 * @return the range of matching journal content searchs 301 */ 302 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 303 long groupId, boolean privateLayout, int start, int end); 304 305 /** 306 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ?. 307 * 308 * <p> 309 * 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. 310 * </p> 311 * 312 * @param groupId the group ID 313 * @param privateLayout the private layout 314 * @param start the lower bound of the range of journal content searchs 315 * @param end the upper bound of the range of journal content searchs (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching journal content searchs 318 */ 319 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P( 320 long groupId, boolean privateLayout, int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 322 323 /** 324 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ?. 325 * 326 * @param groupId the group ID 327 * @param privateLayout the private layout 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the first matching journal content search 330 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 331 */ 332 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_First( 333 long groupId, boolean privateLayout, 334 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 335 throws com.liferay.portlet.journal.NoSuchContentSearchException; 336 337 /** 338 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ?. 339 * 340 * @param groupId the group ID 341 * @param privateLayout the private layout 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 344 */ 345 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_First( 346 long groupId, boolean privateLayout, 347 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 348 349 /** 350 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ?. 351 * 352 * @param groupId the group ID 353 * @param privateLayout the private layout 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the last matching journal content search 356 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 357 */ 358 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_Last( 359 long groupId, boolean privateLayout, 360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 361 throws com.liferay.portlet.journal.NoSuchContentSearchException; 362 363 /** 364 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ?. 365 * 366 * @param groupId the group ID 367 * @param privateLayout the private layout 368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 369 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 370 */ 371 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_Last( 372 long groupId, boolean privateLayout, 373 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 374 375 /** 376 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ?. 377 * 378 * @param contentSearchId the primary key of the current journal content search 379 * @param groupId the group ID 380 * @param privateLayout the private layout 381 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 382 * @return the previous, current, and next journal content search 383 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 384 */ 385 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_PrevAndNext( 386 long contentSearchId, long groupId, boolean privateLayout, 387 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 388 throws com.liferay.portlet.journal.NoSuchContentSearchException; 389 390 /** 391 * Removes all the journal content searchs where groupId = ? and privateLayout = ? from the database. 392 * 393 * @param groupId the group ID 394 * @param privateLayout the private layout 395 */ 396 public void removeByG_P(long groupId, boolean privateLayout); 397 398 /** 399 * Returns the number of journal content searchs where groupId = ? and privateLayout = ?. 400 * 401 * @param groupId the group ID 402 * @param privateLayout the private layout 403 * @return the number of matching journal content searchs 404 */ 405 public int countByG_P(long groupId, boolean privateLayout); 406 407 /** 408 * Returns all the journal content searchs where groupId = ? and articleId = ?. 409 * 410 * @param groupId the group ID 411 * @param articleId the article ID 412 * @return the matching journal content searchs 413 */ 414 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 415 long groupId, java.lang.String articleId); 416 417 /** 418 * Returns a range of all the journal content searchs where groupId = ? and articleId = ?. 419 * 420 * <p> 421 * 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. 422 * </p> 423 * 424 * @param groupId the group ID 425 * @param articleId the article ID 426 * @param start the lower bound of the range of journal content searchs 427 * @param end the upper bound of the range of journal content searchs (not inclusive) 428 * @return the range of matching journal content searchs 429 */ 430 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 431 long groupId, java.lang.String articleId, int start, int end); 432 433 /** 434 * Returns an ordered range of all the journal content searchs where groupId = ? and articleId = ?. 435 * 436 * <p> 437 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 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. 438 * </p> 439 * 440 * @param groupId the group ID 441 * @param articleId the article ID 442 * @param start the lower bound of the range of journal content searchs 443 * @param end the upper bound of the range of journal content searchs (not inclusive) 444 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 445 * @return the ordered range of matching journal content searchs 446 */ 447 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_A( 448 long groupId, java.lang.String articleId, int start, int end, 449 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 450 451 /** 452 * Returns the first journal content search in the ordered set where groupId = ? and articleId = ?. 453 * 454 * @param groupId the group ID 455 * @param articleId the article ID 456 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 457 * @return the first matching journal content search 458 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 459 */ 460 public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_First( 461 long groupId, java.lang.String articleId, 462 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 463 throws com.liferay.portlet.journal.NoSuchContentSearchException; 464 465 /** 466 * Returns the first journal content search in the ordered set where groupId = ? and articleId = ?. 467 * 468 * @param groupId the group ID 469 * @param articleId the article ID 470 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 471 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 472 */ 473 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_First( 474 long groupId, java.lang.String articleId, 475 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 476 477 /** 478 * Returns the last journal content search in the ordered set where groupId = ? and articleId = ?. 479 * 480 * @param groupId the group ID 481 * @param articleId the article ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching journal content search 484 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 485 */ 486 public com.liferay.portlet.journal.model.JournalContentSearch findByG_A_Last( 487 long groupId, java.lang.String articleId, 488 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 489 throws com.liferay.portlet.journal.NoSuchContentSearchException; 490 491 /** 492 * Returns the last journal content search in the ordered set where groupId = ? and articleId = ?. 493 * 494 * @param groupId the group ID 495 * @param articleId the article ID 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 498 */ 499 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_A_Last( 500 long groupId, java.lang.String articleId, 501 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 502 503 /** 504 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and articleId = ?. 505 * 506 * @param contentSearchId the primary key of the current journal content search 507 * @param groupId the group ID 508 * @param articleId the article ID 509 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 510 * @return the previous, current, and next journal content search 511 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 512 */ 513 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_A_PrevAndNext( 514 long contentSearchId, long groupId, java.lang.String articleId, 515 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 516 throws com.liferay.portlet.journal.NoSuchContentSearchException; 517 518 /** 519 * Removes all the journal content searchs where groupId = ? and articleId = ? from the database. 520 * 521 * @param groupId the group ID 522 * @param articleId the article ID 523 */ 524 public void removeByG_A(long groupId, java.lang.String articleId); 525 526 /** 527 * Returns the number of journal content searchs where groupId = ? and articleId = ?. 528 * 529 * @param groupId the group ID 530 * @param articleId the article ID 531 * @return the number of matching journal content searchs 532 */ 533 public int countByG_A(long groupId, java.lang.String articleId); 534 535 /** 536 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 537 * 538 * @param groupId the group ID 539 * @param privateLayout the private layout 540 * @param layoutId the layout ID 541 * @return the matching journal content searchs 542 */ 543 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 544 long groupId, boolean privateLayout, long layoutId); 545 546 /** 547 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 548 * 549 * <p> 550 * 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. 551 * </p> 552 * 553 * @param groupId the group ID 554 * @param privateLayout the private layout 555 * @param layoutId the layout ID 556 * @param start the lower bound of the range of journal content searchs 557 * @param end the upper bound of the range of journal content searchs (not inclusive) 558 * @return the range of matching journal content searchs 559 */ 560 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 561 long groupId, boolean privateLayout, long layoutId, int start, int end); 562 563 /** 564 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 565 * 566 * <p> 567 * 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. 568 * </p> 569 * 570 * @param groupId the group ID 571 * @param privateLayout the private layout 572 * @param layoutId the layout ID 573 * @param start the lower bound of the range of journal content searchs 574 * @param end the upper bound of the range of journal content searchs (not inclusive) 575 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 576 * @return the ordered range of matching journal content searchs 577 */ 578 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L( 579 long groupId, boolean privateLayout, long layoutId, int start, int end, 580 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 581 582 /** 583 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 584 * 585 * @param groupId the group ID 586 * @param privateLayout the private layout 587 * @param layoutId the layout ID 588 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 589 * @return the first matching journal content search 590 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 591 */ 592 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_First( 593 long groupId, boolean privateLayout, long layoutId, 594 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 595 throws com.liferay.portlet.journal.NoSuchContentSearchException; 596 597 /** 598 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 599 * 600 * @param groupId the group ID 601 * @param privateLayout the private layout 602 * @param layoutId the layout ID 603 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 604 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 605 */ 606 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_First( 607 long groupId, boolean privateLayout, long layoutId, 608 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 609 610 /** 611 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 612 * 613 * @param groupId the group ID 614 * @param privateLayout the private layout 615 * @param layoutId the layout ID 616 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 617 * @return the last matching journal content search 618 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 619 */ 620 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_Last( 621 long groupId, boolean privateLayout, long layoutId, 622 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 623 throws com.liferay.portlet.journal.NoSuchContentSearchException; 624 625 /** 626 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 627 * 628 * @param groupId the group ID 629 * @param privateLayout the private layout 630 * @param layoutId the layout ID 631 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 632 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 633 */ 634 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_Last( 635 long groupId, boolean privateLayout, long layoutId, 636 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 637 638 /** 639 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ?. 640 * 641 * @param contentSearchId the primary key of the current journal content search 642 * @param groupId the group ID 643 * @param privateLayout the private layout 644 * @param layoutId the layout ID 645 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 646 * @return the previous, current, and next journal content search 647 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 648 */ 649 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_PrevAndNext( 650 long contentSearchId, long groupId, boolean privateLayout, 651 long layoutId, 652 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 653 throws com.liferay.portlet.journal.NoSuchContentSearchException; 654 655 /** 656 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? from the database. 657 * 658 * @param groupId the group ID 659 * @param privateLayout the private layout 660 * @param layoutId the layout ID 661 */ 662 public void removeByG_P_L(long groupId, boolean privateLayout, long layoutId); 663 664 /** 665 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ?. 666 * 667 * @param groupId the group ID 668 * @param privateLayout the private layout 669 * @param layoutId the layout ID 670 * @return the number of matching journal content searchs 671 */ 672 public int countByG_P_L(long groupId, boolean privateLayout, long layoutId); 673 674 /** 675 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 676 * 677 * @param groupId the group ID 678 * @param privateLayout the private layout 679 * @param articleId the article ID 680 * @return the matching journal content searchs 681 */ 682 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 683 long groupId, boolean privateLayout, java.lang.String articleId); 684 685 /** 686 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 687 * 688 * <p> 689 * 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. 690 * </p> 691 * 692 * @param groupId the group ID 693 * @param privateLayout the private layout 694 * @param articleId the article ID 695 * @param start the lower bound of the range of journal content searchs 696 * @param end the upper bound of the range of journal content searchs (not inclusive) 697 * @return the range of matching journal content searchs 698 */ 699 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 700 long groupId, boolean privateLayout, java.lang.String articleId, 701 int start, int end); 702 703 /** 704 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 705 * 706 * <p> 707 * 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. 708 * </p> 709 * 710 * @param groupId the group ID 711 * @param privateLayout the private layout 712 * @param articleId the article ID 713 * @param start the lower bound of the range of journal content searchs 714 * @param end the upper bound of the range of journal content searchs (not inclusive) 715 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 716 * @return the ordered range of matching journal content searchs 717 */ 718 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_A( 719 long groupId, boolean privateLayout, java.lang.String articleId, 720 int start, int end, 721 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 722 723 /** 724 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 725 * 726 * @param groupId the group ID 727 * @param privateLayout the private layout 728 * @param articleId the article ID 729 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 730 * @return the first matching journal content search 731 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 732 */ 733 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_First( 734 long groupId, boolean privateLayout, java.lang.String articleId, 735 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 736 throws com.liferay.portlet.journal.NoSuchContentSearchException; 737 738 /** 739 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 740 * 741 * @param groupId the group ID 742 * @param privateLayout the private layout 743 * @param articleId the article ID 744 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 745 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 746 */ 747 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_First( 748 long groupId, boolean privateLayout, java.lang.String articleId, 749 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 750 751 /** 752 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 753 * 754 * @param groupId the group ID 755 * @param privateLayout the private layout 756 * @param articleId the article ID 757 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 758 * @return the last matching journal content search 759 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 760 */ 761 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_A_Last( 762 long groupId, boolean privateLayout, java.lang.String articleId, 763 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 764 throws com.liferay.portlet.journal.NoSuchContentSearchException; 765 766 /** 767 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 768 * 769 * @param groupId the group ID 770 * @param privateLayout the private layout 771 * @param articleId the article ID 772 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 773 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 774 */ 775 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_A_Last( 776 long groupId, boolean privateLayout, java.lang.String articleId, 777 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 778 779 /** 780 * Returns the journal content searchs before and after the current journal content search in the ordered set where groupId = ? and privateLayout = ? and articleId = ?. 781 * 782 * @param contentSearchId the primary key of the current journal content search 783 * @param groupId the group ID 784 * @param privateLayout the private layout 785 * @param articleId the article ID 786 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 787 * @return the previous, current, and next journal content search 788 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 789 */ 790 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_A_PrevAndNext( 791 long contentSearchId, long groupId, boolean privateLayout, 792 java.lang.String articleId, 793 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 794 throws com.liferay.portlet.journal.NoSuchContentSearchException; 795 796 /** 797 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and articleId = ? from the database. 798 * 799 * @param groupId the group ID 800 * @param privateLayout the private layout 801 * @param articleId the article ID 802 */ 803 public void removeByG_P_A(long groupId, boolean privateLayout, 804 java.lang.String articleId); 805 806 /** 807 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and articleId = ?. 808 * 809 * @param groupId the group ID 810 * @param privateLayout the private layout 811 * @param articleId the article ID 812 * @return the number of matching journal content searchs 813 */ 814 public int countByG_P_A(long groupId, boolean privateLayout, 815 java.lang.String articleId); 816 817 /** 818 * Returns all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 819 * 820 * @param groupId the group ID 821 * @param privateLayout the private layout 822 * @param layoutId the layout ID 823 * @param portletId the portlet ID 824 * @return the matching journal content searchs 825 */ 826 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 827 long groupId, boolean privateLayout, long layoutId, 828 java.lang.String portletId); 829 830 /** 831 * Returns a range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 832 * 833 * <p> 834 * 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. 835 * </p> 836 * 837 * @param groupId the group ID 838 * @param privateLayout the private layout 839 * @param layoutId the layout ID 840 * @param portletId the portlet ID 841 * @param start the lower bound of the range of journal content searchs 842 * @param end the upper bound of the range of journal content searchs (not inclusive) 843 * @return the range of matching journal content searchs 844 */ 845 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 846 long groupId, boolean privateLayout, long layoutId, 847 java.lang.String portletId, int start, int end); 848 849 /** 850 * Returns an ordered range of all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 851 * 852 * <p> 853 * 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. 854 * </p> 855 * 856 * @param groupId the group ID 857 * @param privateLayout the private layout 858 * @param layoutId the layout ID 859 * @param portletId the portlet ID 860 * @param start the lower bound of the range of journal content searchs 861 * @param end the upper bound of the range of journal content searchs (not inclusive) 862 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 863 * @return the ordered range of matching journal content searchs 864 */ 865 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findByG_P_L_P( 866 long groupId, boolean privateLayout, long layoutId, 867 java.lang.String portletId, int start, int end, 868 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 869 870 /** 871 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 872 * 873 * @param groupId the group ID 874 * @param privateLayout the private layout 875 * @param layoutId the layout ID 876 * @param portletId the portlet ID 877 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 878 * @return the first matching journal content search 879 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 880 */ 881 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_First( 882 long groupId, boolean privateLayout, long layoutId, 883 java.lang.String portletId, 884 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 885 throws com.liferay.portlet.journal.NoSuchContentSearchException; 886 887 /** 888 * Returns the first journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 889 * 890 * @param groupId the group ID 891 * @param privateLayout the private layout 892 * @param layoutId the layout ID 893 * @param portletId the portlet ID 894 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 895 * @return the first matching journal content search, or <code>null</code> if a matching journal content search could not be found 896 */ 897 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_First( 898 long groupId, boolean privateLayout, long layoutId, 899 java.lang.String portletId, 900 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 901 902 /** 903 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 904 * 905 * @param groupId the group ID 906 * @param privateLayout the private layout 907 * @param layoutId the layout ID 908 * @param portletId the portlet ID 909 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 910 * @return the last matching journal content search 911 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 912 */ 913 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_Last( 914 long groupId, boolean privateLayout, long layoutId, 915 java.lang.String portletId, 916 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 917 throws com.liferay.portlet.journal.NoSuchContentSearchException; 918 919 /** 920 * Returns the last journal content search in the ordered set where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 921 * 922 * @param groupId the group ID 923 * @param privateLayout the private layout 924 * @param layoutId the layout ID 925 * @param portletId the portlet ID 926 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 927 * @return the last matching journal content search, or <code>null</code> if a matching journal content search could not be found 928 */ 929 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_Last( 930 long groupId, boolean privateLayout, long layoutId, 931 java.lang.String portletId, 932 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 933 934 /** 935 * 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 = ?. 936 * 937 * @param contentSearchId the primary key of the current journal content search 938 * @param groupId the group ID 939 * @param privateLayout the private layout 940 * @param layoutId the layout ID 941 * @param portletId the portlet ID 942 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 943 * @return the previous, current, and next journal content search 944 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 945 */ 946 public com.liferay.portlet.journal.model.JournalContentSearch[] findByG_P_L_P_PrevAndNext( 947 long contentSearchId, long groupId, boolean privateLayout, 948 long layoutId, java.lang.String portletId, 949 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator) 950 throws com.liferay.portlet.journal.NoSuchContentSearchException; 951 952 /** 953 * Removes all the journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? from the database. 954 * 955 * @param groupId the group ID 956 * @param privateLayout the private layout 957 * @param layoutId the layout ID 958 * @param portletId the portlet ID 959 */ 960 public void removeByG_P_L_P(long groupId, boolean privateLayout, 961 long layoutId, java.lang.String portletId); 962 963 /** 964 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ?. 965 * 966 * @param groupId the group ID 967 * @param privateLayout the private layout 968 * @param layoutId the layout ID 969 * @param portletId the portlet ID 970 * @return the number of matching journal content searchs 971 */ 972 public int countByG_P_L_P(long groupId, boolean privateLayout, 973 long layoutId, java.lang.String portletId); 974 975 /** 976 * 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. 977 * 978 * @param groupId the group ID 979 * @param privateLayout the private layout 980 * @param layoutId the layout ID 981 * @param portletId the portlet ID 982 * @param articleId the article ID 983 * @return the matching journal content search 984 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a matching journal content search could not be found 985 */ 986 public com.liferay.portlet.journal.model.JournalContentSearch findByG_P_L_P_A( 987 long groupId, boolean privateLayout, long layoutId, 988 java.lang.String portletId, java.lang.String articleId) 989 throws com.liferay.portlet.journal.NoSuchContentSearchException; 990 991 /** 992 * 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. 993 * 994 * @param groupId the group ID 995 * @param privateLayout the private layout 996 * @param layoutId the layout ID 997 * @param portletId the portlet ID 998 * @param articleId the article ID 999 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1000 */ 1001 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1002 long groupId, boolean privateLayout, long layoutId, 1003 java.lang.String portletId, java.lang.String articleId); 1004 1005 /** 1006 * 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. 1007 * 1008 * @param groupId the group ID 1009 * @param privateLayout the private layout 1010 * @param layoutId the layout ID 1011 * @param portletId the portlet ID 1012 * @param articleId the article ID 1013 * @param retrieveFromCache whether to use the finder cache 1014 * @return the matching journal content search, or <code>null</code> if a matching journal content search could not be found 1015 */ 1016 public com.liferay.portlet.journal.model.JournalContentSearch fetchByG_P_L_P_A( 1017 long groupId, boolean privateLayout, long layoutId, 1018 java.lang.String portletId, java.lang.String articleId, 1019 boolean retrieveFromCache); 1020 1021 /** 1022 * Removes the journal content search where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ? from the database. 1023 * 1024 * @param groupId the group ID 1025 * @param privateLayout the private layout 1026 * @param layoutId the layout ID 1027 * @param portletId the portlet ID 1028 * @param articleId the article ID 1029 * @return the journal content search that was removed 1030 */ 1031 public com.liferay.portlet.journal.model.JournalContentSearch removeByG_P_L_P_A( 1032 long groupId, boolean privateLayout, long layoutId, 1033 java.lang.String portletId, java.lang.String articleId) 1034 throws com.liferay.portlet.journal.NoSuchContentSearchException; 1035 1036 /** 1037 * Returns the number of journal content searchs where groupId = ? and privateLayout = ? and layoutId = ? and portletId = ? and articleId = ?. 1038 * 1039 * @param groupId the group ID 1040 * @param privateLayout the private layout 1041 * @param layoutId the layout ID 1042 * @param portletId the portlet ID 1043 * @param articleId the article ID 1044 * @return the number of matching journal content searchs 1045 */ 1046 public int countByG_P_L_P_A(long groupId, boolean privateLayout, 1047 long layoutId, java.lang.String portletId, java.lang.String articleId); 1048 1049 /** 1050 * Caches the journal content search in the entity cache if it is enabled. 1051 * 1052 * @param journalContentSearch the journal content search 1053 */ 1054 public void cacheResult( 1055 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch); 1056 1057 /** 1058 * Caches the journal content searchs in the entity cache if it is enabled. 1059 * 1060 * @param journalContentSearchs the journal content searchs 1061 */ 1062 public void cacheResult( 1063 java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> journalContentSearchs); 1064 1065 /** 1066 * Creates a new journal content search with the primary key. Does not add the journal content search to the database. 1067 * 1068 * @param contentSearchId the primary key for the new journal content search 1069 * @return the new journal content search 1070 */ 1071 public com.liferay.portlet.journal.model.JournalContentSearch create( 1072 long contentSearchId); 1073 1074 /** 1075 * Removes the journal content search with the primary key from the database. Also notifies the appropriate model listeners. 1076 * 1077 * @param contentSearchId the primary key of the journal content search 1078 * @return the journal content search that was removed 1079 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1080 */ 1081 public com.liferay.portlet.journal.model.JournalContentSearch remove( 1082 long contentSearchId) 1083 throws com.liferay.portlet.journal.NoSuchContentSearchException; 1084 1085 public com.liferay.portlet.journal.model.JournalContentSearch updateImpl( 1086 com.liferay.portlet.journal.model.JournalContentSearch journalContentSearch); 1087 1088 /** 1089 * Returns the journal content search with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchContentSearchException} if it could not be found. 1090 * 1091 * @param contentSearchId the primary key of the journal content search 1092 * @return the journal content search 1093 * @throws com.liferay.portlet.journal.NoSuchContentSearchException if a journal content search with the primary key could not be found 1094 */ 1095 public com.liferay.portlet.journal.model.JournalContentSearch findByPrimaryKey( 1096 long contentSearchId) 1097 throws com.liferay.portlet.journal.NoSuchContentSearchException; 1098 1099 /** 1100 * Returns the journal content search with the primary key or returns <code>null</code> if it could not be found. 1101 * 1102 * @param contentSearchId the primary key of the journal content search 1103 * @return the journal content search, or <code>null</code> if a journal content search with the primary key could not be found 1104 */ 1105 public com.liferay.portlet.journal.model.JournalContentSearch fetchByPrimaryKey( 1106 long contentSearchId); 1107 1108 @Override 1109 public java.util.Map<java.io.Serializable, com.liferay.portlet.journal.model.JournalContentSearch> fetchByPrimaryKeys( 1110 java.util.Set<java.io.Serializable> primaryKeys); 1111 1112 /** 1113 * Returns all the journal content searchs. 1114 * 1115 * @return the journal content searchs 1116 */ 1117 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll(); 1118 1119 /** 1120 * Returns a range of all the journal content searchs. 1121 * 1122 * <p> 1123 * 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. 1124 * </p> 1125 * 1126 * @param start the lower bound of the range of journal content searchs 1127 * @param end the upper bound of the range of journal content searchs (not inclusive) 1128 * @return the range of journal content searchs 1129 */ 1130 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1131 int start, int end); 1132 1133 /** 1134 * Returns an ordered range of all the journal content searchs. 1135 * 1136 * <p> 1137 * 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. 1138 * </p> 1139 * 1140 * @param start the lower bound of the range of journal content searchs 1141 * @param end the upper bound of the range of journal content searchs (not inclusive) 1142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1143 * @return the ordered range of journal content searchs 1144 */ 1145 public java.util.List<com.liferay.portlet.journal.model.JournalContentSearch> findAll( 1146 int start, int end, 1147 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.journal.model.JournalContentSearch> orderByComparator); 1148 1149 /** 1150 * Removes all the journal content searchs from the database. 1151 */ 1152 public void removeAll(); 1153 1154 /** 1155 * Returns the number of journal content searchs. 1156 * 1157 * @return the number of journal content searchs 1158 */ 1159 public int countAll(); 1160 }