001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.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 * Caching information and settings can be found in <code>portal.properties</code> 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 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link JournalTemplateUtil} to access the journal template persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the journal template in the entity cache if it is enabled. 042 * 043 * @param journalTemplate the journal template 044 */ 045 public void cacheResult( 046 com.liferay.portlet.journal.model.JournalTemplate journalTemplate); 047 048 /** 049 * Caches the journal templates in the entity cache if it is enabled. 050 * 051 * @param journalTemplates the journal templates 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates); 055 056 /** 057 * Creates a new journal template with the primary key. Does not add the journal template to the database. 058 * 059 * @param id the primary key for the new journal template 060 * @return the new journal template 061 */ 062 public com.liferay.portlet.journal.model.JournalTemplate create(long id); 063 064 /** 065 * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param id the primary key of the journal template 068 * @return the journal template that was removed 069 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portlet.journal.model.JournalTemplate remove(long id) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.journal.NoSuchTemplateException; 075 076 public com.liferay.portlet.journal.model.JournalTemplate updateImpl( 077 com.liferay.portlet.journal.model.JournalTemplate journalTemplate) 078 throws com.liferay.portal.kernel.exception.SystemException; 079 080 /** 081 * Returns the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 082 * 083 * @param id the primary key of the journal template 084 * @return the journal template 085 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 086 * @throws SystemException if a system exception occurred 087 */ 088 public com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey( 089 long id) 090 throws com.liferay.portal.kernel.exception.SystemException, 091 com.liferay.portlet.journal.NoSuchTemplateException; 092 093 /** 094 * Returns the journal template with the primary key or returns <code>null</code> if it could not be found. 095 * 096 * @param id the primary key of the journal template 097 * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found 098 * @throws SystemException if a system exception occurred 099 */ 100 public com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey( 101 long id) throws com.liferay.portal.kernel.exception.SystemException; 102 103 /** 104 * Returns all the journal templates where uuid = ?. 105 * 106 * @param uuid the uuid 107 * @return the matching journal templates 108 * @throws SystemException if a system exception occurred 109 */ 110 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 111 java.lang.String uuid) 112 throws com.liferay.portal.kernel.exception.SystemException; 113 114 /** 115 * Returns a range of all the journal templates where uuid = ?. 116 * 117 * <p> 118 * 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. 119 * </p> 120 * 121 * @param uuid the uuid 122 * @param start the lower bound of the range of journal templates 123 * @param end the upper bound of the range of journal templates (not inclusive) 124 * @return the range of matching journal templates 125 * @throws SystemException if a system exception occurred 126 */ 127 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 128 java.lang.String uuid, int start, int end) 129 throws com.liferay.portal.kernel.exception.SystemException; 130 131 /** 132 * Returns an ordered range of all the journal templates where uuid = ?. 133 * 134 * <p> 135 * 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. 136 * </p> 137 * 138 * @param uuid the uuid 139 * @param start the lower bound of the range of journal templates 140 * @param end the upper bound of the range of journal templates (not inclusive) 141 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 142 * @return the ordered range of matching journal templates 143 * @throws SystemException if a system exception occurred 144 */ 145 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 146 java.lang.String uuid, int start, int end, 147 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 148 throws com.liferay.portal.kernel.exception.SystemException; 149 150 /** 151 * Returns the first journal template in the ordered set where uuid = ?. 152 * 153 * @param uuid the uuid 154 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 155 * @return the first matching journal template 156 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 157 * @throws SystemException if a system exception occurred 158 */ 159 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_First( 160 java.lang.String uuid, 161 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 162 throws com.liferay.portal.kernel.exception.SystemException, 163 com.liferay.portlet.journal.NoSuchTemplateException; 164 165 /** 166 * Returns the first journal template in the ordered set where uuid = ?. 167 * 168 * @param uuid the uuid 169 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 170 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 171 * @throws SystemException if a system exception occurred 172 */ 173 public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_First( 174 java.lang.String uuid, 175 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 176 throws com.liferay.portal.kernel.exception.SystemException; 177 178 /** 179 * Returns the last journal template in the ordered set where uuid = ?. 180 * 181 * @param uuid the uuid 182 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 183 * @return the last matching journal template 184 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last( 188 java.lang.String uuid, 189 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 190 throws com.liferay.portal.kernel.exception.SystemException, 191 com.liferay.portlet.journal.NoSuchTemplateException; 192 193 /** 194 * Returns the last journal template in the ordered set where uuid = ?. 195 * 196 * @param uuid the uuid 197 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 198 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 199 * @throws SystemException if a system exception occurred 200 */ 201 public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_Last( 202 java.lang.String uuid, 203 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 204 throws com.liferay.portal.kernel.exception.SystemException; 205 206 /** 207 * Returns the journal templates before and after the current journal template in the ordered set where uuid = ?. 208 * 209 * @param id the primary key of the current journal template 210 * @param uuid the uuid 211 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 212 * @return the previous, current, and next journal template 213 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 214 * @throws SystemException if a system exception occurred 215 */ 216 public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext( 217 long id, java.lang.String uuid, 218 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 219 throws com.liferay.portal.kernel.exception.SystemException, 220 com.liferay.portlet.journal.NoSuchTemplateException; 221 222 /** 223 * Returns the journal template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 224 * 225 * @param uuid the uuid 226 * @param groupId the group ID 227 * @return the matching journal template 228 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 229 * @throws SystemException if a system exception occurred 230 */ 231 public com.liferay.portlet.journal.model.JournalTemplate findByUUID_G( 232 java.lang.String uuid, long groupId) 233 throws com.liferay.portal.kernel.exception.SystemException, 234 com.liferay.portlet.journal.NoSuchTemplateException; 235 236 /** 237 * Returns the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 238 * 239 * @param uuid the uuid 240 * @param groupId the group ID 241 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 242 * @throws SystemException if a system exception occurred 243 */ 244 public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 245 java.lang.String uuid, long groupId) 246 throws com.liferay.portal.kernel.exception.SystemException; 247 248 /** 249 * Returns the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 250 * 251 * @param uuid the uuid 252 * @param groupId the group ID 253 * @param retrieveFromCache whether to use the finder cache 254 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 255 * @throws SystemException if a system exception occurred 256 */ 257 public com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 258 java.lang.String uuid, long groupId, boolean retrieveFromCache) 259 throws com.liferay.portal.kernel.exception.SystemException; 260 261 /** 262 * Returns all the journal templates where uuid = ? and companyId = ?. 263 * 264 * @param uuid the uuid 265 * @param companyId the company ID 266 * @return the matching journal templates 267 * @throws SystemException if a system exception occurred 268 */ 269 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid_C( 270 java.lang.String uuid, long companyId) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns a range of all the journal templates where uuid = ? and companyId = ?. 275 * 276 * <p> 277 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 278 * </p> 279 * 280 * @param uuid the uuid 281 * @param companyId the company ID 282 * @param start the lower bound of the range of journal templates 283 * @param end the upper bound of the range of journal templates (not inclusive) 284 * @return the range of matching journal templates 285 * @throws SystemException if a system exception occurred 286 */ 287 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid_C( 288 java.lang.String uuid, long companyId, int start, int end) 289 throws com.liferay.portal.kernel.exception.SystemException; 290 291 /** 292 * Returns an ordered range of all the journal templates where uuid = ? and companyId = ?. 293 * 294 * <p> 295 * 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. 296 * </p> 297 * 298 * @param uuid the uuid 299 * @param companyId the company ID 300 * @param start the lower bound of the range of journal templates 301 * @param end the upper bound of the range of journal templates (not inclusive) 302 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 303 * @return the ordered range of matching journal templates 304 * @throws SystemException if a system exception occurred 305 */ 306 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid_C( 307 java.lang.String uuid, long companyId, int start, int end, 308 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 309 throws com.liferay.portal.kernel.exception.SystemException; 310 311 /** 312 * Returns the first journal template in the ordered set where uuid = ? and companyId = ?. 313 * 314 * @param uuid the uuid 315 * @param companyId the company ID 316 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 317 * @return the first matching journal template 318 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_C_First( 322 java.lang.String uuid, long companyId, 323 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 324 throws com.liferay.portal.kernel.exception.SystemException, 325 com.liferay.portlet.journal.NoSuchTemplateException; 326 327 /** 328 * Returns the first journal template in the ordered set where uuid = ? and companyId = ?. 329 * 330 * @param uuid the uuid 331 * @param companyId the company ID 332 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 333 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_C_First( 337 java.lang.String uuid, long companyId, 338 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 339 throws com.liferay.portal.kernel.exception.SystemException; 340 341 /** 342 * Returns the last journal template in the ordered set where uuid = ? and companyId = ?. 343 * 344 * @param uuid the uuid 345 * @param companyId the company ID 346 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 347 * @return the last matching journal template 348 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portlet.journal.model.JournalTemplate findByUuid_C_Last( 352 java.lang.String uuid, long companyId, 353 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 354 throws com.liferay.portal.kernel.exception.SystemException, 355 com.liferay.portlet.journal.NoSuchTemplateException; 356 357 /** 358 * Returns the last journal template in the ordered set where uuid = ? and companyId = ?. 359 * 360 * @param uuid the uuid 361 * @param companyId the company ID 362 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 363 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 364 * @throws SystemException if a system exception occurred 365 */ 366 public com.liferay.portlet.journal.model.JournalTemplate fetchByUuid_C_Last( 367 java.lang.String uuid, long companyId, 368 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 369 throws com.liferay.portal.kernel.exception.SystemException; 370 371 /** 372 * Returns the journal templates before and after the current journal template in the ordered set where uuid = ? and companyId = ?. 373 * 374 * @param id the primary key of the current journal template 375 * @param uuid the uuid 376 * @param companyId the company ID 377 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 378 * @return the previous, current, and next journal template 379 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 380 * @throws SystemException if a system exception occurred 381 */ 382 public com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_C_PrevAndNext( 383 long id, java.lang.String uuid, long companyId, 384 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 385 throws com.liferay.portal.kernel.exception.SystemException, 386 com.liferay.portlet.journal.NoSuchTemplateException; 387 388 /** 389 * Returns all the journal templates where groupId = ?. 390 * 391 * @param groupId the group ID 392 * @return the matching journal templates 393 * @throws SystemException if a system exception occurred 394 */ 395 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 396 long groupId) 397 throws com.liferay.portal.kernel.exception.SystemException; 398 399 /** 400 * Returns a range of all the journal templates where groupId = ?. 401 * 402 * <p> 403 * 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. 404 * </p> 405 * 406 * @param groupId the group ID 407 * @param start the lower bound of the range of journal templates 408 * @param end the upper bound of the range of journal templates (not inclusive) 409 * @return the range of matching journal templates 410 * @throws SystemException if a system exception occurred 411 */ 412 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 413 long groupId, int start, int end) 414 throws com.liferay.portal.kernel.exception.SystemException; 415 416 /** 417 * Returns an ordered range of all the journal templates where groupId = ?. 418 * 419 * <p> 420 * 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. 421 * </p> 422 * 423 * @param groupId the group ID 424 * @param start the lower bound of the range of journal templates 425 * @param end the upper bound of the range of journal templates (not inclusive) 426 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 427 * @return the ordered range of matching journal templates 428 * @throws SystemException if a system exception occurred 429 */ 430 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 431 long groupId, int start, int end, 432 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 433 throws com.liferay.portal.kernel.exception.SystemException; 434 435 /** 436 * Returns the first journal template in the ordered set where groupId = ?. 437 * 438 * @param groupId the group ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the first matching journal template 441 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 442 * @throws SystemException if a system exception occurred 443 */ 444 public com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First( 445 long groupId, 446 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 447 throws com.liferay.portal.kernel.exception.SystemException, 448 com.liferay.portlet.journal.NoSuchTemplateException; 449 450 /** 451 * Returns the first journal template in the ordered set where groupId = ?. 452 * 453 * @param groupId the group ID 454 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 455 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 456 * @throws SystemException if a system exception occurred 457 */ 458 public com.liferay.portlet.journal.model.JournalTemplate fetchByGroupId_First( 459 long groupId, 460 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 461 throws com.liferay.portal.kernel.exception.SystemException; 462 463 /** 464 * Returns the last journal template in the ordered set where groupId = ?. 465 * 466 * @param groupId the group ID 467 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 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 findByGroupId_Last( 473 long groupId, 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 * Returns the last journal template in the ordered set where groupId = ?. 480 * 481 * @param groupId the group ID 482 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 483 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 484 * @throws SystemException if a system exception occurred 485 */ 486 public com.liferay.portlet.journal.model.JournalTemplate fetchByGroupId_Last( 487 long groupId, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the journal templates before and after the current journal template in the ordered set where groupId = ?. 493 * 494 * @param id the primary key of the current journal template 495 * @param groupId the group ID 496 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 497 * @return the previous, current, and next journal template 498 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 499 * @throws SystemException if a system exception occurred 500 */ 501 public com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext( 502 long id, long groupId, 503 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 504 throws com.liferay.portal.kernel.exception.SystemException, 505 com.liferay.portlet.journal.NoSuchTemplateException; 506 507 /** 508 * Returns all the journal templates that the user has permission to view where groupId = ?. 509 * 510 * @param groupId the group ID 511 * @return the matching journal templates that the user has permission to view 512 * @throws SystemException if a system exception occurred 513 */ 514 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 515 long groupId) 516 throws com.liferay.portal.kernel.exception.SystemException; 517 518 /** 519 * Returns a range of all the journal templates that the user has permission to view where groupId = ?. 520 * 521 * <p> 522 * 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. 523 * </p> 524 * 525 * @param groupId the group ID 526 * @param start the lower bound of the range of journal templates 527 * @param end the upper bound of the range of journal templates (not inclusive) 528 * @return the range of matching journal templates that the user has permission to view 529 * @throws SystemException if a system exception occurred 530 */ 531 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 532 long groupId, int start, int end) 533 throws com.liferay.portal.kernel.exception.SystemException; 534 535 /** 536 * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = ?. 537 * 538 * <p> 539 * 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. 540 * </p> 541 * 542 * @param groupId the group ID 543 * @param start the lower bound of the range of journal templates 544 * @param end the upper bound of the range of journal templates (not inclusive) 545 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 546 * @return the ordered range of matching journal templates that the user has permission to view 547 * @throws SystemException if a system exception occurred 548 */ 549 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 550 long groupId, int start, int end, 551 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 552 throws com.liferay.portal.kernel.exception.SystemException; 553 554 /** 555 * Returns the journal templates before and after the current journal template in the ordered set of journal templates that the user has permission to view where groupId = ?. 556 * 557 * @param id the primary key of the current journal template 558 * @param groupId the group ID 559 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 560 * @return the previous, current, and next journal template 561 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 562 * @throws SystemException if a system exception occurred 563 */ 564 public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByGroupId_PrevAndNext( 565 long id, long groupId, 566 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 567 throws com.liferay.portal.kernel.exception.SystemException, 568 com.liferay.portlet.journal.NoSuchTemplateException; 569 570 /** 571 * Returns all the journal templates where templateId = ?. 572 * 573 * @param templateId the template ID 574 * @return the matching journal templates 575 * @throws SystemException if a system exception occurred 576 */ 577 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 578 java.lang.String templateId) 579 throws com.liferay.portal.kernel.exception.SystemException; 580 581 /** 582 * Returns a range of all the journal templates where templateId = ?. 583 * 584 * <p> 585 * 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. 586 * </p> 587 * 588 * @param templateId the template ID 589 * @param start the lower bound of the range of journal templates 590 * @param end the upper bound of the range of journal templates (not inclusive) 591 * @return the range of matching journal templates 592 * @throws SystemException if a system exception occurred 593 */ 594 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 595 java.lang.String templateId, int start, int end) 596 throws com.liferay.portal.kernel.exception.SystemException; 597 598 /** 599 * Returns an ordered range of all the journal templates where templateId = ?. 600 * 601 * <p> 602 * 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. 603 * </p> 604 * 605 * @param templateId the template ID 606 * @param start the lower bound of the range of journal templates 607 * @param end the upper bound of the range of journal templates (not inclusive) 608 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 609 * @return the ordered range of matching journal templates 610 * @throws SystemException if a system exception occurred 611 */ 612 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 613 java.lang.String templateId, int start, int end, 614 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 615 throws com.liferay.portal.kernel.exception.SystemException; 616 617 /** 618 * Returns the first journal template in the ordered set where templateId = ?. 619 * 620 * @param templateId the template ID 621 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 622 * @return the first matching journal template 623 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 624 * @throws SystemException if a system exception occurred 625 */ 626 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First( 627 java.lang.String templateId, 628 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 629 throws com.liferay.portal.kernel.exception.SystemException, 630 com.liferay.portlet.journal.NoSuchTemplateException; 631 632 /** 633 * Returns the first journal template in the ordered set where templateId = ?. 634 * 635 * @param templateId the template ID 636 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 637 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 638 * @throws SystemException if a system exception occurred 639 */ 640 public com.liferay.portlet.journal.model.JournalTemplate fetchByTemplateId_First( 641 java.lang.String templateId, 642 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 643 throws com.liferay.portal.kernel.exception.SystemException; 644 645 /** 646 * Returns the last journal template in the ordered set where templateId = ?. 647 * 648 * @param templateId the template ID 649 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 650 * @return the last matching journal template 651 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 652 * @throws SystemException if a system exception occurred 653 */ 654 public com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last( 655 java.lang.String templateId, 656 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 657 throws com.liferay.portal.kernel.exception.SystemException, 658 com.liferay.portlet.journal.NoSuchTemplateException; 659 660 /** 661 * Returns the last journal template in the ordered set where templateId = ?. 662 * 663 * @param templateId the template ID 664 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 665 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portlet.journal.model.JournalTemplate fetchByTemplateId_Last( 669 java.lang.String templateId, 670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 671 throws com.liferay.portal.kernel.exception.SystemException; 672 673 /** 674 * Returns the journal templates before and after the current journal template in the ordered set where templateId = ?. 675 * 676 * @param id the primary key of the current journal template 677 * @param templateId the template ID 678 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 679 * @return the previous, current, and next journal template 680 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 681 * @throws SystemException if a system exception occurred 682 */ 683 public com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext( 684 long id, java.lang.String templateId, 685 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 686 throws com.liferay.portal.kernel.exception.SystemException, 687 com.liferay.portlet.journal.NoSuchTemplateException; 688 689 /** 690 * Returns all the journal templates where structureId = ?. 691 * 692 * @param structureId the structure ID 693 * @return the matching journal templates 694 * @throws SystemException if a system exception occurred 695 */ 696 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 697 java.lang.String structureId) 698 throws com.liferay.portal.kernel.exception.SystemException; 699 700 /** 701 * Returns a range of all the journal templates where structureId = ?. 702 * 703 * <p> 704 * 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. 705 * </p> 706 * 707 * @param structureId the structure ID 708 * @param start the lower bound of the range of journal templates 709 * @param end the upper bound of the range of journal templates (not inclusive) 710 * @return the range of matching journal templates 711 * @throws SystemException if a system exception occurred 712 */ 713 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 714 java.lang.String structureId, int start, int end) 715 throws com.liferay.portal.kernel.exception.SystemException; 716 717 /** 718 * Returns an ordered range of all the journal templates where structureId = ?. 719 * 720 * <p> 721 * 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. 722 * </p> 723 * 724 * @param structureId the structure ID 725 * @param start the lower bound of the range of journal templates 726 * @param end the upper bound of the range of journal templates (not inclusive) 727 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 728 * @return the ordered range of matching journal templates 729 * @throws SystemException if a system exception occurred 730 */ 731 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 732 java.lang.String structureId, int start, int end, 733 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 734 throws com.liferay.portal.kernel.exception.SystemException; 735 736 /** 737 * Returns the first journal template in the ordered set where structureId = ?. 738 * 739 * @param structureId the structure ID 740 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 741 * @return the first matching journal template 742 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 743 * @throws SystemException if a system exception occurred 744 */ 745 public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_First( 746 java.lang.String structureId, 747 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 748 throws com.liferay.portal.kernel.exception.SystemException, 749 com.liferay.portlet.journal.NoSuchTemplateException; 750 751 /** 752 * Returns the first journal template in the ordered set where structureId = ?. 753 * 754 * @param structureId the structure ID 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 757 * @throws SystemException if a system exception occurred 758 */ 759 public com.liferay.portlet.journal.model.JournalTemplate fetchByStructureId_First( 760 java.lang.String structureId, 761 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 762 throws com.liferay.portal.kernel.exception.SystemException; 763 764 /** 765 * Returns the last journal template in the ordered set where structureId = ?. 766 * 767 * @param structureId the structure ID 768 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 769 * @return the last matching journal template 770 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 771 * @throws SystemException if a system exception occurred 772 */ 773 public com.liferay.portlet.journal.model.JournalTemplate findByStructureId_Last( 774 java.lang.String structureId, 775 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 776 throws com.liferay.portal.kernel.exception.SystemException, 777 com.liferay.portlet.journal.NoSuchTemplateException; 778 779 /** 780 * Returns the last journal template in the ordered set where structureId = ?. 781 * 782 * @param structureId the structure ID 783 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 784 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 785 * @throws SystemException if a system exception occurred 786 */ 787 public com.liferay.portlet.journal.model.JournalTemplate fetchByStructureId_Last( 788 java.lang.String structureId, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException; 791 792 /** 793 * Returns the journal templates before and after the current journal template in the ordered set where structureId = ?. 794 * 795 * @param id the primary key of the current journal template 796 * @param structureId the structure ID 797 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 798 * @return the previous, current, and next journal template 799 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 800 * @throws SystemException if a system exception occurred 801 */ 802 public com.liferay.portlet.journal.model.JournalTemplate[] findByStructureId_PrevAndNext( 803 long id, java.lang.String structureId, 804 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 805 throws com.liferay.portal.kernel.exception.SystemException, 806 com.liferay.portlet.journal.NoSuchTemplateException; 807 808 /** 809 * Returns the journal template where smallImageId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 810 * 811 * @param smallImageId the small image ID 812 * @return the matching journal template 813 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 814 * @throws SystemException if a system exception occurred 815 */ 816 public com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId( 817 long smallImageId) 818 throws com.liferay.portal.kernel.exception.SystemException, 819 com.liferay.portlet.journal.NoSuchTemplateException; 820 821 /** 822 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 823 * 824 * @param smallImageId the small image ID 825 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 826 * @throws SystemException if a system exception occurred 827 */ 828 public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 829 long smallImageId) 830 throws com.liferay.portal.kernel.exception.SystemException; 831 832 /** 833 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 834 * 835 * @param smallImageId the small image ID 836 * @param retrieveFromCache whether to use the finder cache 837 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 838 * @throws SystemException if a system exception occurred 839 */ 840 public com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 841 long smallImageId, boolean retrieveFromCache) 842 throws com.liferay.portal.kernel.exception.SystemException; 843 844 /** 845 * Returns the journal template where groupId = ? and templateId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 846 * 847 * @param groupId the group ID 848 * @param templateId the template ID 849 * @return the matching journal template 850 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 851 * @throws SystemException if a system exception occurred 852 */ 853 public com.liferay.portlet.journal.model.JournalTemplate findByG_T( 854 long groupId, java.lang.String templateId) 855 throws com.liferay.portal.kernel.exception.SystemException, 856 com.liferay.portlet.journal.NoSuchTemplateException; 857 858 /** 859 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 860 * 861 * @param groupId the group ID 862 * @param templateId the template ID 863 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 864 * @throws SystemException if a system exception occurred 865 */ 866 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 867 long groupId, java.lang.String templateId) 868 throws com.liferay.portal.kernel.exception.SystemException; 869 870 /** 871 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 872 * 873 * @param groupId the group ID 874 * @param templateId the template ID 875 * @param retrieveFromCache whether to use the finder cache 876 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 877 * @throws SystemException if a system exception occurred 878 */ 879 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 880 long groupId, java.lang.String templateId, boolean retrieveFromCache) 881 throws com.liferay.portal.kernel.exception.SystemException; 882 883 /** 884 * Returns all the journal templates where groupId = ? and structureId = ?. 885 * 886 * @param groupId the group ID 887 * @param structureId the structure ID 888 * @return the matching journal templates 889 * @throws SystemException if a system exception occurred 890 */ 891 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 892 long groupId, java.lang.String structureId) 893 throws com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Returns a range of all the journal templates where groupId = ? and structureId = ?. 897 * 898 * <p> 899 * 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. 900 * </p> 901 * 902 * @param groupId the group ID 903 * @param structureId the structure ID 904 * @param start the lower bound of the range of journal templates 905 * @param end the upper bound of the range of journal templates (not inclusive) 906 * @return the range of matching journal templates 907 * @throws SystemException if a system exception occurred 908 */ 909 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 910 long groupId, java.lang.String structureId, int start, int end) 911 throws com.liferay.portal.kernel.exception.SystemException; 912 913 /** 914 * Returns an ordered range of all the journal templates where groupId = ? and structureId = ?. 915 * 916 * <p> 917 * 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. 918 * </p> 919 * 920 * @param groupId the group ID 921 * @param structureId the structure ID 922 * @param start the lower bound of the range of journal templates 923 * @param end the upper bound of the range of journal templates (not inclusive) 924 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 925 * @return the ordered range of matching journal templates 926 * @throws SystemException if a system exception occurred 927 */ 928 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 929 long groupId, java.lang.String structureId, int start, int end, 930 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 931 throws com.liferay.portal.kernel.exception.SystemException; 932 933 /** 934 * Returns the first journal template in the ordered set where groupId = ? and structureId = ?. 935 * 936 * @param groupId the group ID 937 * @param structureId the structure ID 938 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 939 * @return the first matching journal template 940 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 941 * @throws SystemException if a system exception occurred 942 */ 943 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_First( 944 long groupId, java.lang.String structureId, 945 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 946 throws com.liferay.portal.kernel.exception.SystemException, 947 com.liferay.portlet.journal.NoSuchTemplateException; 948 949 /** 950 * Returns the first journal template in the ordered set where groupId = ? and structureId = ?. 951 * 952 * @param groupId the group ID 953 * @param structureId the structure ID 954 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 955 * @return the first matching journal template, or <code>null</code> if a matching journal template could not be found 956 * @throws SystemException if a system exception occurred 957 */ 958 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_S_First( 959 long groupId, java.lang.String structureId, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException; 962 963 /** 964 * Returns the last journal template in the ordered set where groupId = ? and structureId = ?. 965 * 966 * @param groupId the group ID 967 * @param structureId the structure ID 968 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 969 * @return the last matching journal template 970 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 971 * @throws SystemException if a system exception occurred 972 */ 973 public com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last( 974 long groupId, java.lang.String structureId, 975 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 976 throws com.liferay.portal.kernel.exception.SystemException, 977 com.liferay.portlet.journal.NoSuchTemplateException; 978 979 /** 980 * Returns the last journal template in the ordered set where groupId = ? and structureId = ?. 981 * 982 * @param groupId the group ID 983 * @param structureId the structure ID 984 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 985 * @return the last matching journal template, or <code>null</code> if a matching journal template could not be found 986 * @throws SystemException if a system exception occurred 987 */ 988 public com.liferay.portlet.journal.model.JournalTemplate fetchByG_S_Last( 989 long groupId, java.lang.String structureId, 990 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 991 throws com.liferay.portal.kernel.exception.SystemException; 992 993 /** 994 * Returns the journal templates before and after the current journal template in the ordered set where groupId = ? and structureId = ?. 995 * 996 * @param id the primary key of the current journal template 997 * @param groupId the group ID 998 * @param structureId the structure ID 999 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1000 * @return the previous, current, and next journal template 1001 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext( 1005 long id, long groupId, java.lang.String structureId, 1006 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1007 throws com.liferay.portal.kernel.exception.SystemException, 1008 com.liferay.portlet.journal.NoSuchTemplateException; 1009 1010 /** 1011 * Returns all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 1012 * 1013 * @param groupId the group ID 1014 * @param structureId the structure ID 1015 * @return the matching journal templates that the user has permission to view 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1019 long groupId, java.lang.String structureId) 1020 throws com.liferay.portal.kernel.exception.SystemException; 1021 1022 /** 1023 * Returns a range of all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 1024 * 1025 * <p> 1026 * 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. 1027 * </p> 1028 * 1029 * @param groupId the group ID 1030 * @param structureId the structure ID 1031 * @param start the lower bound of the range of journal templates 1032 * @param end the upper bound of the range of journal templates (not inclusive) 1033 * @return the range of matching journal templates that the user has permission to view 1034 * @throws SystemException if a system exception occurred 1035 */ 1036 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1037 long groupId, java.lang.String structureId, int start, int end) 1038 throws com.liferay.portal.kernel.exception.SystemException; 1039 1040 /** 1041 * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = ? and structureId = ?. 1042 * 1043 * <p> 1044 * 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. 1045 * </p> 1046 * 1047 * @param groupId the group ID 1048 * @param structureId the structure ID 1049 * @param start the lower bound of the range of journal templates 1050 * @param end the upper bound of the range of journal templates (not inclusive) 1051 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1052 * @return the ordered range of matching journal templates that the user has permission to view 1053 * @throws SystemException if a system exception occurred 1054 */ 1055 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1056 long groupId, java.lang.String structureId, int start, int end, 1057 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1058 throws com.liferay.portal.kernel.exception.SystemException; 1059 1060 /** 1061 * Returns the journal templates before and after the current journal template in the ordered set of journal templates that the user has permission to view where groupId = ? and structureId = ?. 1062 * 1063 * @param id the primary key of the current journal template 1064 * @param groupId the group ID 1065 * @param structureId the structure ID 1066 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1067 * @return the previous, current, and next journal template 1068 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 1069 * @throws SystemException if a system exception occurred 1070 */ 1071 public com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext( 1072 long id, long groupId, java.lang.String structureId, 1073 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1074 throws com.liferay.portal.kernel.exception.SystemException, 1075 com.liferay.portlet.journal.NoSuchTemplateException; 1076 1077 /** 1078 * Returns all the journal templates. 1079 * 1080 * @return the journal templates 1081 * @throws SystemException if a system exception occurred 1082 */ 1083 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll() 1084 throws com.liferay.portal.kernel.exception.SystemException; 1085 1086 /** 1087 * Returns a range of all the journal templates. 1088 * 1089 * <p> 1090 * 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. 1091 * </p> 1092 * 1093 * @param start the lower bound of the range of journal templates 1094 * @param end the upper bound of the range of journal templates (not inclusive) 1095 * @return the range of journal templates 1096 * @throws SystemException if a system exception occurred 1097 */ 1098 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 1099 int start, int end) 1100 throws com.liferay.portal.kernel.exception.SystemException; 1101 1102 /** 1103 * Returns an ordered range of all the journal templates. 1104 * 1105 * <p> 1106 * 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. 1107 * </p> 1108 * 1109 * @param start the lower bound of the range of journal templates 1110 * @param end the upper bound of the range of journal templates (not inclusive) 1111 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1112 * @return the ordered range of journal templates 1113 * @throws SystemException if a system exception occurred 1114 */ 1115 public java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 1116 int start, int end, 1117 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1118 throws com.liferay.portal.kernel.exception.SystemException; 1119 1120 /** 1121 * Removes all the journal templates where uuid = ? from the database. 1122 * 1123 * @param uuid the uuid 1124 * @throws SystemException if a system exception occurred 1125 */ 1126 public void removeByUuid(java.lang.String uuid) 1127 throws com.liferay.portal.kernel.exception.SystemException; 1128 1129 /** 1130 * Removes the journal template where uuid = ? and groupId = ? from the database. 1131 * 1132 * @param uuid the uuid 1133 * @param groupId the group ID 1134 * @return the journal template that was removed 1135 * @throws SystemException if a system exception occurred 1136 */ 1137 public com.liferay.portlet.journal.model.JournalTemplate removeByUUID_G( 1138 java.lang.String uuid, long groupId) 1139 throws com.liferay.portal.kernel.exception.SystemException, 1140 com.liferay.portlet.journal.NoSuchTemplateException; 1141 1142 /** 1143 * Removes all the journal templates where uuid = ? and companyId = ? from the database. 1144 * 1145 * @param uuid the uuid 1146 * @param companyId the company ID 1147 * @throws SystemException if a system exception occurred 1148 */ 1149 public void removeByUuid_C(java.lang.String uuid, long companyId) 1150 throws com.liferay.portal.kernel.exception.SystemException; 1151 1152 /** 1153 * Removes all the journal templates where groupId = ? from the database. 1154 * 1155 * @param groupId the group ID 1156 * @throws SystemException if a system exception occurred 1157 */ 1158 public void removeByGroupId(long groupId) 1159 throws com.liferay.portal.kernel.exception.SystemException; 1160 1161 /** 1162 * Removes all the journal templates where templateId = ? from the database. 1163 * 1164 * @param templateId the template ID 1165 * @throws SystemException if a system exception occurred 1166 */ 1167 public void removeByTemplateId(java.lang.String templateId) 1168 throws com.liferay.portal.kernel.exception.SystemException; 1169 1170 /** 1171 * Removes all the journal templates where structureId = ? from the database. 1172 * 1173 * @param structureId the structure ID 1174 * @throws SystemException if a system exception occurred 1175 */ 1176 public void removeByStructureId(java.lang.String structureId) 1177 throws com.liferay.portal.kernel.exception.SystemException; 1178 1179 /** 1180 * Removes the journal template where smallImageId = ? from the database. 1181 * 1182 * @param smallImageId the small image ID 1183 * @return the journal template that was removed 1184 * @throws SystemException if a system exception occurred 1185 */ 1186 public com.liferay.portlet.journal.model.JournalTemplate removeBySmallImageId( 1187 long smallImageId) 1188 throws com.liferay.portal.kernel.exception.SystemException, 1189 com.liferay.portlet.journal.NoSuchTemplateException; 1190 1191 /** 1192 * Removes the journal template where groupId = ? and templateId = ? from the database. 1193 * 1194 * @param groupId the group ID 1195 * @param templateId the template ID 1196 * @return the journal template that was removed 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public com.liferay.portlet.journal.model.JournalTemplate removeByG_T( 1200 long groupId, java.lang.String templateId) 1201 throws com.liferay.portal.kernel.exception.SystemException, 1202 com.liferay.portlet.journal.NoSuchTemplateException; 1203 1204 /** 1205 * Removes all the journal templates where groupId = ? and structureId = ? from the database. 1206 * 1207 * @param groupId the group ID 1208 * @param structureId the structure ID 1209 * @throws SystemException if a system exception occurred 1210 */ 1211 public void removeByG_S(long groupId, java.lang.String structureId) 1212 throws com.liferay.portal.kernel.exception.SystemException; 1213 1214 /** 1215 * Removes all the journal templates from the database. 1216 * 1217 * @throws SystemException if a system exception occurred 1218 */ 1219 public void removeAll() 1220 throws com.liferay.portal.kernel.exception.SystemException; 1221 1222 /** 1223 * Returns the number of journal templates where uuid = ?. 1224 * 1225 * @param uuid the uuid 1226 * @return the number of matching journal templates 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 public int countByUuid(java.lang.String uuid) 1230 throws com.liferay.portal.kernel.exception.SystemException; 1231 1232 /** 1233 * Returns the number of journal templates where uuid = ? and groupId = ?. 1234 * 1235 * @param uuid the uuid 1236 * @param groupId the group ID 1237 * @return the number of matching journal templates 1238 * @throws SystemException if a system exception occurred 1239 */ 1240 public int countByUUID_G(java.lang.String uuid, long groupId) 1241 throws com.liferay.portal.kernel.exception.SystemException; 1242 1243 /** 1244 * Returns the number of journal templates where uuid = ? and companyId = ?. 1245 * 1246 * @param uuid the uuid 1247 * @param companyId the company ID 1248 * @return the number of matching journal templates 1249 * @throws SystemException if a system exception occurred 1250 */ 1251 public int countByUuid_C(java.lang.String uuid, long companyId) 1252 throws com.liferay.portal.kernel.exception.SystemException; 1253 1254 /** 1255 * Returns the number of journal templates where groupId = ?. 1256 * 1257 * @param groupId the group ID 1258 * @return the number of matching journal templates 1259 * @throws SystemException if a system exception occurred 1260 */ 1261 public int countByGroupId(long groupId) 1262 throws com.liferay.portal.kernel.exception.SystemException; 1263 1264 /** 1265 * Returns the number of journal templates that the user has permission to view where groupId = ?. 1266 * 1267 * @param groupId the group ID 1268 * @return the number of matching journal templates that the user has permission to view 1269 * @throws SystemException if a system exception occurred 1270 */ 1271 public int filterCountByGroupId(long groupId) 1272 throws com.liferay.portal.kernel.exception.SystemException; 1273 1274 /** 1275 * Returns the number of journal templates where templateId = ?. 1276 * 1277 * @param templateId the template ID 1278 * @return the number of matching journal templates 1279 * @throws SystemException if a system exception occurred 1280 */ 1281 public int countByTemplateId(java.lang.String templateId) 1282 throws com.liferay.portal.kernel.exception.SystemException; 1283 1284 /** 1285 * Returns the number of journal templates where structureId = ?. 1286 * 1287 * @param structureId the structure ID 1288 * @return the number of matching journal templates 1289 * @throws SystemException if a system exception occurred 1290 */ 1291 public int countByStructureId(java.lang.String structureId) 1292 throws com.liferay.portal.kernel.exception.SystemException; 1293 1294 /** 1295 * Returns the number of journal templates where smallImageId = ?. 1296 * 1297 * @param smallImageId the small image ID 1298 * @return the number of matching journal templates 1299 * @throws SystemException if a system exception occurred 1300 */ 1301 public int countBySmallImageId(long smallImageId) 1302 throws com.liferay.portal.kernel.exception.SystemException; 1303 1304 /** 1305 * Returns the number of journal templates where groupId = ? and templateId = ?. 1306 * 1307 * @param groupId the group ID 1308 * @param templateId the template ID 1309 * @return the number of matching journal templates 1310 * @throws SystemException if a system exception occurred 1311 */ 1312 public int countByG_T(long groupId, java.lang.String templateId) 1313 throws com.liferay.portal.kernel.exception.SystemException; 1314 1315 /** 1316 * Returns the number of journal templates where groupId = ? and structureId = ?. 1317 * 1318 * @param groupId the group ID 1319 * @param structureId the structure ID 1320 * @return the number of matching journal templates 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public int countByG_S(long groupId, java.lang.String structureId) 1324 throws com.liferay.portal.kernel.exception.SystemException; 1325 1326 /** 1327 * Returns the number of journal templates that the user has permission to view where groupId = ? and structureId = ?. 1328 * 1329 * @param groupId the group ID 1330 * @param structureId the structure ID 1331 * @return the number of matching journal templates that the user has permission to view 1332 * @throws SystemException if a system exception occurred 1333 */ 1334 public int filterCountByG_S(long groupId, java.lang.String structureId) 1335 throws com.liferay.portal.kernel.exception.SystemException; 1336 1337 /** 1338 * Returns the number of journal templates. 1339 * 1340 * @return the number of journal templates 1341 * @throws SystemException if a system exception occurred 1342 */ 1343 public int countAll() 1344 throws com.liferay.portal.kernel.exception.SystemException; 1345 }