001 /** 002 * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.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.service.ServiceContext; 022 023 import com.liferay.portlet.journal.model.JournalTemplate; 024 025 import java.util.List; 026 027 /** 028 * The persistence utility for the journal template service. 029 * 030 * <p> 031 * Never modify this class directly. Modify <code>service.xml</code> and rerun ServiceBuilder to regnerate this class. 032 * </p> 033 * 034 * @author Brian Wing Shun Chan 035 * @see JournalTemplatePersistence 036 * @see JournalTemplatePersistenceImpl 037 * @generated 038 */ 039 public class JournalTemplateUtil { 040 /** 041 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache() 042 */ 043 public static void clearCache() { 044 getPersistence().clearCache(); 045 } 046 047 /** 048 * @see com.liferay.portal.service.persistence.BasePersistence#clearCache(com.liferay.portal.model.BaseModel) 049 */ 050 public static void clearCache(JournalTemplate journalTemplate) { 051 getPersistence().clearCache(journalTemplate); 052 } 053 054 /** 055 * @see com.liferay.portal.service.persistence.BasePersistence#countWithDynamicQuery(DynamicQuery) 056 */ 057 public long countWithDynamicQuery(DynamicQuery dynamicQuery) 058 throws SystemException { 059 return getPersistence().countWithDynamicQuery(dynamicQuery); 060 } 061 062 /** 063 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery) 064 */ 065 public static List<JournalTemplate> findWithDynamicQuery( 066 DynamicQuery dynamicQuery) throws SystemException { 067 return getPersistence().findWithDynamicQuery(dynamicQuery); 068 } 069 070 /** 071 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) 072 */ 073 public static List<JournalTemplate> findWithDynamicQuery( 074 DynamicQuery dynamicQuery, int start, int end) 075 throws SystemException { 076 return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); 077 } 078 079 /** 080 * @see com.liferay.portal.service.persistence.BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) 081 */ 082 public static List<JournalTemplate> findWithDynamicQuery( 083 DynamicQuery dynamicQuery, int start, int end, 084 OrderByComparator orderByComparator) throws SystemException { 085 return getPersistence() 086 .findWithDynamicQuery(dynamicQuery, start, end, 087 orderByComparator); 088 } 089 090 /** 091 * @see com.liferay.portal.service.persistence.BasePersistence#remove(com.liferay.portal.model.BaseModel) 092 */ 093 public static JournalTemplate remove(JournalTemplate journalTemplate) 094 throws SystemException { 095 return getPersistence().remove(journalTemplate); 096 } 097 098 /** 099 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean) 100 */ 101 public static JournalTemplate update(JournalTemplate journalTemplate, 102 boolean merge) throws SystemException { 103 return getPersistence().update(journalTemplate, merge); 104 } 105 106 /** 107 * @see com.liferay.portal.service.persistence.BasePersistence#update(com.liferay.portal.model.BaseModel, boolean, ServiceContext) 108 */ 109 public static JournalTemplate update(JournalTemplate journalTemplate, 110 boolean merge, ServiceContext serviceContext) throws SystemException { 111 return getPersistence().update(journalTemplate, merge, serviceContext); 112 } 113 114 /** 115 * Caches the journal template in the entity cache if it is enabled. 116 * 117 * @param journalTemplate the journal template to cache 118 */ 119 public static void cacheResult( 120 com.liferay.portlet.journal.model.JournalTemplate journalTemplate) { 121 getPersistence().cacheResult(journalTemplate); 122 } 123 124 /** 125 * Caches the journal templates in the entity cache if it is enabled. 126 * 127 * @param journalTemplates the journal templates to cache 128 */ 129 public static void cacheResult( 130 java.util.List<com.liferay.portlet.journal.model.JournalTemplate> journalTemplates) { 131 getPersistence().cacheResult(journalTemplates); 132 } 133 134 /** 135 * Creates a new journal template with the primary key. 136 * 137 * @param id the primary key for the new journal template 138 * @return the new journal template 139 */ 140 public static com.liferay.portlet.journal.model.JournalTemplate create( 141 long id) { 142 return getPersistence().create(id); 143 } 144 145 /** 146 * Removes the journal template with the primary key from the database. Also notifies the appropriate model listeners. 147 * 148 * @param id the primary key of the journal template to remove 149 * @return the journal template that was removed 150 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 151 * @throws SystemException if a system exception occurred 152 */ 153 public static com.liferay.portlet.journal.model.JournalTemplate remove( 154 long id) 155 throws com.liferay.portal.kernel.exception.SystemException, 156 com.liferay.portlet.journal.NoSuchTemplateException { 157 return getPersistence().remove(id); 158 } 159 160 public static com.liferay.portlet.journal.model.JournalTemplate updateImpl( 161 com.liferay.portlet.journal.model.JournalTemplate journalTemplate, 162 boolean merge) 163 throws com.liferay.portal.kernel.exception.SystemException { 164 return getPersistence().updateImpl(journalTemplate, merge); 165 } 166 167 /** 168 * Finds the journal template with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 169 * 170 * @param id the primary key of the journal template to find 171 * @return the journal template 172 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 173 * @throws SystemException if a system exception occurred 174 */ 175 public static com.liferay.portlet.journal.model.JournalTemplate findByPrimaryKey( 176 long id) 177 throws com.liferay.portal.kernel.exception.SystemException, 178 com.liferay.portlet.journal.NoSuchTemplateException { 179 return getPersistence().findByPrimaryKey(id); 180 } 181 182 /** 183 * Finds the journal template with the primary key or returns <code>null</code> if it could not be found. 184 * 185 * @param id the primary key of the journal template to find 186 * @return the journal template, or <code>null</code> if a journal template with the primary key could not be found 187 * @throws SystemException if a system exception occurred 188 */ 189 public static com.liferay.portlet.journal.model.JournalTemplate fetchByPrimaryKey( 190 long id) throws com.liferay.portal.kernel.exception.SystemException { 191 return getPersistence().fetchByPrimaryKey(id); 192 } 193 194 /** 195 * Finds all the journal templates where uuid = ?. 196 * 197 * @param uuid the uuid to search with 198 * @return the matching journal templates 199 * @throws SystemException if a system exception occurred 200 */ 201 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 202 java.lang.String uuid) 203 throws com.liferay.portal.kernel.exception.SystemException { 204 return getPersistence().findByUuid(uuid); 205 } 206 207 /** 208 * Finds a range of all the journal templates where uuid = ?. 209 * 210 * <p> 211 * 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. 212 * </p> 213 * 214 * @param uuid the uuid to search with 215 * @param start the lower bound of the range of journal templates to return 216 * @param end the upper bound of the range of journal templates to return (not inclusive) 217 * @return the range of matching journal templates 218 * @throws SystemException if a system exception occurred 219 */ 220 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 221 java.lang.String uuid, int start, int end) 222 throws com.liferay.portal.kernel.exception.SystemException { 223 return getPersistence().findByUuid(uuid, start, end); 224 } 225 226 /** 227 * Finds an ordered range of all the journal templates where uuid = ?. 228 * 229 * <p> 230 * 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. 231 * </p> 232 * 233 * @param uuid the uuid to search with 234 * @param start the lower bound of the range of journal templates to return 235 * @param end the upper bound of the range of journal templates to return (not inclusive) 236 * @param orderByComparator the comparator to order the results by 237 * @return the ordered range of matching journal templates 238 * @throws SystemException if a system exception occurred 239 */ 240 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByUuid( 241 java.lang.String uuid, int start, int end, 242 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 243 throws com.liferay.portal.kernel.exception.SystemException { 244 return getPersistence().findByUuid(uuid, start, end, orderByComparator); 245 } 246 247 /** 248 * Finds the first journal template in the ordered set where uuid = ?. 249 * 250 * <p> 251 * 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. 252 * </p> 253 * 254 * @param uuid the uuid to search with 255 * @param orderByComparator the comparator to order the set by 256 * @return the first matching journal template 257 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 258 * @throws SystemException if a system exception occurred 259 */ 260 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_First( 261 java.lang.String uuid, 262 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 263 throws com.liferay.portal.kernel.exception.SystemException, 264 com.liferay.portlet.journal.NoSuchTemplateException { 265 return getPersistence().findByUuid_First(uuid, orderByComparator); 266 } 267 268 /** 269 * Finds the last journal template in the ordered set where uuid = ?. 270 * 271 * <p> 272 * 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. 273 * </p> 274 * 275 * @param uuid the uuid to search with 276 * @param orderByComparator the comparator to order the set by 277 * @return the last matching journal template 278 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 279 * @throws SystemException if a system exception occurred 280 */ 281 public static com.liferay.portlet.journal.model.JournalTemplate findByUuid_Last( 282 java.lang.String uuid, 283 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 284 throws com.liferay.portal.kernel.exception.SystemException, 285 com.liferay.portlet.journal.NoSuchTemplateException { 286 return getPersistence().findByUuid_Last(uuid, orderByComparator); 287 } 288 289 /** 290 * Finds the journal templates before and after the current journal template in the ordered set where uuid = ?. 291 * 292 * <p> 293 * 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. 294 * </p> 295 * 296 * @param id the primary key of the current journal template 297 * @param uuid the uuid to search with 298 * @param orderByComparator the comparator to order the set by 299 * @return the previous, current, and next journal template 300 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 301 * @throws SystemException if a system exception occurred 302 */ 303 public static com.liferay.portlet.journal.model.JournalTemplate[] findByUuid_PrevAndNext( 304 long id, java.lang.String uuid, 305 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 306 throws com.liferay.portal.kernel.exception.SystemException, 307 com.liferay.portlet.journal.NoSuchTemplateException { 308 return getPersistence() 309 .findByUuid_PrevAndNext(id, uuid, orderByComparator); 310 } 311 312 /** 313 * Finds the journal template where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 314 * 315 * @param uuid the uuid to search with 316 * @param groupId the group id to search with 317 * @return the matching journal template 318 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 319 * @throws SystemException if a system exception occurred 320 */ 321 public static com.liferay.portlet.journal.model.JournalTemplate findByUUID_G( 322 java.lang.String uuid, long groupId) 323 throws com.liferay.portal.kernel.exception.SystemException, 324 com.liferay.portlet.journal.NoSuchTemplateException { 325 return getPersistence().findByUUID_G(uuid, groupId); 326 } 327 328 /** 329 * Finds the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 330 * 331 * @param uuid the uuid to search with 332 * @param groupId the group id to search with 333 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 334 * @throws SystemException if a system exception occurred 335 */ 336 public static com.liferay.portlet.journal.model.JournalTemplate fetchByUUID_G( 337 java.lang.String uuid, long groupId) 338 throws com.liferay.portal.kernel.exception.SystemException { 339 return getPersistence().fetchByUUID_G(uuid, groupId); 340 } 341 342 /** 343 * Finds the journal template where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 344 * 345 * @param uuid the uuid to search with 346 * @param groupId the group id to search with 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 * Finds all the journal templates where groupId = ?. 358 * 359 * @param groupId the group id to search with 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 * Finds 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 to search with 377 * @param start the lower bound of the range of journal templates to return 378 * @param end the upper bound of the range of journal templates to return (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 * Finds 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 to search with 396 * @param start the lower bound of the range of journal templates to return 397 * @param end the upper bound of the range of journal templates to return (not inclusive) 398 * @param orderByComparator the comparator to order the results by 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 * Finds 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 to search with 418 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 439 * @param orderByComparator the comparator to order the set by 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 * Finds 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 to search with 461 * @param orderByComparator the comparator to order the set by 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 * Filters by the user's permissions and finds all the journal templates where groupId = ?. 477 * 478 * @param groupId the group id to search with 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 * Filters by the user's permissions and finds a range of all the journal templates 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 to search with 496 * @param start the lower bound of the range of journal templates to return 497 * @param end the upper bound of the range of journal templates to return (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 * Filters by the user's permissions and finds an ordered range of all the journal templates 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 to search with 515 * @param start the lower bound of the range of journal templates to return 516 * @param end the upper bound of the range of journal templates to return (not inclusive) 517 * @param orderByComparator the comparator to order the results by 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 * Finds all the journal templates where templateId = ?. 531 * 532 * @param templateId the template id to search with 533 * @return the matching journal templates 534 * @throws SystemException if a system exception occurred 535 */ 536 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 537 java.lang.String templateId) 538 throws com.liferay.portal.kernel.exception.SystemException { 539 return getPersistence().findByTemplateId(templateId); 540 } 541 542 /** 543 * Finds a range of all the journal templates where templateId = ?. 544 * 545 * <p> 546 * 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. 547 * </p> 548 * 549 * @param templateId the template id to search with 550 * @param start the lower bound of the range of journal templates to return 551 * @param end the upper bound of the range of journal templates to return (not inclusive) 552 * @return the range of matching journal templates 553 * @throws SystemException if a system exception occurred 554 */ 555 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByTemplateId( 556 java.lang.String templateId, int start, int end) 557 throws com.liferay.portal.kernel.exception.SystemException { 558 return getPersistence().findByTemplateId(templateId, start, end); 559 } 560 561 /** 562 * Finds an ordered range of all the journal templates where templateId = ?. 563 * 564 * <p> 565 * 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. 566 * </p> 567 * 568 * @param templateId the template id to search with 569 * @param start the lower bound of the range of journal templates to return 570 * @param end the upper bound of the range of journal templates to return (not inclusive) 571 * @param orderByComparator the comparator to order the results by 572 * @return the ordered 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 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 578 throws com.liferay.portal.kernel.exception.SystemException { 579 return getPersistence() 580 .findByTemplateId(templateId, start, end, orderByComparator); 581 } 582 583 /** 584 * Finds the first journal template in the ordered set where templateId = ?. 585 * 586 * <p> 587 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 588 * </p> 589 * 590 * @param templateId the template id to search with 591 * @param orderByComparator the comparator to order the set by 592 * @return the first matching journal template 593 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 594 * @throws SystemException if a system exception occurred 595 */ 596 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_First( 597 java.lang.String templateId, 598 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 599 throws com.liferay.portal.kernel.exception.SystemException, 600 com.liferay.portlet.journal.NoSuchTemplateException { 601 return getPersistence() 602 .findByTemplateId_First(templateId, orderByComparator); 603 } 604 605 /** 606 * Finds the last journal template in the ordered set where templateId = ?. 607 * 608 * <p> 609 * 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. 610 * </p> 611 * 612 * @param templateId the template id to search with 613 * @param orderByComparator the comparator to order the set by 614 * @return the last matching journal template 615 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 616 * @throws SystemException if a system exception occurred 617 */ 618 public static com.liferay.portlet.journal.model.JournalTemplate findByTemplateId_Last( 619 java.lang.String templateId, 620 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 621 throws com.liferay.portal.kernel.exception.SystemException, 622 com.liferay.portlet.journal.NoSuchTemplateException { 623 return getPersistence() 624 .findByTemplateId_Last(templateId, orderByComparator); 625 } 626 627 /** 628 * Finds the journal templates before and after the current journal template in the ordered set where templateId = ?. 629 * 630 * <p> 631 * 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. 632 * </p> 633 * 634 * @param id the primary key of the current journal template 635 * @param templateId the template id to search with 636 * @param orderByComparator the comparator to order the set by 637 * @return the previous, current, and next journal template 638 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 639 * @throws SystemException if a system exception occurred 640 */ 641 public static com.liferay.portlet.journal.model.JournalTemplate[] findByTemplateId_PrevAndNext( 642 long id, java.lang.String templateId, 643 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 644 throws com.liferay.portal.kernel.exception.SystemException, 645 com.liferay.portlet.journal.NoSuchTemplateException { 646 return getPersistence() 647 .findByTemplateId_PrevAndNext(id, templateId, 648 orderByComparator); 649 } 650 651 /** 652 * Finds the journal template where smallImageId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 653 * 654 * @param smallImageId the small image id to search with 655 * @return the matching journal template 656 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 657 * @throws SystemException if a system exception occurred 658 */ 659 public static com.liferay.portlet.journal.model.JournalTemplate findBySmallImageId( 660 long smallImageId) 661 throws com.liferay.portal.kernel.exception.SystemException, 662 com.liferay.portlet.journal.NoSuchTemplateException { 663 return getPersistence().findBySmallImageId(smallImageId); 664 } 665 666 /** 667 * Finds the journal template where smallImageId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 668 * 669 * @param smallImageId the small image id to search with 670 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 671 * @throws SystemException if a system exception occurred 672 */ 673 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 674 long smallImageId) 675 throws com.liferay.portal.kernel.exception.SystemException { 676 return getPersistence().fetchBySmallImageId(smallImageId); 677 } 678 679 /** 680 * Finds the journal template where smallImageId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 681 * 682 * @param smallImageId the small image id to search with 683 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 684 * @throws SystemException if a system exception occurred 685 */ 686 public static com.liferay.portlet.journal.model.JournalTemplate fetchBySmallImageId( 687 long smallImageId, boolean retrieveFromCache) 688 throws com.liferay.portal.kernel.exception.SystemException { 689 return getPersistence() 690 .fetchBySmallImageId(smallImageId, retrieveFromCache); 691 } 692 693 /** 694 * Finds the journal template where groupId = ? and templateId = ? or throws a {@link com.liferay.portlet.journal.NoSuchTemplateException} if it could not be found. 695 * 696 * @param groupId the group id to search with 697 * @param templateId the template id to search with 698 * @return the matching journal template 699 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 700 * @throws SystemException if a system exception occurred 701 */ 702 public static com.liferay.portlet.journal.model.JournalTemplate findByG_T( 703 long groupId, java.lang.String templateId) 704 throws com.liferay.portal.kernel.exception.SystemException, 705 com.liferay.portlet.journal.NoSuchTemplateException { 706 return getPersistence().findByG_T(groupId, templateId); 707 } 708 709 /** 710 * Finds the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 711 * 712 * @param groupId the group id to search with 713 * @param templateId the template id to search with 714 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 715 * @throws SystemException if a system exception occurred 716 */ 717 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 718 long groupId, java.lang.String templateId) 719 throws com.liferay.portal.kernel.exception.SystemException { 720 return getPersistence().fetchByG_T(groupId, templateId); 721 } 722 723 /** 724 * Finds the journal template where groupId = ? and templateId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 725 * 726 * @param groupId the group id to search with 727 * @param templateId the template id to search with 728 * @return the matching journal template, or <code>null</code> if a matching journal template could not be found 729 * @throws SystemException if a system exception occurred 730 */ 731 public static com.liferay.portlet.journal.model.JournalTemplate fetchByG_T( 732 long groupId, java.lang.String templateId, boolean retrieveFromCache) 733 throws com.liferay.portal.kernel.exception.SystemException { 734 return getPersistence() 735 .fetchByG_T(groupId, templateId, retrieveFromCache); 736 } 737 738 /** 739 * Finds all the journal templates where groupId = ? and structureId = ?. 740 * 741 * @param groupId the group id to search with 742 * @param structureId the structure id to search with 743 * @return the matching journal templates 744 * @throws SystemException if a system exception occurred 745 */ 746 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 747 long groupId, java.lang.String structureId) 748 throws com.liferay.portal.kernel.exception.SystemException { 749 return getPersistence().findByG_S(groupId, structureId); 750 } 751 752 /** 753 * Finds a range of all the journal templates where groupId = ? and structureId = ?. 754 * 755 * <p> 756 * 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. 757 * </p> 758 * 759 * @param groupId the group id to search with 760 * @param structureId the structure id to search with 761 * @param start the lower bound of the range of journal templates to return 762 * @param end the upper bound of the range of journal templates to return (not inclusive) 763 * @return the range of matching journal templates 764 * @throws SystemException if a system exception occurred 765 */ 766 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 767 long groupId, java.lang.String structureId, int start, int end) 768 throws com.liferay.portal.kernel.exception.SystemException { 769 return getPersistence().findByG_S(groupId, structureId, start, end); 770 } 771 772 /** 773 * Finds an ordered range of all the journal templates where groupId = ? and structureId = ?. 774 * 775 * <p> 776 * 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. 777 * </p> 778 * 779 * @param groupId the group id to search with 780 * @param structureId the structure id to search with 781 * @param start the lower bound of the range of journal templates to return 782 * @param end the upper bound of the range of journal templates to return (not inclusive) 783 * @param orderByComparator the comparator to order the results by 784 * @return the ordered range of matching journal templates 785 * @throws SystemException if a system exception occurred 786 */ 787 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findByG_S( 788 long groupId, java.lang.String structureId, int start, int end, 789 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 790 throws com.liferay.portal.kernel.exception.SystemException { 791 return getPersistence() 792 .findByG_S(groupId, structureId, start, end, 793 orderByComparator); 794 } 795 796 /** 797 * Finds the first journal template in the ordered set where groupId = ? and structureId = ?. 798 * 799 * <p> 800 * 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. 801 * </p> 802 * 803 * @param groupId the group id to search with 804 * @param structureId the structure id to search with 805 * @param orderByComparator the comparator to order the set by 806 * @return the first matching journal template 807 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 808 * @throws SystemException if a system exception occurred 809 */ 810 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_First( 811 long groupId, java.lang.String structureId, 812 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 813 throws com.liferay.portal.kernel.exception.SystemException, 814 com.liferay.portlet.journal.NoSuchTemplateException { 815 return getPersistence() 816 .findByG_S_First(groupId, structureId, orderByComparator); 817 } 818 819 /** 820 * Finds the last journal template in the ordered set where groupId = ? and structureId = ?. 821 * 822 * <p> 823 * 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. 824 * </p> 825 * 826 * @param groupId the group id to search with 827 * @param structureId the structure id to search with 828 * @param orderByComparator the comparator to order the set by 829 * @return the last matching journal template 830 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a matching journal template could not be found 831 * @throws SystemException if a system exception occurred 832 */ 833 public static com.liferay.portlet.journal.model.JournalTemplate findByG_S_Last( 834 long groupId, java.lang.String structureId, 835 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 836 throws com.liferay.portal.kernel.exception.SystemException, 837 com.liferay.portlet.journal.NoSuchTemplateException { 838 return getPersistence() 839 .findByG_S_Last(groupId, structureId, orderByComparator); 840 } 841 842 /** 843 * Finds the journal templates before and after the current journal template in the ordered set where groupId = ? and structureId = ?. 844 * 845 * <p> 846 * 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. 847 * </p> 848 * 849 * @param id the primary key of the current journal template 850 * @param groupId the group id to search with 851 * @param structureId the structure id to search with 852 * @param orderByComparator the comparator to order the set by 853 * @return the previous, current, and next journal template 854 * @throws com.liferay.portlet.journal.NoSuchTemplateException if a journal template with the primary key could not be found 855 * @throws SystemException if a system exception occurred 856 */ 857 public static com.liferay.portlet.journal.model.JournalTemplate[] findByG_S_PrevAndNext( 858 long id, long groupId, java.lang.String structureId, 859 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 860 throws com.liferay.portal.kernel.exception.SystemException, 861 com.liferay.portlet.journal.NoSuchTemplateException { 862 return getPersistence() 863 .findByG_S_PrevAndNext(id, groupId, structureId, 864 orderByComparator); 865 } 866 867 /** 868 * Filters by the user's permissions and finds all the journal templates where groupId = ? and structureId = ?. 869 * 870 * @param groupId the group id to search with 871 * @param structureId the structure id to search with 872 * @return the matching journal templates that the user has permission to view 873 * @throws SystemException if a system exception occurred 874 */ 875 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 876 long groupId, java.lang.String structureId) 877 throws com.liferay.portal.kernel.exception.SystemException { 878 return getPersistence().filterFindByG_S(groupId, structureId); 879 } 880 881 /** 882 * Filters by the user's permissions and finds a range of all the journal templates where groupId = ? and structureId = ?. 883 * 884 * <p> 885 * 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. 886 * </p> 887 * 888 * @param groupId the group id to search with 889 * @param structureId the structure id to search with 890 * @param start the lower bound of the range of journal templates to return 891 * @param end the upper bound of the range of journal templates to return (not inclusive) 892 * @return the range of matching journal templates that the user has permission to view 893 * @throws SystemException if a system exception occurred 894 */ 895 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 896 long groupId, java.lang.String structureId, int start, int end) 897 throws com.liferay.portal.kernel.exception.SystemException { 898 return getPersistence().filterFindByG_S(groupId, structureId, start, end); 899 } 900 901 /** 902 * Filters by the user's permissions and finds an ordered range of all the journal templates where groupId = ? and structureId = ?. 903 * 904 * <p> 905 * 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. 906 * </p> 907 * 908 * @param groupId the group id to search with 909 * @param structureId the structure id to search with 910 * @param start the lower bound of the range of journal templates to return 911 * @param end the upper bound of the range of journal templates to return (not inclusive) 912 * @param orderByComparator the comparator to order the results by 913 * @return the ordered range of matching journal templates that the user has permission to view 914 * @throws SystemException if a system exception occurred 915 */ 916 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> filterFindByG_S( 917 long groupId, java.lang.String structureId, int start, int end, 918 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 919 throws com.liferay.portal.kernel.exception.SystemException { 920 return getPersistence() 921 .filterFindByG_S(groupId, structureId, start, end, 922 orderByComparator); 923 } 924 925 /** 926 * Finds all the journal templates. 927 * 928 * @return the journal templates 929 * @throws SystemException if a system exception occurred 930 */ 931 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll() 932 throws com.liferay.portal.kernel.exception.SystemException { 933 return getPersistence().findAll(); 934 } 935 936 /** 937 * Finds a range of all the journal templates. 938 * 939 * <p> 940 * 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. 941 * </p> 942 * 943 * @param start the lower bound of the range of journal templates to return 944 * @param end the upper bound of the range of journal templates to return (not inclusive) 945 * @return the range of journal templates 946 * @throws SystemException if a system exception occurred 947 */ 948 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 949 int start, int end) 950 throws com.liferay.portal.kernel.exception.SystemException { 951 return getPersistence().findAll(start, end); 952 } 953 954 /** 955 * Finds an ordered range of all the journal templates. 956 * 957 * <p> 958 * 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. 959 * </p> 960 * 961 * @param start the lower bound of the range of journal templates to return 962 * @param end the upper bound of the range of journal templates to return (not inclusive) 963 * @param orderByComparator the comparator to order the results by 964 * @return the ordered range of journal templates 965 * @throws SystemException if a system exception occurred 966 */ 967 public static java.util.List<com.liferay.portlet.journal.model.JournalTemplate> findAll( 968 int start, int end, 969 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 970 throws com.liferay.portal.kernel.exception.SystemException { 971 return getPersistence().findAll(start, end, orderByComparator); 972 } 973 974 /** 975 * Removes all the journal templates where uuid = ? from the database. 976 * 977 * @param uuid the uuid to search with 978 * @throws SystemException if a system exception occurred 979 */ 980 public static void removeByUuid(java.lang.String uuid) 981 throws com.liferay.portal.kernel.exception.SystemException { 982 getPersistence().removeByUuid(uuid); 983 } 984 985 /** 986 * Removes the journal template where uuid = ? and groupId = ? from the database. 987 * 988 * @param uuid the uuid to search with 989 * @param groupId the group id to search with 990 * @throws SystemException if a system exception occurred 991 */ 992 public static void removeByUUID_G(java.lang.String uuid, long groupId) 993 throws com.liferay.portal.kernel.exception.SystemException, 994 com.liferay.portlet.journal.NoSuchTemplateException { 995 getPersistence().removeByUUID_G(uuid, groupId); 996 } 997 998 /** 999 * Removes all the journal templates where groupId = ? from the database. 1000 * 1001 * @param groupId the group id to search with 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public static void removeByGroupId(long groupId) 1005 throws com.liferay.portal.kernel.exception.SystemException { 1006 getPersistence().removeByGroupId(groupId); 1007 } 1008 1009 /** 1010 * Removes all the journal templates where templateId = ? from the database. 1011 * 1012 * @param templateId the template id to search with 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public static void removeByTemplateId(java.lang.String templateId) 1016 throws com.liferay.portal.kernel.exception.SystemException { 1017 getPersistence().removeByTemplateId(templateId); 1018 } 1019 1020 /** 1021 * Removes the journal template where smallImageId = ? from the database. 1022 * 1023 * @param smallImageId the small image id to search with 1024 * @throws SystemException if a system exception occurred 1025 */ 1026 public static void removeBySmallImageId(long smallImageId) 1027 throws com.liferay.portal.kernel.exception.SystemException, 1028 com.liferay.portlet.journal.NoSuchTemplateException { 1029 getPersistence().removeBySmallImageId(smallImageId); 1030 } 1031 1032 /** 1033 * Removes the journal template where groupId = ? and templateId = ? from the database. 1034 * 1035 * @param groupId the group id to search with 1036 * @param templateId the template id to search with 1037 * @throws SystemException if a system exception occurred 1038 */ 1039 public static void removeByG_T(long groupId, java.lang.String templateId) 1040 throws com.liferay.portal.kernel.exception.SystemException, 1041 com.liferay.portlet.journal.NoSuchTemplateException { 1042 getPersistence().removeByG_T(groupId, templateId); 1043 } 1044 1045 /** 1046 * Removes all the journal templates where groupId = ? and structureId = ? from the database. 1047 * 1048 * @param groupId the group id to search with 1049 * @param structureId the structure id to search with 1050 * @throws SystemException if a system exception occurred 1051 */ 1052 public static void removeByG_S(long groupId, java.lang.String structureId) 1053 throws com.liferay.portal.kernel.exception.SystemException { 1054 getPersistence().removeByG_S(groupId, structureId); 1055 } 1056 1057 /** 1058 * Removes all the journal templates from the database. 1059 * 1060 * @throws SystemException if a system exception occurred 1061 */ 1062 public static void removeAll() 1063 throws com.liferay.portal.kernel.exception.SystemException { 1064 getPersistence().removeAll(); 1065 } 1066 1067 /** 1068 * Counts all the journal templates where uuid = ?. 1069 * 1070 * @param uuid the uuid to search with 1071 * @return the number of matching journal templates 1072 * @throws SystemException if a system exception occurred 1073 */ 1074 public static int countByUuid(java.lang.String uuid) 1075 throws com.liferay.portal.kernel.exception.SystemException { 1076 return getPersistence().countByUuid(uuid); 1077 } 1078 1079 /** 1080 * Counts all the journal templates where uuid = ? and groupId = ?. 1081 * 1082 * @param uuid the uuid to search with 1083 * @param groupId the group id to search with 1084 * @return the number of matching journal templates 1085 * @throws SystemException if a system exception occurred 1086 */ 1087 public static int countByUUID_G(java.lang.String uuid, long groupId) 1088 throws com.liferay.portal.kernel.exception.SystemException { 1089 return getPersistence().countByUUID_G(uuid, groupId); 1090 } 1091 1092 /** 1093 * Counts all the journal templates where groupId = ?. 1094 * 1095 * @param groupId the group id to search with 1096 * @return the number of matching journal templates 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public static int countByGroupId(long groupId) 1100 throws com.liferay.portal.kernel.exception.SystemException { 1101 return getPersistence().countByGroupId(groupId); 1102 } 1103 1104 /** 1105 * Filters by the user's permissions and counts all the journal templates where groupId = ?. 1106 * 1107 * @param groupId the group id to search with 1108 * @return the number of matching journal templates that the user has permission to view 1109 * @throws SystemException if a system exception occurred 1110 */ 1111 public static int filterCountByGroupId(long groupId) 1112 throws com.liferay.portal.kernel.exception.SystemException { 1113 return getPersistence().filterCountByGroupId(groupId); 1114 } 1115 1116 /** 1117 * Counts all the journal templates where templateId = ?. 1118 * 1119 * @param templateId the template id to search with 1120 * @return the number of matching journal templates 1121 * @throws SystemException if a system exception occurred 1122 */ 1123 public static int countByTemplateId(java.lang.String templateId) 1124 throws com.liferay.portal.kernel.exception.SystemException { 1125 return getPersistence().countByTemplateId(templateId); 1126 } 1127 1128 /** 1129 * Counts all the journal templates where smallImageId = ?. 1130 * 1131 * @param smallImageId the small image id to search with 1132 * @return the number of matching journal templates 1133 * @throws SystemException if a system exception occurred 1134 */ 1135 public static int countBySmallImageId(long smallImageId) 1136 throws com.liferay.portal.kernel.exception.SystemException { 1137 return getPersistence().countBySmallImageId(smallImageId); 1138 } 1139 1140 /** 1141 * Counts all the journal templates where groupId = ? and templateId = ?. 1142 * 1143 * @param groupId the group id to search with 1144 * @param templateId the template id to search with 1145 * @return the number of matching journal templates 1146 * @throws SystemException if a system exception occurred 1147 */ 1148 public static int countByG_T(long groupId, java.lang.String templateId) 1149 throws com.liferay.portal.kernel.exception.SystemException { 1150 return getPersistence().countByG_T(groupId, templateId); 1151 } 1152 1153 /** 1154 * Filters by the user's permissions and counts all the journal templates where groupId = ? and templateId = ?. 1155 * 1156 * @param groupId the group id to search with 1157 * @param templateId the template id to search with 1158 * @return the number of matching journal templates that the user has permission to view 1159 * @throws SystemException if a system exception occurred 1160 */ 1161 public static int filterCountByG_T(long groupId, java.lang.String templateId) 1162 throws com.liferay.portal.kernel.exception.SystemException { 1163 return getPersistence().filterCountByG_T(groupId, templateId); 1164 } 1165 1166 /** 1167 * Counts all the journal templates where groupId = ? and structureId = ?. 1168 * 1169 * @param groupId the group id to search with 1170 * @param structureId the structure id to search with 1171 * @return the number of matching journal templates 1172 * @throws SystemException if a system exception occurred 1173 */ 1174 public static int countByG_S(long groupId, java.lang.String structureId) 1175 throws com.liferay.portal.kernel.exception.SystemException { 1176 return getPersistence().countByG_S(groupId, structureId); 1177 } 1178 1179 /** 1180 * Filters by the user's permissions and counts all the journal templates where groupId = ? and structureId = ?. 1181 * 1182 * @param groupId the group id to search with 1183 * @param structureId the structure id to search with 1184 * @return the number of matching journal templates that the user has permission to view 1185 * @throws SystemException if a system exception occurred 1186 */ 1187 public static int filterCountByG_S(long groupId, 1188 java.lang.String structureId) 1189 throws com.liferay.portal.kernel.exception.SystemException { 1190 return getPersistence().filterCountByG_S(groupId, structureId); 1191 } 1192 1193 /** 1194 * Counts all the journal templates. 1195 * 1196 * @return the number of journal templates 1197 * @throws SystemException if a system exception occurred 1198 */ 1199 public static int countAll() 1200 throws com.liferay.portal.kernel.exception.SystemException { 1201 return getPersistence().countAll(); 1202 } 1203 1204 public static JournalTemplatePersistence getPersistence() { 1205 if (_persistence == null) { 1206 _persistence = (JournalTemplatePersistence)PortalBeanLocatorUtil.locate(JournalTemplatePersistence.class.getName()); 1207 } 1208 1209 return _persistence; 1210 } 1211 1212 public void setPersistence(JournalTemplatePersistence persistence) { 1213 _persistence = persistence; 1214 } 1215 1216 private static JournalTemplatePersistence _persistence; 1217 }