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