001 /** 002 * Copyright (c) 2000-2010 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.service.persistence.BasePersistence; 018 019 import com.liferay.portlet.journal.model.JournalTemplate; 020 021 /** 022 * The persistence interface for the journal template service. 023 * 024 * <p> 025 * Never modify this interface directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this interface. 026 * </p> 027 * 028 * @author Brian Wing Shun Chan 029 * @see JournalTemplatePersistenceImpl 030 * @see JournalTemplateUtil 031 * @generated 032 */ 033 public interface JournalTemplatePersistence extends BasePersistence<JournalTemplate> { 034 /** 035 * Caches the journal template in the entity cache if it is enabled. 036 * 037 * @param journalTemplate the journal template to cache 038 */ 039 public void cacheResult( 040 com.liferay.portlet.journal.model.JournalTemplate journalTemplate); 041 042 /** 043 * Caches the journal templates in the entity cache if it is enabled. 044 * 045 * @param journalTemplates the journal templates to cache 046 */ 047 public void cacheResult( 048 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates); 049 050 /** 051 * Creates a new journal template with the primary key. 052 * 053 * @param id the primary key for the new journal template 054 * @return the new journal template 055 */ 056 public com.liferay.portlet.journal.model.JournalTemplate create(long id); 057 058 /** 059 * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners. 060 * 061 * @param id the primary key of the journal template to remove 062 * @return the journal template that was removed 063 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 064 * @throws SystemException if a system exception occurred 065 */ 066 public com.liferay.portlet.journal.model.JournalTemplate remove(long id) 067 throws com.liferay.portal.kernel.exception.SystemException, 068 com.liferay.portlet.journal.NoSuchTemplateException; 069 070 public com.liferay.portlet.journal.model.JournalTemplate updateImpl( 071 com.liferay.portlet.journal.model.JournalTemplate journalTemplate, 072 boolean merge) 073 throws com.liferay.portal.kernel.exception.SystemException; 074 075 /** 076 * Finds the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 077 * 078 * @param id the primary key of the journal template to find 079 * @return the journal template 080 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 081 * @throws SystemException if a system exception occurred 082 */ 083 public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey( 084 long id) 085 throws com.liferay.portal.kernel.exception.SystemException, 086 com.liferay.portlet.journal.NoSuchTemplateException; 087 088 /** 089 * Finds the journal template with the primary key or returns <code>null</code> if it could not be found. 090 * 091 * @param id the primary key of the journal template to find 092 * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found 093 * @throws SystemException if a system exception occurred 094 */ 095 public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey( 096 long id) throws com.liferay.portal.kernel.exception.SystemException; 097 098 /** 099 * Finds all the journal templates where uuid = ?. 100 * 101 * @param uuid the uuid to search with 102 * @return the matching journal templates 103 * @throws SystemException if a system exception occurred 104 */ 105 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 106 java.lang.String uuid) 107 throws com.liferay.portal.kernel.exception.SystemException; 108 109 /** 110 * Finds a range of all the journal templates where uuid = ?. 111 * 112 * <p> 113 * 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. 114 * </p> 115 * 116 * @param uuid the uuid to search with 117 * @param start the lower bound of the range of journal templates to return 118 * @param end the upper bound of the range of journal templates to return (not inclusive) 119 * @return the range of matching journal templates 120 * @throws SystemException if a system exception occurred 121 */ 122 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 123 java.lang.String uuid, int start, int end) 124 throws com.liferay.portal.kernel.exception.SystemException; 125 126 /** 127 * Finds an ordered range of all the journal templates where uuid = ?. 128 * 129 * <p> 130 * 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. 131 * </p> 132 * 133 * @param uuid the uuid to search with 134 * @param start the lower bound of the range of journal templates to return 135 * @param end the upper bound of the range of journal templates to return (not inclusive) 136 * @param orderByComparator the comparator to order the results by 137 * @return the ordered range of matching journal templates 138 * @throws SystemException if a system exception occurred 139 */ 140 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 141 java.lang.String uuid, int start, int end, 142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 143 throws com.liferay.portal.kernel.exception.SystemException; 144 145 /** 146 * Finds the first journal template in the ordered set where uuid = ?. 147 * 148 * <p> 149 * 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. 150 * </p> 151 * 152 * @param uuid the uuid to search with 153 * @param orderByComparator the comparator to order the set by 154 * @return the first matching journal template 155 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 156 * @throws SystemException if a system exception occurred 157 */ 158 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First( 159 java.lang.String uuid, 160 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 161 throws com.liferay.portal.kernel.exception.SystemException, 162 com.liferay.portlet.journal.NoSuchTemplateException; 163 164 /** 165 * Finds the last journal template in the ordered set where uuid = ?. 166 * 167 * <p> 168 * 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. 169 * </p> 170 * 171 * @param uuid the uuid to search with 172 * @param orderByComparator the comparator to order the set by 173 * @return the last matching journal template 174 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 175 * @throws SystemException if a system exception occurred 176 */ 177 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last( 178 java.lang.String uuid, 179 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 180 throws com.liferay.portal.kernel.exception.SystemException, 181 com.liferay.portlet.journal.NoSuchTemplateException; 182 183 /** 184 * Finds the journal templates before and after the current journal template in the ordered set where uuid = ?. 185 * 186 * <p> 187 * 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. 188 * </p> 189 * 190 * @param id the primary key of the current journal template 191 * @param uuid the uuid to search with 192 * @param orderByComparator the comparator to order the set by 193 * @return the previous, current, and next journal template 194 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 195 * @throws SystemException if a system exception occurred 196 */ 197 public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext( 198 long id, java.lang.String uuid, 199 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 200 throws com.liferay.portal.kernel.exception.SystemException, 201 com.liferay.portlet.journal.NoSuchTemplateException; 202 203 /** 204 * Finds the journal template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 205 * 206 * @param uuid the uuid to search with 207 * @param groupId the group id to search with 208 * @return the matching journal template 209 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 210 * @throws SystemException if a system exception occurred 211 */ 212 public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G( 213 java.lang.String uuid, long groupId) 214 throws com.liferay.portal.kernel.exception.SystemException, 215 com.liferay.portlet.journal.NoSuchTemplateException; 216 217 /** 218 * Finds the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 219 * 220 * @param uuid the uuid to search with 221 * @param groupId the group id to search with 222 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 223 * @throws SystemException if a system exception occurred 224 */ 225 public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 226 java.lang.String uuid, long groupId) 227 throws com.liferay.portal.kernel.exception.SystemException; 228 229 /** 230 * Finds the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 231 * 232 * @param uuid the uuid to search with 233 * @param groupId the group id to search with 234 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 235 * @throws SystemException if a system exception occurred 236 */ 237 public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 238 java.lang.String uuid, long groupId, boolean retrieveFromCache) 239 throws com.liferay.portal.kernel.exception.SystemException; 240 241 /** 242 * Finds all the journal templates where groupId = ?. 243 * 244 * @param groupId the group id to search with 245 * @return the matching journal templates 246 * @throws SystemException if a system exception occurred 247 */ 248 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 249 long groupId) 250 throws com.liferay.portal.kernel.exception.SystemException; 251 252 /** 253 * Finds a range of all the journal templates where groupId = ?. 254 * 255 * <p> 256 * 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. 257 * </p> 258 * 259 * @param groupId the group id to search with 260 * @param start the lower bound of the range of journal templates to return 261 * @param end the upper bound of the range of journal templates to return (not inclusive) 262 * @return the range of matching journal templates 263 * @throws SystemException if a system exception occurred 264 */ 265 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 266 long groupId, int start, int end) 267 throws com.liferay.portal.kernel.exception.SystemException; 268 269 /** 270 * Finds an ordered range of all the journal templates where groupId = ?. 271 * 272 * <p> 273 * 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. 274 * </p> 275 * 276 * @param groupId the group id to search with 277 * @param start the lower bound of the range of journal templates to return 278 * @param end the upper bound of the range of journal templates to return (not inclusive) 279 * @param orderByComparator the comparator to order the results by 280 * @return the ordered range of matching journal templates 281 * @throws SystemException if a system exception occurred 282 */ 283 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 284 long groupId, int start, int end, 285 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 286 throws com.liferay.portal.kernel.exception.SystemException; 287 288 /** 289 * Finds the first journal template in the ordered set where groupId = ?. 290 * 291 * <p> 292 * 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. 293 * </p> 294 * 295 * @param groupId the group id to search with 296 * @param orderByComparator the comparator to order the set by 297 * @return the first matching journal template 298 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 299 * @throws SystemException if a system exception occurred 300 */ 301 public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First( 302 long groupId, 303 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 304 throws com.liferay.portal.kernel.exception.SystemException, 305 com.liferay.portlet.journal.NoSuchTemplateException; 306 307 /** 308 * Finds the last journal template in the ordered set where groupId = ?. 309 * 310 * <p> 311 * 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. 312 * </p> 313 * 314 * @param groupId the group id to search with 315 * @param orderByComparator the comparator to order the set by 316 * @return the last matching journal template 317 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last( 321 long groupId, 322 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.journal.NoSuchTemplateException; 325 326 /** 327 * Finds the journal templates before and after the current journal template in the ordered set where groupId = ?. 328 * 329 * <p> 330 * 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. 331 * </p> 332 * 333 * @param id the primary key of the current journal template 334 * @param groupId the group id to search with 335 * @param orderByComparator the comparator to order the set by 336 * @return the previous, current, and next journal template 337 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 338 * @throws SystemException if a system exception occurred 339 */ 340 public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext( 341 long id, long groupId, 342 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 343 throws com.liferay.portal.kernel.exception.SystemException, 344 com.liferay.portlet.journal.NoSuchTemplateException; 345 346 /** 347 * Filters by the user's permissions and finds all the journal templates where groupId = ?. 348 * 349 * @param groupId the group id to search with 350 * @return the matching journal templates that the user has permission to view 351 * @throws SystemException if a system exception occurred 352 */ 353 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 354 long groupId) 355 throws com.liferay.portal.kernel.exception.SystemException; 356 357 /** 358 * Filters by the user's permissions and finds a range of all the journal templates where groupId = ?. 359 * 360 * <p> 361 * 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. 362 * </p> 363 * 364 * @param groupId the group id to search with 365 * @param start the lower bound of the range of journal templates to return 366 * @param end the upper bound of the range of journal templates to return (not inclusive) 367 * @return the range of matching journal templates that the user has permission to view 368 * @throws SystemException if a system exception occurred 369 */ 370 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 371 long groupId, int start, int end) 372 throws com.liferay.portal.kernel.exception.SystemException; 373 374 /** 375 * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = ?. 376 * 377 * <p> 378 * 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. 379 * </p> 380 * 381 * @param groupId the group id to search with 382 * @param start the lower bound of the range of journal templates to return 383 * @param end the upper bound of the range of journal templates to return (not inclusive) 384 * @param orderByComparator the comparator to order the results by 385 * @return the ordered range of matching journal templates that the user has permission to view 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 389 long groupId, int start, int end, 390 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 391 throws com.liferay.portal.kernel.exception.SystemException; 392 393 /** 394 * Finds all the journal templates where templateId = ?. 395 * 396 * @param templateId the template id to search with 397 * @return the matching journal templates 398 * @throws SystemException if a system exception occurred 399 */ 400 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 401 java.lang.String templateId) 402 throws com.liferay.portal.kernel.exception.SystemException; 403 404 /** 405 * Finds a range of all the journal templates where templateId = ?. 406 * 407 * <p> 408 * 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. 409 * </p> 410 * 411 * @param templateId the template id to search with 412 * @param start the lower bound of the range of journal templates to return 413 * @param end the upper bound of the range of journal templates to return (not inclusive) 414 * @return the range of matching journal templates 415 * @throws SystemException if a system exception occurred 416 */ 417 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 418 java.lang.String templateId, int start, int end) 419 throws com.liferay.portal.kernel.exception.SystemException; 420 421 /** 422 * Finds an ordered range of all the journal templates where templateId = ?. 423 * 424 * <p> 425 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 426 * </p> 427 * 428 * @param templateId the template id to search with 429 * @param start the lower bound of the range of journal templates to return 430 * @param end the upper bound of the range of journal templates to return (not inclusive) 431 * @param orderByComparator the comparator to order the results by 432 * @return the ordered range of matching journal templates 433 * @throws SystemException if a system exception occurred 434 */ 435 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 436 java.lang.String templateId, int start, int end, 437 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 438 throws com.liferay.portal.kernel.exception.SystemException; 439 440 /** 441 * Finds the first journal template in the ordered set where templateId = ?. 442 * 443 * <p> 444 * 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. 445 * </p> 446 * 447 * @param templateId the template id to search with 448 * @param orderByComparator the comparator to order the set by 449 * @return the first matching journal template 450 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 451 * @throws SystemException if a system exception occurred 452 */ 453 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First( 454 java.lang.String templateId, 455 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 456 throws com.liferay.portal.kernel.exception.SystemException, 457 com.liferay.portlet.journal.NoSuchTemplateException; 458 459 /** 460 * Finds the last journal template in the ordered set where templateId = ?. 461 * 462 * <p> 463 * 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. 464 * </p> 465 * 466 * @param templateId the template id to search with 467 * @param orderByComparator the comparator to order the set by 468 * @return the last matching journal template 469 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 470 * @throws SystemException if a system exception occurred 471 */ 472 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last( 473 java.lang.String templateId, 474 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 475 throws com.liferay.portal.kernel.exception.SystemException, 476 com.liferay.portlet.journal.NoSuchTemplateException; 477 478 /** 479 * Finds the journal templates before and after the current journal template in the ordered set where templateId = ?. 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. 483 * </p> 484 * 485 * @param id the primary key of the current journal template 486 * @param templateId the template id to search with 487 * @param orderByComparator the comparator to order the set by 488 * @return the previous, current, and next journal template 489 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 490 * @throws SystemException if a system exception occurred 491 */ 492 public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext( 493 long id, java.lang.String templateId, 494 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 495 throws com.liferay.portal.kernel.exception.SystemException, 496 com.liferay.portlet.journal.NoSuchTemplateException; 497 498 /** 499 * Finds the journal template where smallImageId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 500 * 501 * @param smallImageId the small image id to search with 502 * @return the matching journal template 503 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 504 * @throws SystemException if a system exception occurred 505 */ 506 public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId( 507 long smallImageId) 508 throws com.liferay.portal.kernel.exception.SystemException, 509 com.liferay.portlet.journal.NoSuchTemplateException; 510 511 /** 512 * Finds the journal template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 513 * 514 * @param smallImageId the small image id to search with 515 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 516 * @throws SystemException if a system exception occurred 517 */ 518 public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 519 long smallImageId) 520 throws com.liferay.portal.kernel.exception.SystemException; 521 522 /** 523 * Finds the journal template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 524 * 525 * @param smallImageId the small image id to search with 526 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 527 * @throws SystemException if a system exception occurred 528 */ 529 public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 530 long smallImageId, boolean retrieveFromCache) 531 throws com.liferay.portal.kernel.exception.SystemException; 532 533 /** 534 * Finds the journal template where groupId = ? and templateId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 535 * 536 * @param groupId the group id to search with 537 * @param templateId the template id to search with 538 * @return the matching journal template 539 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 540 * @throws SystemException if a system exception occurred 541 */ 542 public com.liferay.portlet.journal.model.JournalTemplate findByG_T( 543 long groupId, java.lang.String templateId) 544 throws com.liferay.portal.kernel.exception.SystemException, 545 com.liferay.portlet.journal.NoSuchTemplateException; 546 547 /** 548 * Finds the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 549 * 550 * @param groupId the group id to search with 551 * @param templateId the template id to search with 552 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 553 * @throws SystemException if a system exception occurred 554 */ 555 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 556 long groupId, java.lang.String templateId) 557 throws com.liferay.portal.kernel.exception.SystemException; 558 559 /** 560 * Finds the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 561 * 562 * @param groupId the group id to search with 563 * @param templateId the template id to search with 564 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 565 * @throws SystemException if a system exception occurred 566 */ 567 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 568 long groupId, java.lang.String templateId, boolean retrieveFromCache) 569 throws com.liferay.portal.kernel.exception.SystemException; 570 571 /** 572 * Finds all the journal templates where groupId = ? and structureId = ?. 573 * 574 * @param groupId the group id to search with 575 * @param structureId the structure id to search with 576 * @return the matching journal templates 577 * @throws SystemException if a system exception occurred 578 */ 579 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 580 long groupId, java.lang.String structureId) 581 throws com.liferay.portal.kernel.exception.SystemException; 582 583 /** 584 * Finds a range of all the journal templates where groupId = ? and structureId = ?. 585 * 586 * <p> 587 * 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. 588 * </p> 589 * 590 * @param groupId the group id to search with 591 * @param structureId the structure id to search with 592 * @param start the lower bound of the range of journal templates to return 593 * @param end the upper bound of the range of journal templates to return (not inclusive) 594 * @return the range of matching journal templates 595 * @throws SystemException if a system exception occurred 596 */ 597 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 598 long groupId, java.lang.String structureId, int start, int end) 599 throws com.liferay.portal.kernel.exception.SystemException; 600 601 /** 602 * Finds an ordered range of all the journal templates where groupId = ? and structureId = ?. 603 * 604 * <p> 605 * 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. 606 * </p> 607 * 608 * @param groupId the group id to search with 609 * @param structureId the structure id to search with 610 * @param start the lower bound of the range of journal templates to return 611 * @param end the upper bound of the range of journal templates to return (not inclusive) 612 * @param orderByComparator the comparator to order the results by 613 * @return the ordered range of matching journal templates 614 * @throws SystemException if a system exception occurred 615 */ 616 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 617 long groupId, java.lang.String structureId, int start, int end, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException; 620 621 /** 622 * Finds the first journal template in the ordered set where groupId = ? and structureId = ?. 623 * 624 * <p> 625 * 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. 626 * </p> 627 * 628 * @param groupId the group id to search with 629 * @param structureId the structure id to search with 630 * @param orderByComparator the comparator to order the set by 631 * @return the first matching journal template 632 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 633 * @throws SystemException if a system exception occurred 634 */ 635 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First( 636 long groupId, java.lang.String structureId, 637 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 638 throws com.liferay.portal.kernel.exception.SystemException, 639 com.liferay.portlet.journal.NoSuchTemplateException; 640 641 /** 642 * Finds the last journal template in the ordered set where groupId = ? and structureId = ?. 643 * 644 * <p> 645 * 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. 646 * </p> 647 * 648 * @param groupId the group id to search with 649 * @param structureId the structure id to search with 650 * @param orderByComparator the comparator to order the set by 651 * @return the last matching journal template 652 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 653 * @throws SystemException if a system exception occurred 654 */ 655 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last( 656 long groupId, java.lang.String structureId, 657 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 658 throws com.liferay.portal.kernel.exception.SystemException, 659 com.liferay.portlet.journal.NoSuchTemplateException; 660 661 /** 662 * Finds the journal templates before and after the current journal template in the ordered set where groupId = ? and structureId = ?. 663 * 664 * <p> 665 * 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. 666 * </p> 667 * 668 * @param id the primary key of the current journal template 669 * @param groupId the group id to search with 670 * @param structureId the structure id to search with 671 * @param orderByComparator the comparator to order the set by 672 * @return the previous, current, and next journal template 673 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext( 677 long id, long groupId, java.lang.String structureId, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException, 680 com.liferay.portlet.journal.NoSuchTemplateException; 681 682 /** 683 * Filters by the user's permissions and finds all the journal templates where groupId = ? and structureId = ?. 684 * 685 * @param groupId the group id to search with 686 * @param structureId the structure id to search with 687 * @return the matching journal templates that the user has permission to view 688 * @throws SystemException if a system exception occurred 689 */ 690 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 691 long groupId, java.lang.String structureId) 692 throws com.liferay.portal.kernel.exception.SystemException; 693 694 /** 695 * Filters by the user's permissions and finds a range of all the journal templates where groupId = ? and structureId = ?. 696 * 697 * <p> 698 * 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. 699 * </p> 700 * 701 * @param groupId the group id to search with 702 * @param structureId the structure id to search with 703 * @param start the lower bound of the range of journal templates to return 704 * @param end the upper bound of the range of journal templates to return (not inclusive) 705 * @return the range of matching journal templates that the user has permission to view 706 * @throws SystemException if a system exception occurred 707 */ 708 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 709 long groupId, java.lang.String structureId, int start, int end) 710 throws com.liferay.portal.kernel.exception.SystemException; 711 712 /** 713 * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = ? and structureId = ?. 714 * 715 * <p> 716 * 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. 717 * </p> 718 * 719 * @param groupId the group id to search with 720 * @param structureId the structure id to search with 721 * @param start the lower bound of the range of journal templates to return 722 * @param end the upper bound of the range of journal templates to return (not inclusive) 723 * @param orderByComparator the comparator to order the results by 724 * @return the ordered range of matching journal templates that the user has permission to view 725 * @throws SystemException if a system exception occurred 726 */ 727 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 728 long groupId, java.lang.String structureId, int start, int end, 729 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 730 throws com.liferay.portal.kernel.exception.SystemException; 731 732 /** 733 * Finds all the journal templates. 734 * 735 * @return the journal templates 736 * @throws SystemException if a system exception occurred 737 */ 738 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll() 739 throws com.liferay.portal.kernel.exception.SystemException; 740 741 /** 742 * Finds a range of all the journal templates. 743 * 744 * <p> 745 * 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. 746 * </p> 747 * 748 * @param start the lower bound of the range of journal templates to return 749 * @param end the upper bound of the range of journal templates to return (not inclusive) 750 * @return the range of journal templates 751 * @throws SystemException if a system exception occurred 752 */ 753 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 754 int start, int end) 755 throws com.liferay.portal.kernel.exception.SystemException; 756 757 /** 758 * Finds an ordered range of all the journal templates. 759 * 760 * <p> 761 * 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. 762 * </p> 763 * 764 * @param start the lower bound of the range of journal templates to return 765 * @param end the upper bound of the range of journal templates to return (not inclusive) 766 * @param orderByComparator the comparator to order the results by 767 * @return the ordered range of journal templates 768 * @throws SystemException if a system exception occurred 769 */ 770 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 771 int start, int end, 772 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 773 throws com.liferay.portal.kernel.exception.SystemException; 774 775 /** 776 * Removes all the journal templates where uuid = ? from the database. 777 * 778 * @param uuid the uuid to search with 779 * @throws SystemException if a system exception occurred 780 */ 781 public void removeByUuid(java.lang.String uuid) 782 throws com.liferay.portal.kernel.exception.SystemException; 783 784 /** 785 * Removes the journal template where uuid = ? and groupId = ? from the database. 786 * 787 * @param uuid the uuid to search with 788 * @param groupId the group id to search with 789 * @throws SystemException if a system exception occurred 790 */ 791 public void removeByUUID_G(java.lang.String uuid, long groupId) 792 throws com.liferay.portal.kernel.exception.SystemException, 793 com.liferay.portlet.journal.NoSuchTemplateException; 794 795 /** 796 * Removes all the journal templates where groupId = ? from the database. 797 * 798 * @param groupId the group id to search with 799 * @throws SystemException if a system exception occurred 800 */ 801 public void removeByGroupId(long groupId) 802 throws com.liferay.portal.kernel.exception.SystemException; 803 804 /** 805 * Removes all the journal templates where templateId = ? from the database. 806 * 807 * @param templateId the template id to search with 808 * @throws SystemException if a system exception occurred 809 */ 810 public void removeByTemplateId(java.lang.String templateId) 811 throws com.liferay.portal.kernel.exception.SystemException; 812 813 /** 814 * Removes the journal template where smallImageId = ? from the database. 815 * 816 * @param smallImageId the small image id to search with 817 * @throws SystemException if a system exception occurred 818 */ 819 public void removeBySmallImageId(long smallImageId) 820 throws com.liferay.portal.kernel.exception.SystemException, 821 com.liferay.portlet.journal.NoSuchTemplateException; 822 823 /** 824 * Removes the journal template where groupId = ? and templateId = ? from the database. 825 * 826 * @param groupId the group id to search with 827 * @param templateId the template id to search with 828 * @throws SystemException if a system exception occurred 829 */ 830 public void removeByG_T(long groupId, java.lang.String templateId) 831 throws com.liferay.portal.kernel.exception.SystemException, 832 com.liferay.portlet.journal.NoSuchTemplateException; 833 834 /** 835 * Removes all the journal templates where groupId = ? and structureId = ? from the database. 836 * 837 * @param groupId the group id to search with 838 * @param structureId the structure id to search with 839 * @throws SystemException if a system exception occurred 840 */ 841 public void removeByG_S(long groupId, java.lang.String structureId) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Removes all the journal templates from the database. 846 * 847 * @throws SystemException if a system exception occurred 848 */ 849 public void removeAll() 850 throws com.liferay.portal.kernel.exception.SystemException; 851 852 /** 853 * Counts all the journal templates where uuid = ?. 854 * 855 * @param uuid the uuid to search with 856 * @return the number of matching journal templates 857 * @throws SystemException if a system exception occurred 858 */ 859 public int countByUuid(java.lang.String uuid) 860 throws com.liferay.portal.kernel.exception.SystemException; 861 862 /** 863 * Counts all the journal templates where uuid = ? and groupId = ?. 864 * 865 * @param uuid the uuid to search with 866 * @param groupId the group id to search with 867 * @return the number of matching journal templates 868 * @throws SystemException if a system exception occurred 869 */ 870 public int countByUUID_G(java.lang.String uuid, long groupId) 871 throws com.liferay.portal.kernel.exception.SystemException; 872 873 /** 874 * Counts all the journal templates where groupId = ?. 875 * 876 * @param groupId the group id to search with 877 * @return the number of matching journal templates 878 * @throws SystemException if a system exception occurred 879 */ 880 public int countByGroupId(long groupId) 881 throws com.liferay.portal.kernel.exception.SystemException; 882 883 /** 884 * Filters by the user's permissions and counts all the journal templates where groupId = ?. 885 * 886 * @param groupId the group id to search with 887 * @return the number of matching journal templates that the user has permission to view 888 * @throws SystemException if a system exception occurred 889 */ 890 public int filterCountByGroupId(long groupId) 891 throws com.liferay.portal.kernel.exception.SystemException; 892 893 /** 894 * Counts all the journal templates where templateId = ?. 895 * 896 * @param templateId the template id to search with 897 * @return the number of matching journal templates 898 * @throws SystemException if a system exception occurred 899 */ 900 public int countByTemplateId(java.lang.String templateId) 901 throws com.liferay.portal.kernel.exception.SystemException; 902 903 /** 904 * Counts all the journal templates where smallImageId = ?. 905 * 906 * @param smallImageId the small image id to search with 907 * @return the number of matching journal templates 908 * @throws SystemException if a system exception occurred 909 */ 910 public int countBySmallImageId(long smallImageId) 911 throws com.liferay.portal.kernel.exception.SystemException; 912 913 /** 914 * Counts all the journal templates where groupId = ? and templateId = ?. 915 * 916 * @param groupId the group id to search with 917 * @param templateId the template id to search with 918 * @return the number of matching journal templates 919 * @throws SystemException if a system exception occurred 920 */ 921 public int countByG_T(long groupId, java.lang.String templateId) 922 throws com.liferay.portal.kernel.exception.SystemException; 923 924 /** 925 * Filters by the user's permissions and counts all the journal templates where groupId = ? and templateId = ?. 926 * 927 * @param groupId the group id to search with 928 * @param templateId the template id to search with 929 * @return the number of matching journal templates that the user has permission to view 930 * @throws SystemException if a system exception occurred 931 */ 932 public int filterCountByG_T(long groupId, java.lang.String templateId) 933 throws com.liferay.portal.kernel.exception.SystemException; 934 935 /** 936 * Counts all the journal templates where groupId = ? and structureId = ?. 937 * 938 * @param groupId the group id to search with 939 * @param structureId the structure id to search with 940 * @return the number of matching journal templates 941 * @throws SystemException if a system exception occurred 942 */ 943 public int countByG_S(long groupId, java.lang.String structureId) 944 throws com.liferay.portal.kernel.exception.SystemException; 945 946 /** 947 * Filters by the user's permissions and counts all the journal templates where groupId = ? and structureId = ?. 948 * 949 * @param groupId the group id to search with 950 * @param structureId the structure id to search with 951 * @return the number of matching journal templates that the user has permission to view 952 * @throws SystemException if a system exception occurred 953 */ 954 public int filterCountByG_S(long groupId, java.lang.String structureId) 955 throws com.liferay.portal.kernel.exception.SystemException; 956 957 /** 958 * Counts all the journal templates. 959 * 960 * @return the number of journal templates 961 * @throws SystemException if a system exception occurred 962 */ 963 public int countAll() 964 throws com.liferay.portal.kernel.exception.SystemException; 965 }