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