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