001 /** 002 * Copyright (c) 2000-2011 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 * <p> 250 * 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. 251 * </p> 252 * 253 * @param uuid the uuid 254 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 255 * @return the first matching journal template 256 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 257 * @throws SystemException if a system exception occurred 258 */ 259 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_First( 260 java.lang.String uuid, 261 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 262 throws com.liferay.portal.kernel.exception.SystemException, 263 com.liferay.portlet.journal.NoSuchTemplateException { 264 return getPersistence().findByUuid_First(uuid, orderByComparator); 265 } 266 267 /** 268 * Returns the last journal template in the ordered set where uuid = ?. 269 * 270 * <p> 271 * 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. 272 * </p> 273 * 274 * @param uuid the uuid 275 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 276 * @return the last matching journal template 277 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 278 * @throws SystemException if a system exception occurred 279 */ 280 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last( 281 java.lang.String uuid, 282 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 283 throws com.liferay.portal.kernel.exception.SystemException, 284 com.liferay.portlet.journal.NoSuchTemplateException { 285 return getPersistence().findByUuid_Last(uuid, orderByComparator); 286 } 287 288 /** 289 * Returns the journal templates before and after the current journal template in the ordered set where uuid = ?. 290 * 291 * <p> 292 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 293 * </p> 294 * 295 * @param id the primary key of the current journal template 296 * @param uuid the uuid 297 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 298 * @return the previous, current, and next journal template 299 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 300 * @throws SystemException if a system exception occurred 301 */ 302 public static com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext( 303 long id, java.lang.String uuid, 304 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 305 throws com.liferay.portal.kernel.exception.SystemException, 306 com.liferay.portlet.journal.NoSuchTemplateException { 307 return getPersistence() 308 .findByUuid_PrevAndNext(id, uuid, orderByComparator); 309 } 310 311 /** 312 * Returns the journal template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 313 * 314 * @param uuid the uuid 315 * @param groupId the group ID 316 * @return the matching journal template 317 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 318 * @throws SystemException if a system exception occurred 319 */ 320 public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G( 321 java.lang.String uuid, long groupId) 322 throws com.liferay.portal.kernel.exception.SystemException, 323 com.liferay.portlet.journal.NoSuchTemplateException { 324 return getPersistence().findByUUID_G(uuid, groupId); 325 } 326 327 /** 328 * Returns the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 329 * 330 * @param uuid the uuid 331 * @param groupId the group ID 332 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 333 * @throws SystemException if a system exception occurred 334 */ 335 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 336 java.lang.String uuid, long groupId) 337 throws com.liferay.portal.kernel.exception.SystemException { 338 return getPersistence().fetchByUUID_G(uuid, groupId); 339 } 340 341 /** 342 * Returns the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 343 * 344 * @param uuid the uuid 345 * @param groupId the group ID 346 * @param retrieveFromCache whether to use the finder cache 347 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 351 java.lang.String uuid, long groupId, boolean retrieveFromCache) 352 throws com.liferay.portal.kernel.exception.SystemException { 353 return getPersistence().fetchByUUID_G(uuid, groupId, retrieveFromCache); 354 } 355 356 /** 357 * Returns all the journal templates where groupId = ?. 358 * 359 * @param groupId the group ID 360 * @return the matching journal templates 361 * @throws SystemException if a system exception occurred 362 */ 363 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 364 long groupId) 365 throws com.liferay.portal.kernel.exception.SystemException { 366 return getPersistence().findByGroupId(groupId); 367 } 368 369 /** 370 * Returns a range of all the journal templates where groupId = ?. 371 * 372 * <p> 373 * 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. 374 * </p> 375 * 376 * @param groupId the group ID 377 * @param start the lower bound of the range of journal templates 378 * @param end the upper bound of the range of journal templates (not inclusive) 379 * @return the range of matching journal templates 380 * @throws SystemException if a system exception occurred 381 */ 382 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 383 long groupId, int start, int end) 384 throws com.liferay.portal.kernel.exception.SystemException { 385 return getPersistence().findByGroupId(groupId, start, end); 386 } 387 388 /** 389 * Returns an ordered range of all the journal templates where groupId = ?. 390 * 391 * <p> 392 * 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. 393 * </p> 394 * 395 * @param groupId the group ID 396 * @param start the lower bound of the range of journal templates 397 * @param end the upper bound of the range of journal templates (not inclusive) 398 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 399 * @return the ordered range of matching journal templates 400 * @throws SystemException if a system exception occurred 401 */ 402 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByGroupId( 403 long groupId, int start, int end, 404 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 405 throws com.liferay.portal.kernel.exception.SystemException { 406 return getPersistence() 407 .findByGroupId(groupId, start, end, orderByComparator); 408 } 409 410 /** 411 * Returns the first journal template in the ordered set where groupId = ?. 412 * 413 * <p> 414 * 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. 415 * </p> 416 * 417 * @param groupId the group ID 418 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 419 * @return the first matching journal template 420 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 421 * @throws SystemException if a system exception occurred 422 */ 423 public static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_First( 424 long groupId, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException, 427 com.liferay.portlet.journal.NoSuchTemplateException { 428 return getPersistence().findByGroupId_First(groupId, orderByComparator); 429 } 430 431 /** 432 * Returns the last journal template in the ordered set where groupId = ?. 433 * 434 * <p> 435 * 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. 436 * </p> 437 * 438 * @param groupId the group ID 439 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 440 * @return the last 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 static com.liferay.portlet.journal.model.JournalTemplate findByGroupId_Last( 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 return getPersistence().findByGroupId_Last(groupId, orderByComparator); 450 } 451 452 /** 453 * Returns the journal templates before and after the current journal template in the ordered set where groupId = ?. 454 * 455 * <p> 456 * 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. 457 * </p> 458 * 459 * @param id the primary key of the current journal template 460 * @param groupId the group ID 461 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 462 * @return the previous, current, and next journal template 463 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 464 * @throws SystemException if a system exception occurred 465 */ 466 public static com.liferay.portlet.journal.model.JournalTemplate[] findByGroupId_PrevAndNext( 467 long id, long groupId, 468 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 469 throws com.liferay.portal.kernel.exception.SystemException, 470 com.liferay.portlet.journal.NoSuchTemplateException { 471 return getPersistence() 472 .findByGroupId_PrevAndNext(id, groupId, orderByComparator); 473 } 474 475 /** 476 * Returns all the journal templates that the user has permission to view where groupId = ?. 477 * 478 * @param groupId the group ID 479 * @return the matching journal templates that the user has permission to view 480 * @throws SystemException if a system exception occurred 481 */ 482 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 483 long groupId) 484 throws com.liferay.portal.kernel.exception.SystemException { 485 return getPersistence().filterFindByGroupId(groupId); 486 } 487 488 /** 489 * Returns a range of all the journal templates that the user has permission to view where groupId = ?. 490 * 491 * <p> 492 * 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. 493 * </p> 494 * 495 * @param groupId the group ID 496 * @param start the lower bound of the range of journal templates 497 * @param end the upper bound of the range of journal templates (not inclusive) 498 * @return the range of matching journal templates that the user has permission to view 499 * @throws SystemException if a system exception occurred 500 */ 501 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 502 long groupId, int start, int end) 503 throws com.liferay.portal.kernel.exception.SystemException { 504 return getPersistence().filterFindByGroupId(groupId, start, end); 505 } 506 507 /** 508 * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = ?. 509 * 510 * <p> 511 * 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. 512 * </p> 513 * 514 * @param groupId the group ID 515 * @param start the lower bound of the range of journal templates 516 * @param end the upper bound of the range of journal templates (not inclusive) 517 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 518 * @return the ordered range of matching journal templates that the user has permission to view 519 * @throws SystemException if a system exception occurred 520 */ 521 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByGroupId( 522 long groupId, int start, int end, 523 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 524 throws com.liferay.portal.kernel.exception.SystemException { 525 return getPersistence() 526 .filterFindByGroupId(groupId, start, end, orderByComparator); 527 } 528 529 /** 530 * 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 = ?. 531 * 532 * @param id the primary key of the current journal template 533 * @param groupId the group ID 534 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 535 * @return the previous, current, and next journal template 536 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 537 * @throws SystemException if a system exception occurred 538 */ 539 public static com.liferay.portlet.journal.model.JournalTemplate[] filterFindByGroupId_PrevAndNext( 540 long id, long groupId, 541 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 542 throws com.liferay.portal.kernel.exception.SystemException, 543 com.liferay.portlet.journal.NoSuchTemplateException { 544 return getPersistence() 545 .filterFindByGroupId_PrevAndNext(id, groupId, 546 orderByComparator); 547 } 548 549 /** 550 * Returns all the journal templates where templateId = ?. 551 * 552 * @param templateId the template ID 553 * @return the matching journal templates 554 * @throws SystemException if a system exception occurred 555 */ 556 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 557 java.lang.String templateId) 558 throws com.liferay.portal.kernel.exception.SystemException { 559 return getPersistence().findByTemplateId(templateId); 560 } 561 562 /** 563 * Returns a range of all the journal templates where templateId = ?. 564 * 565 * <p> 566 * 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. 567 * </p> 568 * 569 * @param templateId the template ID 570 * @param start the lower bound of the range of journal templates 571 * @param end the upper bound of the range of journal templates (not inclusive) 572 * @return the range of matching journal templates 573 * @throws SystemException if a system exception occurred 574 */ 575 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 576 java.lang.String templateId, int start, int end) 577 throws com.liferay.portal.kernel.exception.SystemException { 578 return getPersistence().findByTemplateId(templateId, start, end); 579 } 580 581 /** 582 * Returns an ordered 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 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 592 * @return the ordered range of matching journal templates 593 * @throws SystemException if a system exception occurred 594 */ 595 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 596 java.lang.String templateId, int start, int end, 597 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 598 throws com.liferay.portal.kernel.exception.SystemException { 599 return getPersistence() 600 .findByTemplateId(templateId, start, end, orderByComparator); 601 } 602 603 /** 604 * Returns the first journal template in the ordered set where templateId = ?. 605 * 606 * <p> 607 * 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. 608 * </p> 609 * 610 * @param templateId the template ID 611 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 612 * @return the first matching journal template 613 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 614 * @throws SystemException if a system exception occurred 615 */ 616 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First( 617 java.lang.String templateId, 618 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 619 throws com.liferay.portal.kernel.exception.SystemException, 620 com.liferay.portlet.journal.NoSuchTemplateException { 621 return getPersistence() 622 .findByTemplateId_First(templateId, orderByComparator); 623 } 624 625 /** 626 * Returns the last journal template in the ordered set where templateId = ?. 627 * 628 * <p> 629 * 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. 630 * </p> 631 * 632 * @param templateId the template ID 633 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 634 * @return the last matching journal template 635 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 636 * @throws SystemException if a system exception occurred 637 */ 638 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last( 639 java.lang.String templateId, 640 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 641 throws com.liferay.portal.kernel.exception.SystemException, 642 com.liferay.portlet.journal.NoSuchTemplateException { 643 return getPersistence() 644 .findByTemplateId_Last(templateId, orderByComparator); 645 } 646 647 /** 648 * Returns the journal templates before and after the current journal template in the ordered set where templateId = ?. 649 * 650 * <p> 651 * 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. 652 * </p> 653 * 654 * @param id the primary key of the current journal template 655 * @param templateId the template ID 656 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 657 * @return the previous, current, and next journal template 658 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 659 * @throws SystemException if a system exception occurred 660 */ 661 public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext( 662 long id, java.lang.String templateId, 663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 664 throws com.liferay.portal.kernel.exception.SystemException, 665 com.liferay.portlet.journal.NoSuchTemplateException { 666 return getPersistence() 667 .findByTemplateId_PrevAndNext(id, templateId, 668 orderByComparator); 669 } 670 671 /** 672 * Returns the journal template where smallImageId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 673 * 674 * @param smallImageId the small image ID 675 * @return the matching journal template 676 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 677 * @throws SystemException if a system exception occurred 678 */ 679 public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId( 680 long smallImageId) 681 throws com.liferay.portal.kernel.exception.SystemException, 682 com.liferay.portlet.journal.NoSuchTemplateException { 683 return getPersistence().findBySmallImageId(smallImageId); 684 } 685 686 /** 687 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 688 * 689 * @param smallImageId the small image ID 690 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 691 * @throws SystemException if a system exception occurred 692 */ 693 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 694 long smallImageId) 695 throws com.liferay.portal.kernel.exception.SystemException { 696 return getPersistence().fetchBySmallImageId(smallImageId); 697 } 698 699 /** 700 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 701 * 702 * @param smallImageId the small image ID 703 * @param retrieveFromCache whether to use the finder cache 704 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 705 * @throws SystemException if a system exception occurred 706 */ 707 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 708 long smallImageId, boolean retrieveFromCache) 709 throws com.liferay.portal.kernel.exception.SystemException { 710 return getPersistence() 711 .fetchBySmallImageId(smallImageId, retrieveFromCache); 712 } 713 714 /** 715 * Returns the journal template where groupId = ? and templateId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 716 * 717 * @param groupId the group ID 718 * @param templateId the template ID 719 * @return the matching journal template 720 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 721 * @throws SystemException if a system exception occurred 722 */ 723 public static com.liferay.portlet.journal.model.JournalTemplate findByG_T( 724 long groupId, java.lang.String templateId) 725 throws com.liferay.portal.kernel.exception.SystemException, 726 com.liferay.portlet.journal.NoSuchTemplateException { 727 return getPersistence().findByG_T(groupId, templateId); 728 } 729 730 /** 731 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 732 * 733 * @param groupId the group ID 734 * @param templateId the template ID 735 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 736 * @throws SystemException if a system exception occurred 737 */ 738 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 739 long groupId, java.lang.String templateId) 740 throws com.liferay.portal.kernel.exception.SystemException { 741 return getPersistence().fetchByG_T(groupId, templateId); 742 } 743 744 /** 745 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 746 * 747 * @param groupId the group ID 748 * @param templateId the template ID 749 * @param retrieveFromCache whether to use the finder cache 750 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 751 * @throws SystemException if a system exception occurred 752 */ 753 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 754 long groupId, java.lang.String templateId, boolean retrieveFromCache) 755 throws com.liferay.portal.kernel.exception.SystemException { 756 return getPersistence() 757 .fetchByG_T(groupId, templateId, retrieveFromCache); 758 } 759 760 /** 761 * Returns all the journal templates where groupId = ? and structureId = ?. 762 * 763 * @param groupId the group ID 764 * @param structureId the structure ID 765 * @return the matching journal templates 766 * @throws SystemException if a system exception occurred 767 */ 768 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 769 long groupId, java.lang.String structureId) 770 throws com.liferay.portal.kernel.exception.SystemException { 771 return getPersistence().findByG_S(groupId, structureId); 772 } 773 774 /** 775 * Returns a range of all the journal templates where groupId = ? and structureId = ?. 776 * 777 * <p> 778 * 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. 779 * </p> 780 * 781 * @param groupId the group ID 782 * @param structureId the structure ID 783 * @param start the lower bound of the range of journal templates 784 * @param end the upper bound of the range of journal templates (not inclusive) 785 * @return the range of matching journal templates 786 * @throws SystemException if a system exception occurred 787 */ 788 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 789 long groupId, java.lang.String structureId, int start, int end) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence().findByG_S(groupId, structureId, start, end); 792 } 793 794 /** 795 * Returns an ordered range of all the journal templates where groupId = ? and structureId = ?. 796 * 797 * <p> 798 * 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. 799 * </p> 800 * 801 * @param groupId the group ID 802 * @param structureId the structure ID 803 * @param start the lower bound of the range of journal templates 804 * @param end the upper bound of the range of journal templates (not inclusive) 805 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 806 * @return the ordered range of matching journal templates 807 * @throws SystemException if a system exception occurred 808 */ 809 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 810 long groupId, java.lang.String structureId, int start, int end, 811 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 812 throws com.liferay.portal.kernel.exception.SystemException { 813 return getPersistence() 814 .findByG_S(groupId, structureId, start, end, 815 orderByComparator); 816 } 817 818 /** 819 * Returns the first journal template in the ordered set where groupId = ? and structureId = ?. 820 * 821 * <p> 822 * 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. 823 * </p> 824 * 825 * @param groupId the group ID 826 * @param structureId the structure ID 827 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 828 * @return the first matching journal template 829 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 830 * @throws SystemException if a system exception occurred 831 */ 832 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First( 833 long groupId, java.lang.String structureId, 834 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 835 throws com.liferay.portal.kernel.exception.SystemException, 836 com.liferay.portlet.journal.NoSuchTemplateException { 837 return getPersistence() 838 .findByG_S_First(groupId, structureId, orderByComparator); 839 } 840 841 /** 842 * Returns the last journal template in the ordered set where groupId = ? and structureId = ?. 843 * 844 * <p> 845 * 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. 846 * </p> 847 * 848 * @param groupId the group ID 849 * @param structureId the structure ID 850 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 851 * @return the last matching journal template 852 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 853 * @throws SystemException if a system exception occurred 854 */ 855 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last( 856 long groupId, java.lang.String structureId, 857 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 858 throws com.liferay.portal.kernel.exception.SystemException, 859 com.liferay.portlet.journal.NoSuchTemplateException { 860 return getPersistence() 861 .findByG_S_Last(groupId, structureId, orderByComparator); 862 } 863 864 /** 865 * Returns the journal templates before and after the current journal template in the ordered set where groupId = ? and structureId = ?. 866 * 867 * <p> 868 * 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. 869 * </p> 870 * 871 * @param id the primary key of the current journal template 872 * @param groupId the group ID 873 * @param structureId the structure ID 874 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 875 * @return the previous, current, and next journal template 876 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 877 * @throws SystemException if a system exception occurred 878 */ 879 public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext( 880 long id, long groupId, java.lang.String structureId, 881 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 882 throws com.liferay.portal.kernel.exception.SystemException, 883 com.liferay.portlet.journal.NoSuchTemplateException { 884 return getPersistence() 885 .findByG_S_PrevAndNext(id, groupId, structureId, 886 orderByComparator); 887 } 888 889 /** 890 * Returns all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 891 * 892 * @param groupId the group ID 893 * @param structureId the structure ID 894 * @return the matching journal templates that the user has permission to view 895 * @throws SystemException if a system exception occurred 896 */ 897 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 898 long groupId, java.lang.String structureId) 899 throws com.liferay.portal.kernel.exception.SystemException { 900 return getPersistence().filterFindByG_S(groupId, structureId); 901 } 902 903 /** 904 * Returns a range of all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 905 * 906 * <p> 907 * 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. 908 * </p> 909 * 910 * @param groupId the group ID 911 * @param structureId the structure ID 912 * @param start the lower bound of the range of journal templates 913 * @param end the upper bound of the range of journal templates (not inclusive) 914 * @return the range of matching journal templates that the user has permission to view 915 * @throws SystemException if a system exception occurred 916 */ 917 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 918 long groupId, java.lang.String structureId, int start, int end) 919 throws com.liferay.portal.kernel.exception.SystemException { 920 return getPersistence().filterFindByG_S(groupId, structureId, start, end); 921 } 922 923 /** 924 * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = ? and structureId = ?. 925 * 926 * <p> 927 * 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. 928 * </p> 929 * 930 * @param groupId the group ID 931 * @param structureId the structure ID 932 * @param start the lower bound of the range of journal templates 933 * @param end the upper bound of the range of journal templates (not inclusive) 934 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 935 * @return the ordered range of matching journal templates that the user has permission to view 936 * @throws SystemException if a system exception occurred 937 */ 938 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 939 long groupId, java.lang.String structureId, int start, int end, 940 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 941 throws com.liferay.portal.kernel.exception.SystemException { 942 return getPersistence() 943 .filterFindByG_S(groupId, structureId, start, end, 944 orderByComparator); 945 } 946 947 /** 948 * 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 = ?. 949 * 950 * @param id the primary key of the current journal template 951 * @param groupId the group ID 952 * @param structureId the structure ID 953 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 954 * @return the previous, current, and next journal template 955 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 956 * @throws SystemException if a system exception occurred 957 */ 958 public static com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext( 959 long id, long groupId, java.lang.String structureId, 960 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 961 throws com.liferay.portal.kernel.exception.SystemException, 962 com.liferay.portlet.journal.NoSuchTemplateException { 963 return getPersistence() 964 .filterFindByG_S_PrevAndNext(id, groupId, structureId, 965 orderByComparator); 966 } 967 968 /** 969 * Returns all the journal templates. 970 * 971 * @return the journal templates 972 * @throws SystemException if a system exception occurred 973 */ 974 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll() 975 throws com.liferay.portal.kernel.exception.SystemException { 976 return getPersistence().findAll(); 977 } 978 979 /** 980 * Returns a range of all the journal templates. 981 * 982 * <p> 983 * 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. 984 * </p> 985 * 986 * @param start the lower bound of the range of journal templates 987 * @param end the upper bound of the range of journal templates (not inclusive) 988 * @return the range of journal templates 989 * @throws SystemException if a system exception occurred 990 */ 991 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 992 int start, int end) 993 throws com.liferay.portal.kernel.exception.SystemException { 994 return getPersistence().findAll(start, end); 995 } 996 997 /** 998 * Returns an ordered range of all the journal templates. 999 * 1000 * <p> 1001 * 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. 1002 * </p> 1003 * 1004 * @param start the lower bound of the range of journal templates 1005 * @param end the upper bound of the range of journal templates (not inclusive) 1006 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1007 * @return the ordered range of journal templates 1008 * @throws SystemException if a system exception occurred 1009 */ 1010 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 1011 int start, int end, 1012 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1013 throws com.liferay.portal.kernel.exception.SystemException { 1014 return getPersistence().findAll(start, end, orderByComparator); 1015 } 1016 1017 /** 1018 * Removes all the journal templates where uuid = ? from the database. 1019 * 1020 * @param uuid the uuid 1021 * @throws SystemException if a system exception occurred 1022 */ 1023 public static void removeByUuid(java.lang.String uuid) 1024 throws com.liferay.portal.kernel.exception.SystemException { 1025 getPersistence().removeByUuid(uuid); 1026 } 1027 1028 /** 1029 * Removes the journal template where uuid = ? and groupId = ? from the database. 1030 * 1031 * @param uuid the uuid 1032 * @param groupId the group ID 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1036 throws com.liferay.portal.kernel.exception.SystemException, 1037 com.liferay.portlet.journal.NoSuchTemplateException { 1038 getPersistence().removeByUUID_G(uuid, groupId); 1039 } 1040 1041 /** 1042 * Removes all the journal templates where groupId = ? from the database. 1043 * 1044 * @param groupId the group ID 1045 * @throws SystemException if a system exception occurred 1046 */ 1047 public static void removeByGroupId(long groupId) 1048 throws com.liferay.portal.kernel.exception.SystemException { 1049 getPersistence().removeByGroupId(groupId); 1050 } 1051 1052 /** 1053 * Removes all the journal templates where templateId = ? from the database. 1054 * 1055 * @param templateId the template ID 1056 * @throws SystemException if a system exception occurred 1057 */ 1058 public static void removeByTemplateId(java.lang.String templateId) 1059 throws com.liferay.portal.kernel.exception.SystemException { 1060 getPersistence().removeByTemplateId(templateId); 1061 } 1062 1063 /** 1064 * Removes the journal template where smallImageId = ? from the database. 1065 * 1066 * @param smallImageId the small image ID 1067 * @throws SystemException if a system exception occurred 1068 */ 1069 public static void removeBySmallImageId(long smallImageId) 1070 throws com.liferay.portal.kernel.exception.SystemException, 1071 com.liferay.portlet.journal.NoSuchTemplateException { 1072 getPersistence().removeBySmallImageId(smallImageId); 1073 } 1074 1075 /** 1076 * Removes the journal template where groupId = ? and templateId = ? from the database. 1077 * 1078 * @param groupId the group ID 1079 * @param templateId the template ID 1080 * @throws SystemException if a system exception occurred 1081 */ 1082 public static void removeByG_T(long groupId, java.lang.String templateId) 1083 throws com.liferay.portal.kernel.exception.SystemException, 1084 com.liferay.portlet.journal.NoSuchTemplateException { 1085 getPersistence().removeByG_T(groupId, templateId); 1086 } 1087 1088 /** 1089 * Removes all the journal templates where groupId = ? and structureId = ? from the database. 1090 * 1091 * @param groupId the group ID 1092 * @param structureId the structure ID 1093 * @throws SystemException if a system exception occurred 1094 */ 1095 public static void removeByG_S(long groupId, java.lang.String structureId) 1096 throws com.liferay.portal.kernel.exception.SystemException { 1097 getPersistence().removeByG_S(groupId, structureId); 1098 } 1099 1100 /** 1101 * Removes all the journal templates from the database. 1102 * 1103 * @throws SystemException if a system exception occurred 1104 */ 1105 public static void removeAll() 1106 throws com.liferay.portal.kernel.exception.SystemException { 1107 getPersistence().removeAll(); 1108 } 1109 1110 /** 1111 * Returns the number of journal templates where uuid = ?. 1112 * 1113 * @param uuid the uuid 1114 * @return the number of matching journal templates 1115 * @throws SystemException if a system exception occurred 1116 */ 1117 public static int countByUuid(java.lang.String uuid) 1118 throws com.liferay.portal.kernel.exception.SystemException { 1119 return getPersistence().countByUuid(uuid); 1120 } 1121 1122 /** 1123 * Returns the number of journal templates where uuid = ? and groupId = ?. 1124 * 1125 * @param uuid the uuid 1126 * @param groupId the group ID 1127 * @return the number of matching journal templates 1128 * @throws SystemException if a system exception occurred 1129 */ 1130 public static int countByUUID_G(java.lang.String uuid, long groupId) 1131 throws com.liferay.portal.kernel.exception.SystemException { 1132 return getPersistence().countByUUID_G(uuid, groupId); 1133 } 1134 1135 /** 1136 * Returns the number of journal templates where groupId = ?. 1137 * 1138 * @param groupId the group ID 1139 * @return the number of matching journal templates 1140 * @throws SystemException if a system exception occurred 1141 */ 1142 public static int countByGroupId(long groupId) 1143 throws com.liferay.portal.kernel.exception.SystemException { 1144 return getPersistence().countByGroupId(groupId); 1145 } 1146 1147 /** 1148 * Returns the number of journal templates that the user has permission to view where groupId = ?. 1149 * 1150 * @param groupId the group ID 1151 * @return the number of matching journal templates that the user has permission to view 1152 * @throws SystemException if a system exception occurred 1153 */ 1154 public static int filterCountByGroupId(long groupId) 1155 throws com.liferay.portal.kernel.exception.SystemException { 1156 return getPersistence().filterCountByGroupId(groupId); 1157 } 1158 1159 /** 1160 * Returns the number of journal templates where templateId = ?. 1161 * 1162 * @param templateId the template ID 1163 * @return the number of matching journal templates 1164 * @throws SystemException if a system exception occurred 1165 */ 1166 public static int countByTemplateId(java.lang.String templateId) 1167 throws com.liferay.portal.kernel.exception.SystemException { 1168 return getPersistence().countByTemplateId(templateId); 1169 } 1170 1171 /** 1172 * Returns the number of journal templates where smallImageId = ?. 1173 * 1174 * @param smallImageId the small image ID 1175 * @return the number of matching journal templates 1176 * @throws SystemException if a system exception occurred 1177 */ 1178 public static int countBySmallImageId(long smallImageId) 1179 throws com.liferay.portal.kernel.exception.SystemException { 1180 return getPersistence().countBySmallImageId(smallImageId); 1181 } 1182 1183 /** 1184 * Returns the number of journal templates where groupId = ? and templateId = ?. 1185 * 1186 * @param groupId the group ID 1187 * @param templateId the template ID 1188 * @return the number of matching journal templates 1189 * @throws SystemException if a system exception occurred 1190 */ 1191 public static int countByG_T(long groupId, java.lang.String templateId) 1192 throws com.liferay.portal.kernel.exception.SystemException { 1193 return getPersistence().countByG_T(groupId, templateId); 1194 } 1195 1196 /** 1197 * Returns the number of journal templates where groupId = ? and structureId = ?. 1198 * 1199 * @param groupId the group ID 1200 * @param structureId the structure ID 1201 * @return the number of matching journal templates 1202 * @throws SystemException if a system exception occurred 1203 */ 1204 public static int countByG_S(long groupId, java.lang.String structureId) 1205 throws com.liferay.portal.kernel.exception.SystemException { 1206 return getPersistence().countByG_S(groupId, structureId); 1207 } 1208 1209 /** 1210 * Returns the number of journal templates that the user has permission to view where groupId = ? and structureId = ?. 1211 * 1212 * @param groupId the group ID 1213 * @param structureId the structure ID 1214 * @return the number of matching journal templates that the user has permission to view 1215 * @throws SystemException if a system exception occurred 1216 */ 1217 public static int filterCountByG_S(long groupId, 1218 java.lang.String structureId) 1219 throws com.liferay.portal.kernel.exception.SystemException { 1220 return getPersistence().filterCountByG_S(groupId, structureId); 1221 } 1222 1223 /** 1224 * Returns the number of journal templates. 1225 * 1226 * @return the number of journal templates 1227 * @throws SystemException if a system exception occurred 1228 */ 1229 public static int countAll() 1230 throws com.liferay.portal.kernel.exception.SystemException { 1231 return getPersistence().countAll(); 1232 } 1233 1234 public static JournalTemplatePersistence getPersistence() { 1235 if (_persistence == null) { 1236 _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName()); 1237 1238 ReferenceRegistry.registerReference(JournalTemplateUtil.class, 1239 "_persistence"); 1240 } 1241 1242 return _persistence; 1243 } 1244 1245 public void setPersistence(JournalTemplatePersistence persistence) { 1246 _persistence = persistence; 1247 1248 ReferenceRegistry.registerReference(JournalTemplateUtil.class, 1249 "_persistence"); 1250 } 1251 1252 private static JournalTemplatePersistence _persistence; 1253 }