001 /** 002 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.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 all the journal templates where structureId = ?. 673 * 674 * @param structureId the structure ID 675 * @return the matching journal templates 676 * @throws SystemException if a system exception occurred 677 */ 678 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 679 java.lang.String structureId) 680 throws com.liferay.portal.kernel.exception.SystemException { 681 return getPersistence().findByStructureId(structureId); 682 } 683 684 /** 685 * Returns a range of all the journal templates where structureId = ?. 686 * 687 * <p> 688 * 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. 689 * </p> 690 * 691 * @param structureId the structure ID 692 * @param start the lower bound of the range of journal templates 693 * @param end the upper bound of the range of journal templates (not inclusive) 694 * @return the range of matching journal templates 695 * @throws SystemException if a system exception occurred 696 */ 697 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 698 java.lang.String structureId, int start, int end) 699 throws com.liferay.portal.kernel.exception.SystemException { 700 return getPersistence().findByStructureId(structureId, start, end); 701 } 702 703 /** 704 * Returns an ordered range of all the journal templates where structureId = ?. 705 * 706 * <p> 707 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 708 * </p> 709 * 710 * @param structureId the structure ID 711 * @param start the lower bound of the range of journal templates 712 * @param end the upper bound of the range of journal templates (not inclusive) 713 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 714 * @return the ordered range of matching journal templates 715 * @throws SystemException if a system exception occurred 716 */ 717 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByStructureId( 718 java.lang.String structureId, int start, int end, 719 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 720 throws com.liferay.portal.kernel.exception.SystemException { 721 return getPersistence() 722 .findByStructureId(structureId, start, end, orderByComparator); 723 } 724 725 /** 726 * Returns the first journal template in the ordered set where structureId = ?. 727 * 728 * <p> 729 * 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. 730 * </p> 731 * 732 * @param structureId the structure ID 733 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 734 * @return the first matching journal template 735 * @throws com.liferay.portlet.journal.NoSuchTemplateException 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 findByStructureId_First( 739 java.lang.String structureId, 740 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 741 throws com.liferay.portal.kernel.exception.SystemException, 742 com.liferay.portlet.journal.NoSuchTemplateException { 743 return getPersistence() 744 .findByStructureId_First(structureId, orderByComparator); 745 } 746 747 /** 748 * Returns the last journal template in the ordered set where structureId = ?. 749 * 750 * <p> 751 * 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. 752 * </p> 753 * 754 * @param structureId the structure ID 755 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 756 * @return the last matching journal template 757 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 758 * @throws SystemException if a system exception occurred 759 */ 760 public static com.liferay.portlet.journal.model.JournalTemplate findByStructureId_Last( 761 java.lang.String structureId, 762 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 763 throws com.liferay.portal.kernel.exception.SystemException, 764 com.liferay.portlet.journal.NoSuchTemplateException { 765 return getPersistence() 766 .findByStructureId_Last(structureId, orderByComparator); 767 } 768 769 /** 770 * Returns the journal templates before and after the current journal template in the ordered set where structureId = ?. 771 * 772 * <p> 773 * 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. 774 * </p> 775 * 776 * @param id the primary key of the current journal template 777 * @param structureId the structure ID 778 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 779 * @return the previous, current, and next journal template 780 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 781 * @throws SystemException if a system exception occurred 782 */ 783 public static com.liferay.portlet.journal.model.JournalTemplate[] findByStructureId_PrevAndNext( 784 long id, java.lang.String structureId, 785 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 786 throws com.liferay.portal.kernel.exception.SystemException, 787 com.liferay.portlet.journal.NoSuchTemplateException { 788 return getPersistence() 789 .findByStructureId_PrevAndNext(id, structureId, 790 orderByComparator); 791 } 792 793 /** 794 * Returns the journal template where smallImageId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 795 * 796 * @param smallImageId the small image ID 797 * @return the matching journal template 798 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 799 * @throws SystemException if a system exception occurred 800 */ 801 public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId( 802 long smallImageId) 803 throws com.liferay.portal.kernel.exception.SystemException, 804 com.liferay.portlet.journal.NoSuchTemplateException { 805 return getPersistence().findBySmallImageId(smallImageId); 806 } 807 808 /** 809 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 810 * 811 * @param smallImageId the small image ID 812 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 813 * @throws SystemException if a system exception occurred 814 */ 815 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 816 long smallImageId) 817 throws com.liferay.portal.kernel.exception.SystemException { 818 return getPersistence().fetchBySmallImageId(smallImageId); 819 } 820 821 /** 822 * Returns the journal template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 823 * 824 * @param smallImageId the small image ID 825 * @param retrieveFromCache whether to use the finder cache 826 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 827 * @throws SystemException if a system exception occurred 828 */ 829 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 830 long smallImageId, boolean retrieveFromCache) 831 throws com.liferay.portal.kernel.exception.SystemException { 832 return getPersistence() 833 .fetchBySmallImageId(smallImageId, retrieveFromCache); 834 } 835 836 /** 837 * Returns the journal template where groupId = ? and templateId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 838 * 839 * @param groupId the group ID 840 * @param templateId the template ID 841 * @return the matching journal template 842 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 843 * @throws SystemException if a system exception occurred 844 */ 845 public static com.liferay.portlet.journal.model.JournalTemplate findByG_T( 846 long groupId, java.lang.String templateId) 847 throws com.liferay.portal.kernel.exception.SystemException, 848 com.liferay.portlet.journal.NoSuchTemplateException { 849 return getPersistence().findByG_T(groupId, templateId); 850 } 851 852 /** 853 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 854 * 855 * @param groupId the group ID 856 * @param templateId the template ID 857 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 858 * @throws SystemException if a system exception occurred 859 */ 860 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 861 long groupId, java.lang.String templateId) 862 throws com.liferay.portal.kernel.exception.SystemException { 863 return getPersistence().fetchByG_T(groupId, templateId); 864 } 865 866 /** 867 * Returns the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 868 * 869 * @param groupId the group ID 870 * @param templateId the template ID 871 * @param retrieveFromCache whether to use the finder cache 872 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 873 * @throws SystemException if a system exception occurred 874 */ 875 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 876 long groupId, java.lang.String templateId, boolean retrieveFromCache) 877 throws com.liferay.portal.kernel.exception.SystemException { 878 return getPersistence() 879 .fetchByG_T(groupId, templateId, retrieveFromCache); 880 } 881 882 /** 883 * Returns all the journal templates where groupId = ? and structureId = ?. 884 * 885 * @param groupId the group ID 886 * @param structureId the structure ID 887 * @return the matching journal templates 888 * @throws SystemException if a system exception occurred 889 */ 890 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 891 long groupId, java.lang.String structureId) 892 throws com.liferay.portal.kernel.exception.SystemException { 893 return getPersistence().findByG_S(groupId, structureId); 894 } 895 896 /** 897 * Returns a range of all the journal templates where groupId = ? and structureId = ?. 898 * 899 * <p> 900 * 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. 901 * </p> 902 * 903 * @param groupId the group ID 904 * @param structureId the structure ID 905 * @param start the lower bound of the range of journal templates 906 * @param end the upper bound of the range of journal templates (not inclusive) 907 * @return the range of matching journal templates 908 * @throws SystemException if a system exception occurred 909 */ 910 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 911 long groupId, java.lang.String structureId, int start, int end) 912 throws com.liferay.portal.kernel.exception.SystemException { 913 return getPersistence().findByG_S(groupId, structureId, start, end); 914 } 915 916 /** 917 * Returns an ordered range of all the journal templates where groupId = ? and structureId = ?. 918 * 919 * <p> 920 * 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. 921 * </p> 922 * 923 * @param groupId the group ID 924 * @param structureId the structure ID 925 * @param start the lower bound of the range of journal templates 926 * @param end the upper bound of the range of journal templates (not inclusive) 927 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 928 * @return the ordered range of matching journal templates 929 * @throws SystemException if a system exception occurred 930 */ 931 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 932 long groupId, java.lang.String structureId, int start, int end, 933 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 934 throws com.liferay.portal.kernel.exception.SystemException { 935 return getPersistence() 936 .findByG_S(groupId, structureId, start, end, 937 orderByComparator); 938 } 939 940 /** 941 * Returns the first journal template in the ordered set where groupId = ? and structureId = ?. 942 * 943 * <p> 944 * 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. 945 * </p> 946 * 947 * @param groupId the group ID 948 * @param structureId the structure ID 949 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 950 * @return the first matching journal template 951 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 952 * @throws SystemException if a system exception occurred 953 */ 954 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First( 955 long groupId, java.lang.String structureId, 956 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 957 throws com.liferay.portal.kernel.exception.SystemException, 958 com.liferay.portlet.journal.NoSuchTemplateException { 959 return getPersistence() 960 .findByG_S_First(groupId, structureId, orderByComparator); 961 } 962 963 /** 964 * Returns the last journal template in the ordered set where groupId = ? and structureId = ?. 965 * 966 * <p> 967 * 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. 968 * </p> 969 * 970 * @param groupId the group ID 971 * @param structureId the structure ID 972 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 973 * @return the last matching journal template 974 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 975 * @throws SystemException if a system exception occurred 976 */ 977 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last( 978 long groupId, java.lang.String structureId, 979 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 980 throws com.liferay.portal.kernel.exception.SystemException, 981 com.liferay.portlet.journal.NoSuchTemplateException { 982 return getPersistence() 983 .findByG_S_Last(groupId, structureId, orderByComparator); 984 } 985 986 /** 987 * Returns the journal templates before and after the current journal template in the ordered set where groupId = ? and structureId = ?. 988 * 989 * <p> 990 * 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. 991 * </p> 992 * 993 * @param id the primary key of the current journal template 994 * @param groupId the group ID 995 * @param structureId the structure ID 996 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 997 * @return the previous, current, and next journal template 998 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext( 1002 long id, long groupId, java.lang.String structureId, 1003 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1004 throws com.liferay.portal.kernel.exception.SystemException, 1005 com.liferay.portlet.journal.NoSuchTemplateException { 1006 return getPersistence() 1007 .findByG_S_PrevAndNext(id, groupId, structureId, 1008 orderByComparator); 1009 } 1010 1011 /** 1012 * Returns all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 1013 * 1014 * @param groupId the group ID 1015 * @param structureId the structure ID 1016 * @return the matching journal templates that the user has permission to view 1017 * @throws SystemException if a system exception occurred 1018 */ 1019 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1020 long groupId, java.lang.String structureId) 1021 throws com.liferay.portal.kernel.exception.SystemException { 1022 return getPersistence().filterFindByG_S(groupId, structureId); 1023 } 1024 1025 /** 1026 * Returns a range of all the journal templates that the user has permission to view where groupId = ? and structureId = ?. 1027 * 1028 * <p> 1029 * 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. 1030 * </p> 1031 * 1032 * @param groupId the group ID 1033 * @param structureId the structure ID 1034 * @param start the lower bound of the range of journal templates 1035 * @param end the upper bound of the range of journal templates (not inclusive) 1036 * @return the range of matching journal templates that the user has permission to view 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1040 long groupId, java.lang.String structureId, int start, int end) 1041 throws com.liferay.portal.kernel.exception.SystemException { 1042 return getPersistence().filterFindByG_S(groupId, structureId, start, end); 1043 } 1044 1045 /** 1046 * Returns an ordered range of all the journal templates that the user has permissions to view where groupId = ? and structureId = ?. 1047 * 1048 * <p> 1049 * 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. 1050 * </p> 1051 * 1052 * @param groupId the group ID 1053 * @param structureId the structure ID 1054 * @param start the lower bound of the range of journal templates 1055 * @param end the upper bound of the range of journal templates (not inclusive) 1056 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1057 * @return the ordered range of matching journal templates that the user has permission to view 1058 * @throws SystemException if a system exception occurred 1059 */ 1060 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 1061 long groupId, java.lang.String structureId, int start, int end, 1062 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1063 throws com.liferay.portal.kernel.exception.SystemException { 1064 return getPersistence() 1065 .filterFindByG_S(groupId, structureId, start, end, 1066 orderByComparator); 1067 } 1068 1069 /** 1070 * 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 = ?. 1071 * 1072 * @param id the primary key of the current journal template 1073 * @param groupId the group ID 1074 * @param structureId the structure ID 1075 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 1076 * @return the previous, current, and next journal template 1077 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 1078 * @throws SystemException if a system exception occurred 1079 */ 1080 public static com.liferay.portlet.journal.model.JournalTemplate[] filterFindByG_S_PrevAndNext( 1081 long id, long groupId, java.lang.String structureId, 1082 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1083 throws com.liferay.portal.kernel.exception.SystemException, 1084 com.liferay.portlet.journal.NoSuchTemplateException { 1085 return getPersistence() 1086 .filterFindByG_S_PrevAndNext(id, groupId, structureId, 1087 orderByComparator); 1088 } 1089 1090 /** 1091 * Returns all the journal templates. 1092 * 1093 * @return the journal templates 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll() 1097 throws com.liferay.portal.kernel.exception.SystemException { 1098 return getPersistence().findAll(); 1099 } 1100 1101 /** 1102 * Returns a range of all the journal templates. 1103 * 1104 * <p> 1105 * 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. 1106 * </p> 1107 * 1108 * @param start the lower bound of the range of journal templates 1109 * @param end the upper bound of the range of journal templates (not inclusive) 1110 * @return the range of journal templates 1111 * @throws SystemException if a system exception occurred 1112 */ 1113 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 1114 int start, int end) 1115 throws com.liferay.portal.kernel.exception.SystemException { 1116 return getPersistence().findAll(start, end); 1117 } 1118 1119 /** 1120 * Returns an ordered range of all the journal templates. 1121 * 1122 * <p> 1123 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 1124 * </p> 1125 * 1126 * @param start the lower bound of the range of journal templates 1127 * @param end the upper bound of the range of journal templates (not inclusive) 1128 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 1129 * @return the ordered range of journal templates 1130 * @throws SystemException if a system exception occurred 1131 */ 1132 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 1133 int start, int end, 1134 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 1135 throws com.liferay.portal.kernel.exception.SystemException { 1136 return getPersistence().findAll(start, end, orderByComparator); 1137 } 1138 1139 /** 1140 * Removes all the journal templates where uuid = ? from the database. 1141 * 1142 * @param uuid the uuid 1143 * @throws SystemException if a system exception occurred 1144 */ 1145 public static void removeByUuid(java.lang.String uuid) 1146 throws com.liferay.portal.kernel.exception.SystemException { 1147 getPersistence().removeByUuid(uuid); 1148 } 1149 1150 /** 1151 * Removes the journal template where uuid = ? and groupId = ? from the database. 1152 * 1153 * @param uuid the uuid 1154 * @param groupId the group ID 1155 * @throws SystemException if a system exception occurred 1156 */ 1157 public static void removeByUUID_G(java.lang.String uuid, long groupId) 1158 throws com.liferay.portal.kernel.exception.SystemException, 1159 com.liferay.portlet.journal.NoSuchTemplateException { 1160 getPersistence().removeByUUID_G(uuid, groupId); 1161 } 1162 1163 /** 1164 * Removes all the journal templates where groupId = ? from the database. 1165 * 1166 * @param groupId the group ID 1167 * @throws SystemException if a system exception occurred 1168 */ 1169 public static void removeByGroupId(long groupId) 1170 throws com.liferay.portal.kernel.exception.SystemException { 1171 getPersistence().removeByGroupId(groupId); 1172 } 1173 1174 /** 1175 * Removes all the journal templates where templateId = ? from the database. 1176 * 1177 * @param templateId the template ID 1178 * @throws SystemException if a system exception occurred 1179 */ 1180 public static void removeByTemplateId(java.lang.String templateId) 1181 throws com.liferay.portal.kernel.exception.SystemException { 1182 getPersistence().removeByTemplateId(templateId); 1183 } 1184 1185 /** 1186 * Removes all the journal templates where structureId = ? from the database. 1187 * 1188 * @param structureId the structure ID 1189 * @throws SystemException if a system exception occurred 1190 */ 1191 public static void removeByStructureId(java.lang.String structureId) 1192 throws com.liferay.portal.kernel.exception.SystemException { 1193 getPersistence().removeByStructureId(structureId); 1194 } 1195 1196 /** 1197 * Removes the journal template where smallImageId = ? from the database. 1198 * 1199 * @param smallImageId the small image ID 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public static void removeBySmallImageId(long smallImageId) 1203 throws com.liferay.portal.kernel.exception.SystemException, 1204 com.liferay.portlet.journal.NoSuchTemplateException { 1205 getPersistence().removeBySmallImageId(smallImageId); 1206 } 1207 1208 /** 1209 * Removes the journal template where groupId = ? and templateId = ? from the database. 1210 * 1211 * @param groupId the group ID 1212 * @param templateId the template ID 1213 * @throws SystemException if a system exception occurred 1214 */ 1215 public static void removeByG_T(long groupId, java.lang.String templateId) 1216 throws com.liferay.portal.kernel.exception.SystemException, 1217 com.liferay.portlet.journal.NoSuchTemplateException { 1218 getPersistence().removeByG_T(groupId, templateId); 1219 } 1220 1221 /** 1222 * Removes all the journal templates where groupId = ? and structureId = ? from the database. 1223 * 1224 * @param groupId the group ID 1225 * @param structureId the structure ID 1226 * @throws SystemException if a system exception occurred 1227 */ 1228 public static void removeByG_S(long groupId, java.lang.String structureId) 1229 throws com.liferay.portal.kernel.exception.SystemException { 1230 getPersistence().removeByG_S(groupId, structureId); 1231 } 1232 1233 /** 1234 * Removes all the journal templates from the database. 1235 * 1236 * @throws SystemException if a system exception occurred 1237 */ 1238 public static void removeAll() 1239 throws com.liferay.portal.kernel.exception.SystemException { 1240 getPersistence().removeAll(); 1241 } 1242 1243 /** 1244 * Returns the number of journal templates where uuid = ?. 1245 * 1246 * @param uuid the uuid 1247 * @return the number of matching journal templates 1248 * @throws SystemException if a system exception occurred 1249 */ 1250 public static int countByUuid(java.lang.String uuid) 1251 throws com.liferay.portal.kernel.exception.SystemException { 1252 return getPersistence().countByUuid(uuid); 1253 } 1254 1255 /** 1256 * Returns the number of journal templates where uuid = ? and groupId = ?. 1257 * 1258 * @param uuid the uuid 1259 * @param groupId the group ID 1260 * @return the number of matching journal templates 1261 * @throws SystemException if a system exception occurred 1262 */ 1263 public static int countByUUID_G(java.lang.String uuid, long groupId) 1264 throws com.liferay.portal.kernel.exception.SystemException { 1265 return getPersistence().countByUUID_G(uuid, groupId); 1266 } 1267 1268 /** 1269 * Returns the number of journal templates where groupId = ?. 1270 * 1271 * @param groupId the group ID 1272 * @return the number of matching journal templates 1273 * @throws SystemException if a system exception occurred 1274 */ 1275 public static int countByGroupId(long groupId) 1276 throws com.liferay.portal.kernel.exception.SystemException { 1277 return getPersistence().countByGroupId(groupId); 1278 } 1279 1280 /** 1281 * Returns the number of journal templates that the user has permission to view where groupId = ?. 1282 * 1283 * @param groupId the group ID 1284 * @return the number of matching journal templates that the user has permission to view 1285 * @throws SystemException if a system exception occurred 1286 */ 1287 public static int filterCountByGroupId(long groupId) 1288 throws com.liferay.portal.kernel.exception.SystemException { 1289 return getPersistence().filterCountByGroupId(groupId); 1290 } 1291 1292 /** 1293 * Returns the number of journal templates where templateId = ?. 1294 * 1295 * @param templateId the template ID 1296 * @return the number of matching journal templates 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public static int countByTemplateId(java.lang.String templateId) 1300 throws com.liferay.portal.kernel.exception.SystemException { 1301 return getPersistence().countByTemplateId(templateId); 1302 } 1303 1304 /** 1305 * Returns the number of journal templates where structureId = ?. 1306 * 1307 * @param structureId the structure ID 1308 * @return the number of matching journal templates 1309 * @throws SystemException if a system exception occurred 1310 */ 1311 public static int countByStructureId(java.lang.String structureId) 1312 throws com.liferay.portal.kernel.exception.SystemException { 1313 return getPersistence().countByStructureId(structureId); 1314 } 1315 1316 /** 1317 * Returns the number of journal templates where smallImageId = ?. 1318 * 1319 * @param smallImageId the small image ID 1320 * @return the number of matching journal templates 1321 * @throws SystemException if a system exception occurred 1322 */ 1323 public static int countBySmallImageId(long smallImageId) 1324 throws com.liferay.portal.kernel.exception.SystemException { 1325 return getPersistence().countBySmallImageId(smallImageId); 1326 } 1327 1328 /** 1329 * Returns the number of journal templates where groupId = ? and templateId = ?. 1330 * 1331 * @param groupId the group ID 1332 * @param templateId the template ID 1333 * @return the number of matching journal templates 1334 * @throws SystemException if a system exception occurred 1335 */ 1336 public static int countByG_T(long groupId, java.lang.String templateId) 1337 throws com.liferay.portal.kernel.exception.SystemException { 1338 return getPersistence().countByG_T(groupId, templateId); 1339 } 1340 1341 /** 1342 * Returns the number of journal templates where groupId = ? and structureId = ?. 1343 * 1344 * @param groupId the group ID 1345 * @param structureId the structure ID 1346 * @return the number of matching journal templates 1347 * @throws SystemException if a system exception occurred 1348 */ 1349 public static int countByG_S(long groupId, java.lang.String structureId) 1350 throws com.liferay.portal.kernel.exception.SystemException { 1351 return getPersistence().countByG_S(groupId, structureId); 1352 } 1353 1354 /** 1355 * Returns the number of journal templates that the user has permission to view where groupId = ? and structureId = ?. 1356 * 1357 * @param groupId the group ID 1358 * @param structureId the structure ID 1359 * @return the number of matching journal templates that the user has permission to view 1360 * @throws SystemException if a system exception occurred 1361 */ 1362 public static int filterCountByG_S(long groupId, 1363 java.lang.String structureId) 1364 throws com.liferay.portal.kernel.exception.SystemException { 1365 return getPersistence().filterCountByG_S(groupId, structureId); 1366 } 1367 1368 /** 1369 * Returns the number of journal templates. 1370 * 1371 * @return the number of journal templates 1372 * @throws SystemException if a system exception occurred 1373 */ 1374 public static int countAll() 1375 throws com.liferay.portal.kernel.exception.SystemException { 1376 return getPersistence().countAll(); 1377 } 1378 1379 public static JournalTemplatePersistence getPersistence() { 1380 if (_persistence == null) { 1381 _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName()); 1382 1383 ReferenceRegistry.registerReference(JournalTemplateUtil.class, 1384 "_persistence"); 1385 } 1386 1387 return _persistence; 1388 } 1389 1390 public void setPersistence(JournalTemplatePersistence persistence) { 1391 _persistence = persistence; 1392 1393 ReferenceRegistry.registerReference(JournalTemplateUtil.class, 1394 "_persistence"); 1395 } 1396 1397 private static JournalTemplatePersistence _persistence; 1398 }