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.JournalStructure; 020 021 /** 022 * The persistence interface for the journal structure 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 JournalStructurePersistenceImpl 030 * @see JournalStructureUtil 031 * @generated 032 */ 033 public interface JournalStructurePersistence extends BasePersistence<JournalStructure> { 034 /* 035 * NOTE FOR DEVELOPERS: 036 * 037 * Never modify or reference this interface directly. Always use {@link JournalStructureUtil} to access the journal structure persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 038 */ 039 040 /** 041 * Caches the journal structure in the entity cache if it is enabled. 042 * 043 * @param journalStructure the journal structure 044 */ 045 public void cacheResult( 046 com.liferay.portlet.journal.model.JournalStructure journalStructure); 047 048 /** 049 * Caches the journal structures in the entity cache if it is enabled. 050 * 051 * @param journalStructures the journal structures 052 */ 053 public void cacheResult( 054 java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures); 055 056 /** 057 * Creates a new journal structure with the primary key. Does not add the journal structure to the database. 058 * 059 * @param id the primary key for the new journal structure 060 * @return the new journal structure 061 */ 062 public com.liferay.portlet.journal.model.JournalStructure create(long id); 063 064 /** 065 * Removes the journal structure with the primary key from the database. Also notifies the appropriate model listeners. 066 * 067 * @param id the primary key of the journal structure 068 * @return the journal structure that was removed 069 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 070 * @throws SystemException if a system exception occurred 071 */ 072 public com.liferay.portlet.journal.model.JournalStructure remove(long id) 073 throws com.liferay.portal.kernel.exception.SystemException, 074 com.liferay.portlet.journal.NoSuchStructureException; 075 076 public com.liferay.portlet.journal.model.JournalStructure updateImpl( 077 com.liferay.portlet.journal.model.JournalStructure journalStructure, 078 boolean merge) 079 throws com.liferay.portal.kernel.exception.SystemException; 080 081 /** 082 * Returns the journal structure with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 083 * 084 * @param id the primary key of the journal structure 085 * @return the journal structure 086 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 087 * @throws SystemException if a system exception occurred 088 */ 089 public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey( 090 long id) 091 throws com.liferay.portal.kernel.exception.SystemException, 092 com.liferay.portlet.journal.NoSuchStructureException; 093 094 /** 095 * Returns the journal structure with the primary key or returns <code>null</code> if it could not be found. 096 * 097 * @param id the primary key of the journal structure 098 * @return the journal structure, or <code>null</code> if a journal structure with the primary key could not be found 099 * @throws SystemException if a system exception occurred 100 */ 101 public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey( 102 long id) throws com.liferay.portal.kernel.exception.SystemException; 103 104 /** 105 * Returns all the journal structures where uuid = ?. 106 * 107 * @param uuid the uuid 108 * @return the matching journal structures 109 * @throws SystemException if a system exception occurred 110 */ 111 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 112 java.lang.String uuid) 113 throws com.liferay.portal.kernel.exception.SystemException; 114 115 /** 116 * Returns a range of all the journal structures where uuid = ?. 117 * 118 * <p> 119 * 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. 120 * </p> 121 * 122 * @param uuid the uuid 123 * @param start the lower bound of the range of journal structures 124 * @param end the upper bound of the range of journal structures (not inclusive) 125 * @return the range of matching journal structures 126 * @throws SystemException if a system exception occurred 127 */ 128 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 129 java.lang.String uuid, int start, int end) 130 throws com.liferay.portal.kernel.exception.SystemException; 131 132 /** 133 * Returns an ordered range of all the journal structures where uuid = ?. 134 * 135 * <p> 136 * 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. 137 * </p> 138 * 139 * @param uuid the uuid 140 * @param start the lower bound of the range of journal structures 141 * @param end the upper bound of the range of journal structures (not inclusive) 142 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 143 * @return the ordered range of matching journal structures 144 * @throws SystemException if a system exception occurred 145 */ 146 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 147 java.lang.String uuid, int start, int end, 148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 149 throws com.liferay.portal.kernel.exception.SystemException; 150 151 /** 152 * Returns the first journal structure in the ordered set where uuid = ?. 153 * 154 * @param uuid the uuid 155 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 156 * @return the first matching journal structure 157 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 158 * @throws SystemException if a system exception occurred 159 */ 160 public com.liferay.portlet.journal.model.JournalStructure findByUuid_First( 161 java.lang.String uuid, 162 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 163 throws com.liferay.portal.kernel.exception.SystemException, 164 com.liferay.portlet.journal.NoSuchStructureException; 165 166 /** 167 * Returns the first journal structure in the ordered set where uuid = ?. 168 * 169 * @param uuid the uuid 170 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 171 * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found 172 * @throws SystemException if a system exception occurred 173 */ 174 public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_First( 175 java.lang.String uuid, 176 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 177 throws com.liferay.portal.kernel.exception.SystemException; 178 179 /** 180 * Returns the last journal structure in the ordered set where uuid = ?. 181 * 182 * @param uuid the uuid 183 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 184 * @return the last matching journal structure 185 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 186 * @throws SystemException if a system exception occurred 187 */ 188 public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last( 189 java.lang.String uuid, 190 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 191 throws com.liferay.portal.kernel.exception.SystemException, 192 com.liferay.portlet.journal.NoSuchStructureException; 193 194 /** 195 * Returns the last journal structure in the ordered set where uuid = ?. 196 * 197 * @param uuid the uuid 198 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 199 * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found 200 * @throws SystemException if a system exception occurred 201 */ 202 public com.liferay.portlet.journal.model.JournalStructure fetchByUuid_Last( 203 java.lang.String uuid, 204 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 205 throws com.liferay.portal.kernel.exception.SystemException; 206 207 /** 208 * Returns the journal structures before and after the current journal structure in the ordered set where uuid = ?. 209 * 210 * @param id the primary key of the current journal structure 211 * @param uuid the uuid 212 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 213 * @return the previous, current, and next journal structure 214 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 215 * @throws SystemException if a system exception occurred 216 */ 217 public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext( 218 long id, java.lang.String uuid, 219 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 220 throws com.liferay.portal.kernel.exception.SystemException, 221 com.liferay.portlet.journal.NoSuchStructureException; 222 223 /** 224 * Returns the journal structure where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 225 * 226 * @param uuid the uuid 227 * @param groupId the group ID 228 * @return the matching journal structure 229 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 230 * @throws SystemException if a system exception occurred 231 */ 232 public com.liferay.portlet.journal.model.JournalStructure findByUUID_G( 233 java.lang.String uuid, long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException, 235 com.liferay.portlet.journal.NoSuchStructureException; 236 237 /** 238 * Returns the journal structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 239 * 240 * @param uuid the uuid 241 * @param groupId the group ID 242 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 243 * @throws SystemException if a system exception occurred 244 */ 245 public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G( 246 java.lang.String uuid, long groupId) 247 throws com.liferay.portal.kernel.exception.SystemException; 248 249 /** 250 * Returns the journal structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 251 * 252 * @param uuid the uuid 253 * @param groupId the group ID 254 * @param retrieveFromCache whether to use the finder cache 255 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 256 * @throws SystemException if a system exception occurred 257 */ 258 public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G( 259 java.lang.String uuid, long groupId, boolean retrieveFromCache) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Returns all the journal structures where groupId = ?. 264 * 265 * @param groupId the group ID 266 * @return the matching journal structures 267 * @throws SystemException if a system exception occurred 268 */ 269 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 270 long groupId) 271 throws com.liferay.portal.kernel.exception.SystemException; 272 273 /** 274 * Returns a range of all the journal structures where groupId = ?. 275 * 276 * <p> 277 * 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. 278 * </p> 279 * 280 * @param groupId the group ID 281 * @param start the lower bound of the range of journal structures 282 * @param end the upper bound of the range of journal structures (not inclusive) 283 * @return the range of matching journal structures 284 * @throws SystemException if a system exception occurred 285 */ 286 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 287 long groupId, int start, int end) 288 throws com.liferay.portal.kernel.exception.SystemException; 289 290 /** 291 * Returns an ordered range of all the journal structures where groupId = ?. 292 * 293 * <p> 294 * 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. 295 * </p> 296 * 297 * @param groupId the group ID 298 * @param start the lower bound of the range of journal structures 299 * @param end the upper bound of the range of journal structures (not inclusive) 300 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 301 * @return the ordered range of matching journal structures 302 * @throws SystemException if a system exception occurred 303 */ 304 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 305 long groupId, int start, int end, 306 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 307 throws com.liferay.portal.kernel.exception.SystemException; 308 309 /** 310 * Returns the first journal structure in the ordered set where groupId = ?. 311 * 312 * @param groupId the group ID 313 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 314 * @return the first matching journal structure 315 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 316 * @throws SystemException if a system exception occurred 317 */ 318 public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First( 319 long groupId, 320 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 321 throws com.liferay.portal.kernel.exception.SystemException, 322 com.liferay.portlet.journal.NoSuchStructureException; 323 324 /** 325 * Returns the first journal structure in the ordered set where groupId = ?. 326 * 327 * @param groupId the group ID 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found 330 * @throws SystemException if a system exception occurred 331 */ 332 public com.liferay.portlet.journal.model.JournalStructure fetchByGroupId_First( 333 long groupId, 334 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 335 throws com.liferay.portal.kernel.exception.SystemException; 336 337 /** 338 * Returns the last journal structure in the ordered set where groupId = ?. 339 * 340 * @param groupId the group ID 341 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 342 * @return the last matching journal structure 343 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 344 * @throws SystemException if a system exception occurred 345 */ 346 public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last( 347 long groupId, 348 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 349 throws com.liferay.portal.kernel.exception.SystemException, 350 com.liferay.portlet.journal.NoSuchStructureException; 351 352 /** 353 * Returns the last journal structure in the ordered set where groupId = ?. 354 * 355 * @param groupId the group ID 356 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 357 * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found 358 * @throws SystemException if a system exception occurred 359 */ 360 public com.liferay.portlet.journal.model.JournalStructure fetchByGroupId_Last( 361 long groupId, 362 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 363 throws com.liferay.portal.kernel.exception.SystemException; 364 365 /** 366 * Returns the journal structures before and after the current journal structure in the ordered set where groupId = ?. 367 * 368 * @param id the primary key of the current journal structure 369 * @param groupId the group ID 370 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 371 * @return the previous, current, and next journal structure 372 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 373 * @throws SystemException if a system exception occurred 374 */ 375 public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext( 376 long id, long groupId, 377 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 378 throws com.liferay.portal.kernel.exception.SystemException, 379 com.liferay.portlet.journal.NoSuchStructureException; 380 381 /** 382 * Returns all the journal structures that the user has permission to view where groupId = ?. 383 * 384 * @param groupId the group ID 385 * @return the matching journal structures that the user has permission to view 386 * @throws SystemException if a system exception occurred 387 */ 388 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 389 long groupId) 390 throws com.liferay.portal.kernel.exception.SystemException; 391 392 /** 393 * Returns a range of all the journal structures that the user has permission to view where groupId = ?. 394 * 395 * <p> 396 * 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. 397 * </p> 398 * 399 * @param groupId the group ID 400 * @param start the lower bound of the range of journal structures 401 * @param end the upper bound of the range of journal structures (not inclusive) 402 * @return the range of matching journal structures that the user has permission to view 403 * @throws SystemException if a system exception occurred 404 */ 405 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 406 long groupId, int start, int end) 407 throws com.liferay.portal.kernel.exception.SystemException; 408 409 /** 410 * Returns an ordered range of all the journal structures that the user has permissions to view where groupId = ?. 411 * 412 * <p> 413 * 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. 414 * </p> 415 * 416 * @param groupId the group ID 417 * @param start the lower bound of the range of journal structures 418 * @param end the upper bound of the range of journal structures (not inclusive) 419 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 420 * @return the ordered range of matching journal structures that the user has permission to view 421 * @throws SystemException if a system exception occurred 422 */ 423 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 424 long groupId, int start, int end, 425 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 426 throws com.liferay.portal.kernel.exception.SystemException; 427 428 /** 429 * Returns the journal structures before and after the current journal structure in the ordered set of journal structures that the user has permission to view where groupId = ?. 430 * 431 * @param id the primary key of the current journal structure 432 * @param groupId the group ID 433 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 434 * @return the previous, current, and next journal structure 435 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 436 * @throws SystemException if a system exception occurred 437 */ 438 public com.liferay.portlet.journal.model.JournalStructure[] filterFindByGroupId_PrevAndNext( 439 long id, long groupId, 440 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 441 throws com.liferay.portal.kernel.exception.SystemException, 442 com.liferay.portlet.journal.NoSuchStructureException; 443 444 /** 445 * Returns all the journal structures where structureId = ?. 446 * 447 * @param structureId the structure ID 448 * @return the matching journal structures 449 * @throws SystemException if a system exception occurred 450 */ 451 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 452 java.lang.String structureId) 453 throws com.liferay.portal.kernel.exception.SystemException; 454 455 /** 456 * Returns a range of all the journal structures where structureId = ?. 457 * 458 * <p> 459 * 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. 460 * </p> 461 * 462 * @param structureId the structure ID 463 * @param start the lower bound of the range of journal structures 464 * @param end the upper bound of the range of journal structures (not inclusive) 465 * @return the range of matching journal structures 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 469 java.lang.String structureId, int start, int end) 470 throws com.liferay.portal.kernel.exception.SystemException; 471 472 /** 473 * Returns an ordered range of all the journal structures where structureId = ?. 474 * 475 * <p> 476 * 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. 477 * </p> 478 * 479 * @param structureId the structure ID 480 * @param start the lower bound of the range of journal structures 481 * @param end the upper bound of the range of journal structures (not inclusive) 482 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 483 * @return the ordered range of matching journal structures 484 * @throws SystemException if a system exception occurred 485 */ 486 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 487 java.lang.String structureId, int start, int end, 488 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 489 throws com.liferay.portal.kernel.exception.SystemException; 490 491 /** 492 * Returns the first journal structure in the ordered set where structureId = ?. 493 * 494 * @param structureId the structure ID 495 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 496 * @return the first matching journal structure 497 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 498 * @throws SystemException if a system exception occurred 499 */ 500 public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First( 501 java.lang.String structureId, 502 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 503 throws com.liferay.portal.kernel.exception.SystemException, 504 com.liferay.portlet.journal.NoSuchStructureException; 505 506 /** 507 * Returns the first journal structure in the ordered set where structureId = ?. 508 * 509 * @param structureId the structure ID 510 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 511 * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found 512 * @throws SystemException if a system exception occurred 513 */ 514 public com.liferay.portlet.journal.model.JournalStructure fetchByStructureId_First( 515 java.lang.String structureId, 516 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 517 throws com.liferay.portal.kernel.exception.SystemException; 518 519 /** 520 * Returns the last journal structure in the ordered set where structureId = ?. 521 * 522 * @param structureId the structure ID 523 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 524 * @return the last matching journal structure 525 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last( 529 java.lang.String structureId, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.kernel.exception.SystemException, 532 com.liferay.portlet.journal.NoSuchStructureException; 533 534 /** 535 * Returns the last journal structure in the ordered set where structureId = ?. 536 * 537 * @param structureId the structure ID 538 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 539 * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found 540 * @throws SystemException if a system exception occurred 541 */ 542 public com.liferay.portlet.journal.model.JournalStructure fetchByStructureId_Last( 543 java.lang.String structureId, 544 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 545 throws com.liferay.portal.kernel.exception.SystemException; 546 547 /** 548 * Returns the journal structures before and after the current journal structure in the ordered set where structureId = ?. 549 * 550 * @param id the primary key of the current journal structure 551 * @param structureId the structure ID 552 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 553 * @return the previous, current, and next journal structure 554 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 555 * @throws SystemException if a system exception occurred 556 */ 557 public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext( 558 long id, java.lang.String structureId, 559 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 560 throws com.liferay.portal.kernel.exception.SystemException, 561 com.liferay.portlet.journal.NoSuchStructureException; 562 563 /** 564 * Returns all the journal structures where parentStructureId = ?. 565 * 566 * @param parentStructureId the parent structure ID 567 * @return the matching journal structures 568 * @throws SystemException if a system exception occurred 569 */ 570 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId( 571 java.lang.String parentStructureId) 572 throws com.liferay.portal.kernel.exception.SystemException; 573 574 /** 575 * Returns a range of all the journal structures where parentStructureId = ?. 576 * 577 * <p> 578 * 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. 579 * </p> 580 * 581 * @param parentStructureId the parent structure ID 582 * @param start the lower bound of the range of journal structures 583 * @param end the upper bound of the range of journal structures (not inclusive) 584 * @return the range of matching journal structures 585 * @throws SystemException if a system exception occurred 586 */ 587 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId( 588 java.lang.String parentStructureId, int start, int end) 589 throws com.liferay.portal.kernel.exception.SystemException; 590 591 /** 592 * Returns an ordered range of all the journal structures where parentStructureId = ?. 593 * 594 * <p> 595 * 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. 596 * </p> 597 * 598 * @param parentStructureId the parent structure ID 599 * @param start the lower bound of the range of journal structures 600 * @param end the upper bound of the range of journal structures (not inclusive) 601 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 602 * @return the ordered range of matching journal structures 603 * @throws SystemException if a system exception occurred 604 */ 605 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByParentStructureId( 606 java.lang.String parentStructureId, int start, int end, 607 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 608 throws com.liferay.portal.kernel.exception.SystemException; 609 610 /** 611 * Returns the first journal structure in the ordered set where parentStructureId = ?. 612 * 613 * @param parentStructureId the parent structure ID 614 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 615 * @return the first matching journal structure 616 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 617 * @throws SystemException if a system exception occurred 618 */ 619 public com.liferay.portlet.journal.model.JournalStructure findByParentStructureId_First( 620 java.lang.String parentStructureId, 621 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 622 throws com.liferay.portal.kernel.exception.SystemException, 623 com.liferay.portlet.journal.NoSuchStructureException; 624 625 /** 626 * Returns the first journal structure in the ordered set where parentStructureId = ?. 627 * 628 * @param parentStructureId the parent structure ID 629 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 630 * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found 631 * @throws SystemException if a system exception occurred 632 */ 633 public com.liferay.portlet.journal.model.JournalStructure fetchByParentStructureId_First( 634 java.lang.String parentStructureId, 635 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 636 throws com.liferay.portal.kernel.exception.SystemException; 637 638 /** 639 * Returns the last journal structure in the ordered set where parentStructureId = ?. 640 * 641 * @param parentStructureId the parent structure ID 642 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 643 * @return the last matching journal structure 644 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portlet.journal.model.JournalStructure findByParentStructureId_Last( 648 java.lang.String parentStructureId, 649 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 650 throws com.liferay.portal.kernel.exception.SystemException, 651 com.liferay.portlet.journal.NoSuchStructureException; 652 653 /** 654 * Returns the last journal structure in the ordered set where parentStructureId = ?. 655 * 656 * @param parentStructureId the parent structure ID 657 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 658 * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found 659 * @throws SystemException if a system exception occurred 660 */ 661 public com.liferay.portlet.journal.model.JournalStructure fetchByParentStructureId_Last( 662 java.lang.String parentStructureId, 663 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 664 throws com.liferay.portal.kernel.exception.SystemException; 665 666 /** 667 * Returns the journal structures before and after the current journal structure in the ordered set where parentStructureId = ?. 668 * 669 * @param id the primary key of the current journal structure 670 * @param parentStructureId the parent structure ID 671 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 672 * @return the previous, current, and next journal structure 673 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 674 * @throws SystemException if a system exception occurred 675 */ 676 public com.liferay.portlet.journal.model.JournalStructure[] findByParentStructureId_PrevAndNext( 677 long id, java.lang.String parentStructureId, 678 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 679 throws com.liferay.portal.kernel.exception.SystemException, 680 com.liferay.portlet.journal.NoSuchStructureException; 681 682 /** 683 * Returns the journal structure where groupId = ? and structureId = ? or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 684 * 685 * @param groupId the group ID 686 * @param structureId the structure ID 687 * @return the matching journal structure 688 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 689 * @throws SystemException if a system exception occurred 690 */ 691 public com.liferay.portlet.journal.model.JournalStructure findByG_S( 692 long groupId, java.lang.String structureId) 693 throws com.liferay.portal.kernel.exception.SystemException, 694 com.liferay.portlet.journal.NoSuchStructureException; 695 696 /** 697 * Returns the journal structure where groupId = ? and structureId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 698 * 699 * @param groupId the group ID 700 * @param structureId the structure ID 701 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 702 * @throws SystemException if a system exception occurred 703 */ 704 public com.liferay.portlet.journal.model.JournalStructure fetchByG_S( 705 long groupId, java.lang.String structureId) 706 throws com.liferay.portal.kernel.exception.SystemException; 707 708 /** 709 * Returns the journal structure where groupId = ? and structureId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 710 * 711 * @param groupId the group ID 712 * @param structureId the structure ID 713 * @param retrieveFromCache whether to use the finder cache 714 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 715 * @throws SystemException if a system exception occurred 716 */ 717 public com.liferay.portlet.journal.model.JournalStructure fetchByG_S( 718 long groupId, java.lang.String structureId, boolean retrieveFromCache) 719 throws com.liferay.portal.kernel.exception.SystemException; 720 721 /** 722 * Returns all the journal structures where groupId = ? and parentStructureId = ?. 723 * 724 * @param groupId the group ID 725 * @param parentStructureId the parent structure ID 726 * @return the matching journal structures 727 * @throws SystemException if a system exception occurred 728 */ 729 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 730 long groupId, java.lang.String parentStructureId) 731 throws com.liferay.portal.kernel.exception.SystemException; 732 733 /** 734 * Returns a range of all the journal structures where groupId = ? and parentStructureId = ?. 735 * 736 * <p> 737 * 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. 738 * </p> 739 * 740 * @param groupId the group ID 741 * @param parentStructureId the parent structure ID 742 * @param start the lower bound of the range of journal structures 743 * @param end the upper bound of the range of journal structures (not inclusive) 744 * @return the range of matching journal structures 745 * @throws SystemException if a system exception occurred 746 */ 747 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 748 long groupId, java.lang.String parentStructureId, int start, int end) 749 throws com.liferay.portal.kernel.exception.SystemException; 750 751 /** 752 * Returns an ordered range of all the journal structures where groupId = ? and parentStructureId = ?. 753 * 754 * <p> 755 * 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. 756 * </p> 757 * 758 * @param groupId the group ID 759 * @param parentStructureId the parent structure ID 760 * @param start the lower bound of the range of journal structures 761 * @param end the upper bound of the range of journal structures (not inclusive) 762 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 763 * @return the ordered range of matching journal structures 764 * @throws SystemException if a system exception occurred 765 */ 766 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 767 long groupId, java.lang.String parentStructureId, int start, int end, 768 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 769 throws com.liferay.portal.kernel.exception.SystemException; 770 771 /** 772 * Returns the first journal structure in the ordered set where groupId = ? and parentStructureId = ?. 773 * 774 * @param groupId the group ID 775 * @param parentStructureId the parent structure ID 776 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 777 * @return the first matching journal structure 778 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 779 * @throws SystemException if a system exception occurred 780 */ 781 public com.liferay.portlet.journal.model.JournalStructure findByG_P_First( 782 long groupId, java.lang.String parentStructureId, 783 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 784 throws com.liferay.portal.kernel.exception.SystemException, 785 com.liferay.portlet.journal.NoSuchStructureException; 786 787 /** 788 * Returns the first journal structure in the ordered set where groupId = ? and parentStructureId = ?. 789 * 790 * @param groupId the group ID 791 * @param parentStructureId the parent structure ID 792 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 793 * @return the first matching journal structure, or <code>null</code> if a matching journal structure could not be found 794 * @throws SystemException if a system exception occurred 795 */ 796 public com.liferay.portlet.journal.model.JournalStructure fetchByG_P_First( 797 long groupId, java.lang.String parentStructureId, 798 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 799 throws com.liferay.portal.kernel.exception.SystemException; 800 801 /** 802 * Returns the last journal structure in the ordered set where groupId = ? and parentStructureId = ?. 803 * 804 * @param groupId the group ID 805 * @param parentStructureId the parent structure ID 806 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 807 * @return the last matching journal structure 808 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 809 * @throws SystemException if a system exception occurred 810 */ 811 public com.liferay.portlet.journal.model.JournalStructure findByG_P_Last( 812 long groupId, java.lang.String parentStructureId, 813 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 814 throws com.liferay.portal.kernel.exception.SystemException, 815 com.liferay.portlet.journal.NoSuchStructureException; 816 817 /** 818 * Returns the last journal structure in the ordered set where groupId = ? and parentStructureId = ?. 819 * 820 * @param groupId the group ID 821 * @param parentStructureId the parent structure ID 822 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 823 * @return the last matching journal structure, or <code>null</code> if a matching journal structure could not be found 824 * @throws SystemException if a system exception occurred 825 */ 826 public com.liferay.portlet.journal.model.JournalStructure fetchByG_P_Last( 827 long groupId, java.lang.String parentStructureId, 828 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 829 throws com.liferay.portal.kernel.exception.SystemException; 830 831 /** 832 * Returns the journal structures before and after the current journal structure in the ordered set where groupId = ? and parentStructureId = ?. 833 * 834 * @param id the primary key of the current journal structure 835 * @param groupId the group ID 836 * @param parentStructureId the parent structure ID 837 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 838 * @return the previous, current, and next journal structure 839 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 840 * @throws SystemException if a system exception occurred 841 */ 842 public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext( 843 long id, long groupId, java.lang.String parentStructureId, 844 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 845 throws com.liferay.portal.kernel.exception.SystemException, 846 com.liferay.portlet.journal.NoSuchStructureException; 847 848 /** 849 * Returns all the journal structures that the user has permission to view where groupId = ? and parentStructureId = ?. 850 * 851 * @param groupId the group ID 852 * @param parentStructureId the parent structure ID 853 * @return the matching journal structures that the user has permission to view 854 * @throws SystemException if a system exception occurred 855 */ 856 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 857 long groupId, java.lang.String parentStructureId) 858 throws com.liferay.portal.kernel.exception.SystemException; 859 860 /** 861 * Returns a range of all the journal structures that the user has permission to view where groupId = ? and parentStructureId = ?. 862 * 863 * <p> 864 * 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. 865 * </p> 866 * 867 * @param groupId the group ID 868 * @param parentStructureId the parent structure ID 869 * @param start the lower bound of the range of journal structures 870 * @param end the upper bound of the range of journal structures (not inclusive) 871 * @return the range of matching journal structures that the user has permission to view 872 * @throws SystemException if a system exception occurred 873 */ 874 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 875 long groupId, java.lang.String parentStructureId, int start, int end) 876 throws com.liferay.portal.kernel.exception.SystemException; 877 878 /** 879 * Returns an ordered range of all the journal structures that the user has permissions to view where groupId = ? and parentStructureId = ?. 880 * 881 * <p> 882 * 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. 883 * </p> 884 * 885 * @param groupId the group ID 886 * @param parentStructureId the parent structure ID 887 * @param start the lower bound of the range of journal structures 888 * @param end the upper bound of the range of journal structures (not inclusive) 889 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 890 * @return the ordered range of matching journal structures that the user has permission to view 891 * @throws SystemException if a system exception occurred 892 */ 893 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 894 long groupId, java.lang.String parentStructureId, int start, int end, 895 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 896 throws com.liferay.portal.kernel.exception.SystemException; 897 898 /** 899 * Returns the journal structures before and after the current journal structure in the ordered set of journal structures that the user has permission to view where groupId = ? and parentStructureId = ?. 900 * 901 * @param id the primary key of the current journal structure 902 * @param groupId the group ID 903 * @param parentStructureId the parent structure ID 904 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 905 * @return the previous, current, and next journal structure 906 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 907 * @throws SystemException if a system exception occurred 908 */ 909 public com.liferay.portlet.journal.model.JournalStructure[] filterFindByG_P_PrevAndNext( 910 long id, long groupId, java.lang.String parentStructureId, 911 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 912 throws com.liferay.portal.kernel.exception.SystemException, 913 com.liferay.portlet.journal.NoSuchStructureException; 914 915 /** 916 * Returns all the journal structures. 917 * 918 * @return the journal structures 919 * @throws SystemException if a system exception occurred 920 */ 921 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll() 922 throws com.liferay.portal.kernel.exception.SystemException; 923 924 /** 925 * Returns a range of all the journal structures. 926 * 927 * <p> 928 * 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. 929 * </p> 930 * 931 * @param start the lower bound of the range of journal structures 932 * @param end the upper bound of the range of journal structures (not inclusive) 933 * @return the range of journal structures 934 * @throws SystemException if a system exception occurred 935 */ 936 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll( 937 int start, int end) 938 throws com.liferay.portal.kernel.exception.SystemException; 939 940 /** 941 * Returns an ordered range of all the journal structures. 942 * 943 * <p> 944 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 945 * </p> 946 * 947 * @param start the lower bound of the range of journal structures 948 * @param end the upper bound of the range of journal structures (not inclusive) 949 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 950 * @return the ordered range of journal structures 951 * @throws SystemException if a system exception occurred 952 */ 953 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll( 954 int start, int end, 955 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 956 throws com.liferay.portal.kernel.exception.SystemException; 957 958 /** 959 * Removes all the journal structures where uuid = ? from the database. 960 * 961 * @param uuid the uuid 962 * @throws SystemException if a system exception occurred 963 */ 964 public void removeByUuid(java.lang.String uuid) 965 throws com.liferay.portal.kernel.exception.SystemException; 966 967 /** 968 * Removes the journal structure where uuid = ? and groupId = ? from the database. 969 * 970 * @param uuid the uuid 971 * @param groupId the group ID 972 * @return the journal structure that was removed 973 * @throws SystemException if a system exception occurred 974 */ 975 public com.liferay.portlet.journal.model.JournalStructure removeByUUID_G( 976 java.lang.String uuid, long groupId) 977 throws com.liferay.portal.kernel.exception.SystemException, 978 com.liferay.portlet.journal.NoSuchStructureException; 979 980 /** 981 * Removes all the journal structures where groupId = ? from the database. 982 * 983 * @param groupId the group ID 984 * @throws SystemException if a system exception occurred 985 */ 986 public void removeByGroupId(long groupId) 987 throws com.liferay.portal.kernel.exception.SystemException; 988 989 /** 990 * Removes all the journal structures where structureId = ? from the database. 991 * 992 * @param structureId the structure ID 993 * @throws SystemException if a system exception occurred 994 */ 995 public void removeByStructureId(java.lang.String structureId) 996 throws com.liferay.portal.kernel.exception.SystemException; 997 998 /** 999 * Removes all the journal structures where parentStructureId = ? from the database. 1000 * 1001 * @param parentStructureId the parent structure ID 1002 * @throws SystemException if a system exception occurred 1003 */ 1004 public void removeByParentStructureId(java.lang.String parentStructureId) 1005 throws com.liferay.portal.kernel.exception.SystemException; 1006 1007 /** 1008 * Removes the journal structure where groupId = ? and structureId = ? from the database. 1009 * 1010 * @param groupId the group ID 1011 * @param structureId the structure ID 1012 * @return the journal structure that was removed 1013 * @throws SystemException if a system exception occurred 1014 */ 1015 public com.liferay.portlet.journal.model.JournalStructure removeByG_S( 1016 long groupId, java.lang.String structureId) 1017 throws com.liferay.portal.kernel.exception.SystemException, 1018 com.liferay.portlet.journal.NoSuchStructureException; 1019 1020 /** 1021 * Removes all the journal structures where groupId = ? and parentStructureId = ? from the database. 1022 * 1023 * @param groupId the group ID 1024 * @param parentStructureId the parent structure ID 1025 * @throws SystemException if a system exception occurred 1026 */ 1027 public void removeByG_P(long groupId, java.lang.String parentStructureId) 1028 throws com.liferay.portal.kernel.exception.SystemException; 1029 1030 /** 1031 * Removes all the journal structures from the database. 1032 * 1033 * @throws SystemException if a system exception occurred 1034 */ 1035 public void removeAll() 1036 throws com.liferay.portal.kernel.exception.SystemException; 1037 1038 /** 1039 * Returns the number of journal structures where uuid = ?. 1040 * 1041 * @param uuid the uuid 1042 * @return the number of matching journal structures 1043 * @throws SystemException if a system exception occurred 1044 */ 1045 public int countByUuid(java.lang.String uuid) 1046 throws com.liferay.portal.kernel.exception.SystemException; 1047 1048 /** 1049 * Returns the number of journal structures where uuid = ? and groupId = ?. 1050 * 1051 * @param uuid the uuid 1052 * @param groupId the group ID 1053 * @return the number of matching journal structures 1054 * @throws SystemException if a system exception occurred 1055 */ 1056 public int countByUUID_G(java.lang.String uuid, long groupId) 1057 throws com.liferay.portal.kernel.exception.SystemException; 1058 1059 /** 1060 * Returns the number of journal structures where groupId = ?. 1061 * 1062 * @param groupId the group ID 1063 * @return the number of matching journal structures 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public int countByGroupId(long groupId) 1067 throws com.liferay.portal.kernel.exception.SystemException; 1068 1069 /** 1070 * Returns the number of journal structures that the user has permission to view where groupId = ?. 1071 * 1072 * @param groupId the group ID 1073 * @return the number of matching journal structures that the user has permission to view 1074 * @throws SystemException if a system exception occurred 1075 */ 1076 public int filterCountByGroupId(long groupId) 1077 throws com.liferay.portal.kernel.exception.SystemException; 1078 1079 /** 1080 * Returns the number of journal structures where structureId = ?. 1081 * 1082 * @param structureId the structure ID 1083 * @return the number of matching journal structures 1084 * @throws SystemException if a system exception occurred 1085 */ 1086 public int countByStructureId(java.lang.String structureId) 1087 throws com.liferay.portal.kernel.exception.SystemException; 1088 1089 /** 1090 * Returns the number of journal structures where parentStructureId = ?. 1091 * 1092 * @param parentStructureId the parent structure ID 1093 * @return the number of matching journal structures 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public int countByParentStructureId(java.lang.String parentStructureId) 1097 throws com.liferay.portal.kernel.exception.SystemException; 1098 1099 /** 1100 * Returns the number of journal structures where groupId = ? and structureId = ?. 1101 * 1102 * @param groupId the group ID 1103 * @param structureId the structure ID 1104 * @return the number of matching journal structures 1105 * @throws SystemException if a system exception occurred 1106 */ 1107 public int countByG_S(long groupId, java.lang.String structureId) 1108 throws com.liferay.portal.kernel.exception.SystemException; 1109 1110 /** 1111 * Returns the number of journal structures where groupId = ? and parentStructureId = ?. 1112 * 1113 * @param groupId the group ID 1114 * @param parentStructureId the parent structure ID 1115 * @return the number of matching journal structures 1116 * @throws SystemException if a system exception occurred 1117 */ 1118 public int countByG_P(long groupId, java.lang.String parentStructureId) 1119 throws com.liferay.portal.kernel.exception.SystemException; 1120 1121 /** 1122 * Returns the number of journal structures that the user has permission to view where groupId = ? and parentStructureId = ?. 1123 * 1124 * @param groupId the group ID 1125 * @param parentStructureId the parent structure ID 1126 * @return the number of matching journal structures that the user has permission to view 1127 * @throws SystemException if a system exception occurred 1128 */ 1129 public int filterCountByG_P(long groupId, java.lang.String parentStructureId) 1130 throws com.liferay.portal.kernel.exception.SystemException; 1131 1132 /** 1133 * Returns the number of journal structures. 1134 * 1135 * @return the number of journal structures 1136 * @throws SystemException if a system exception occurred 1137 */ 1138 public int countAll() 1139 throws com.liferay.portal.kernel.exception.SystemException; 1140 }