001 /** 002 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved. 003 * 004 * The contents of this file are subject to the terms of the Liferay Enterprise 005 * Subscription License ("License"). You may not use this file except in 006 * compliance with the License. You can obtain a copy of the License by 007 * contacting Liferay, Inc. See the License for the specific language governing 008 * permissions and limitations under the License, including but not limited to 009 * distribution rights of the Software. 010 * 011 * 012 * 013 */ 014 015 package com.liferay.portlet.journal.service.persistence; 016 017 import com.liferay.portal.kernel.exception.SystemException; 018 import com.liferay.portal.service.persistence.BasePersistence; 019 020 import com.liferay.portlet.journal.model.JournalStructure; 021 022 /** 023 * The persistence interface for the journal structure service. 024 * 025 * <p> 026 * Caching information and settings can be found in <code>portal.properties</code> 027 * </p> 028 * 029 * @author Brian Wing Shun Chan 030 * @see JournalStructurePersistenceImpl 031 * @see JournalStructureUtil 032 * @generated 033 */ 034 public interface JournalStructurePersistence extends BasePersistence<JournalStructure> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * 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. 039 */ 040 041 /** 042 * Caches the journal structure in the entity cache if it is enabled. 043 * 044 * @param journalStructure the journal structure to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.journal.model.JournalStructure journalStructure); 048 049 /** 050 * Caches the journal structures in the entity cache if it is enabled. 051 * 052 * @param journalStructures the journal structures to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.journal.model.JournalStructure> journalStructures); 056 057 /** 058 * Creates a new journal structure with the primary key. Does not add the journal structure to the database. 059 * 060 * @param id the primary key for the new journal structure 061 * @return the new journal structure 062 */ 063 public com.liferay.portlet.journal.model.JournalStructure create(long id); 064 065 /** 066 * Removes the journal structure with the primary key from the database. Also notifies the appropriate model listeners. 067 * 068 * @param id the primary key of the journal structure to remove 069 * @return the journal structure that was removed 070 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 071 * @throws SystemException if a system exception occurred 072 */ 073 public com.liferay.portlet.journal.model.JournalStructure remove(long id) 074 throws com.liferay.portal.kernel.exception.SystemException, 075 com.liferay.portlet.journal.NoSuchStructureException; 076 077 public com.liferay.portlet.journal.model.JournalStructure updateImpl( 078 com.liferay.portlet.journal.model.JournalStructure journalStructure, 079 boolean merge) 080 throws com.liferay.portal.kernel.exception.SystemException; 081 082 /** 083 * Finds the journal structure with the primary key or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 084 * 085 * @param id the primary key of the journal structure to find 086 * @return the journal structure 087 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 088 * @throws SystemException if a system exception occurred 089 */ 090 public com.liferay.portlet.journal.model.JournalStructure findByPrimaryKey( 091 long id) 092 throws com.liferay.portal.kernel.exception.SystemException, 093 com.liferay.portlet.journal.NoSuchStructureException; 094 095 /** 096 * Finds the journal structure with the primary key or returns <code>null</code> if it could not be found. 097 * 098 * @param id the primary key of the journal structure to find 099 * @return the journal structure, or <code>null</code> if a journal structure with the primary key could not be found 100 * @throws SystemException if a system exception occurred 101 */ 102 public com.liferay.portlet.journal.model.JournalStructure fetchByPrimaryKey( 103 long id) throws com.liferay.portal.kernel.exception.SystemException; 104 105 /** 106 * Finds all the journal structures where uuid = ?. 107 * 108 * @param uuid the uuid to search with 109 * @return the matching journal structures 110 * @throws SystemException if a system exception occurred 111 */ 112 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 113 java.lang.String uuid) 114 throws com.liferay.portal.kernel.exception.SystemException; 115 116 /** 117 * Finds a range of all the journal structures where uuid = ?. 118 * 119 * <p> 120 * 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. 121 * </p> 122 * 123 * @param uuid the uuid to search with 124 * @param start the lower bound of the range of journal structures to return 125 * @param end the upper bound of the range of journal structures to return (not inclusive) 126 * @return the range of matching journal structures 127 * @throws SystemException if a system exception occurred 128 */ 129 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 130 java.lang.String uuid, int start, int end) 131 throws com.liferay.portal.kernel.exception.SystemException; 132 133 /** 134 * Finds an ordered range of all the journal structures where uuid = ?. 135 * 136 * <p> 137 * 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. 138 * </p> 139 * 140 * @param uuid the uuid to search with 141 * @param start the lower bound of the range of journal structures to return 142 * @param end the upper bound of the range of journal structures to return (not inclusive) 143 * @param orderByComparator the comparator to order the results by 144 * @return the ordered range of matching journal structures 145 * @throws SystemException if a system exception occurred 146 */ 147 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByUuid( 148 java.lang.String uuid, int start, int end, 149 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 150 throws com.liferay.portal.kernel.exception.SystemException; 151 152 /** 153 * Finds the first journal structure in the ordered set where uuid = ?. 154 * 155 * <p> 156 * 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. 157 * </p> 158 * 159 * @param uuid the uuid to search with 160 * @param orderByComparator the comparator to order the set by 161 * @return the first matching journal structure 162 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 163 * @throws SystemException if a system exception occurred 164 */ 165 public com.liferay.portlet.journal.model.JournalStructure findByUuid_First( 166 java.lang.String uuid, 167 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 168 throws com.liferay.portal.kernel.exception.SystemException, 169 com.liferay.portlet.journal.NoSuchStructureException; 170 171 /** 172 * Finds the last journal structure in the ordered set where uuid = ?. 173 * 174 * <p> 175 * 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. 176 * </p> 177 * 178 * @param uuid the uuid to search with 179 * @param orderByComparator the comparator to order the set by 180 * @return the last matching journal structure 181 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 182 * @throws SystemException if a system exception occurred 183 */ 184 public com.liferay.portlet.journal.model.JournalStructure findByUuid_Last( 185 java.lang.String uuid, 186 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 187 throws com.liferay.portal.kernel.exception.SystemException, 188 com.liferay.portlet.journal.NoSuchStructureException; 189 190 /** 191 * Finds the journal structures before and after the current journal structure in the ordered set where uuid = ?. 192 * 193 * <p> 194 * 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. 195 * </p> 196 * 197 * @param id the primary key of the current journal structure 198 * @param uuid the uuid to search with 199 * @param orderByComparator the comparator to order the set by 200 * @return the previous, current, and next journal structure 201 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 202 * @throws SystemException if a system exception occurred 203 */ 204 public com.liferay.portlet.journal.model.JournalStructure[] findByUuid_PrevAndNext( 205 long id, java.lang.String uuid, 206 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 207 throws com.liferay.portal.kernel.exception.SystemException, 208 com.liferay.portlet.journal.NoSuchStructureException; 209 210 /** 211 * Finds the journal structure where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 212 * 213 * @param uuid the uuid to search with 214 * @param groupId the group ID to search with 215 * @return the matching journal structure 216 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 217 * @throws SystemException if a system exception occurred 218 */ 219 public com.liferay.portlet.journal.model.JournalStructure findByUUID_G( 220 java.lang.String uuid, long groupId) 221 throws com.liferay.portal.kernel.exception.SystemException, 222 com.liferay.portlet.journal.NoSuchStructureException; 223 224 /** 225 * Finds the journal structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 226 * 227 * @param uuid the uuid to search with 228 * @param groupId the group ID to search with 229 * @return the matching journal structure, or <code>null</code> 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 fetchByUUID_G( 233 java.lang.String uuid, long groupId) 234 throws com.liferay.portal.kernel.exception.SystemException; 235 236 /** 237 * Finds the journal structure where uuid = ? and groupId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 238 * 239 * @param uuid the uuid to search with 240 * @param groupId the group ID to search with 241 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 242 * @throws SystemException if a system exception occurred 243 */ 244 public com.liferay.portlet.journal.model.JournalStructure fetchByUUID_G( 245 java.lang.String uuid, long groupId, boolean retrieveFromCache) 246 throws com.liferay.portal.kernel.exception.SystemException; 247 248 /** 249 * Finds all the journal structures where groupId = ?. 250 * 251 * @param groupId the group ID to search with 252 * @return the matching journal structures 253 * @throws SystemException if a system exception occurred 254 */ 255 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 256 long groupId) 257 throws com.liferay.portal.kernel.exception.SystemException; 258 259 /** 260 * Finds a range of all the journal structures where groupId = ?. 261 * 262 * <p> 263 * 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. 264 * </p> 265 * 266 * @param groupId the group ID to search with 267 * @param start the lower bound of the range of journal structures to return 268 * @param end the upper bound of the range of journal structures to return (not inclusive) 269 * @return the range of matching journal structures 270 * @throws SystemException if a system exception occurred 271 */ 272 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 273 long groupId, int start, int end) 274 throws com.liferay.portal.kernel.exception.SystemException; 275 276 /** 277 * Finds an ordered range of all the journal structures where groupId = ?. 278 * 279 * <p> 280 * 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. 281 * </p> 282 * 283 * @param groupId the group ID to search with 284 * @param start the lower bound of the range of journal structures to return 285 * @param end the upper bound of the range of journal structures to return (not inclusive) 286 * @param orderByComparator the comparator to order the results by 287 * @return the ordered range of matching journal structures 288 * @throws SystemException if a system exception occurred 289 */ 290 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByGroupId( 291 long groupId, int start, int end, 292 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 293 throws com.liferay.portal.kernel.exception.SystemException; 294 295 /** 296 * Finds the first journal structure in the ordered set where groupId = ?. 297 * 298 * <p> 299 * 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. 300 * </p> 301 * 302 * @param groupId the group ID to search with 303 * @param orderByComparator the comparator to order the set by 304 * @return the first matching journal structure 305 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 306 * @throws SystemException if a system exception occurred 307 */ 308 public com.liferay.portlet.journal.model.JournalStructure findByGroupId_First( 309 long groupId, 310 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 311 throws com.liferay.portal.kernel.exception.SystemException, 312 com.liferay.portlet.journal.NoSuchStructureException; 313 314 /** 315 * Finds the last journal structure in the ordered set where groupId = ?. 316 * 317 * <p> 318 * 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. 319 * </p> 320 * 321 * @param groupId the group ID to search with 322 * @param orderByComparator the comparator to order the set by 323 * @return the last matching journal structure 324 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 325 * @throws SystemException if a system exception occurred 326 */ 327 public com.liferay.portlet.journal.model.JournalStructure findByGroupId_Last( 328 long groupId, 329 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 330 throws com.liferay.portal.kernel.exception.SystemException, 331 com.liferay.portlet.journal.NoSuchStructureException; 332 333 /** 334 * Finds the journal structures before and after the current journal structure in the ordered set where groupId = ?. 335 * 336 * <p> 337 * 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. 338 * </p> 339 * 340 * @param id the primary key of the current journal structure 341 * @param groupId the group ID to search with 342 * @param orderByComparator the comparator to order the set by 343 * @return the previous, current, and next journal structure 344 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 345 * @throws SystemException if a system exception occurred 346 */ 347 public com.liferay.portlet.journal.model.JournalStructure[] findByGroupId_PrevAndNext( 348 long id, long groupId, 349 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 350 throws com.liferay.portal.kernel.exception.SystemException, 351 com.liferay.portlet.journal.NoSuchStructureException; 352 353 /** 354 * Filters by the user's permissions and finds all the journal structures where groupId = ?. 355 * 356 * @param groupId the group ID to search with 357 * @return the matching journal structures that the user has permission to view 358 * @throws SystemException if a system exception occurred 359 */ 360 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 361 long groupId) 362 throws com.liferay.portal.kernel.exception.SystemException; 363 364 /** 365 * Filters by the user's permissions and finds a range of all the journal structures where groupId = ?. 366 * 367 * <p> 368 * 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. 369 * </p> 370 * 371 * @param groupId the group ID to search with 372 * @param start the lower bound of the range of journal structures to return 373 * @param end the upper bound of the range of journal structures to return (not inclusive) 374 * @return the range of matching journal structures that the user has permission to view 375 * @throws SystemException if a system exception occurred 376 */ 377 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 378 long groupId, int start, int end) 379 throws com.liferay.portal.kernel.exception.SystemException; 380 381 /** 382 * Filters by the user's permissions and finds an ordered range of all the journal structures where groupId = ?. 383 * 384 * <p> 385 * 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. 386 * </p> 387 * 388 * @param groupId the group ID to search with 389 * @param start the lower bound of the range of journal structures to return 390 * @param end the upper bound of the range of journal structures to return (not inclusive) 391 * @param orderByComparator the comparator to order the results by 392 * @return the ordered range of matching journal structures that the user has permission to view 393 * @throws SystemException if a system exception occurred 394 */ 395 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByGroupId( 396 long groupId, int start, int end, 397 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 398 throws com.liferay.portal.kernel.exception.SystemException; 399 400 /** 401 * Filters the journal structures before and after the current journal structure in the ordered set 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. 405 * </p> 406 * 407 * @param id the primary key of the current journal structure 408 * @param groupId the group ID to search with 409 * @param orderByComparator the comparator to order the set by 410 * @return the previous, current, and next journal structure 411 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 412 * @throws SystemException if a system exception occurred 413 */ 414 public com.liferay.portlet.journal.model.JournalStructure[] filterFindByGroupId_PrevAndNext( 415 long id, long groupId, 416 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 417 throws com.liferay.portal.kernel.exception.SystemException, 418 com.liferay.portlet.journal.NoSuchStructureException; 419 420 /** 421 * Finds all the journal structures where structureId = ?. 422 * 423 * @param structureId the structure ID to search with 424 * @return the matching journal structures 425 * @throws SystemException if a system exception occurred 426 */ 427 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 428 java.lang.String structureId) 429 throws com.liferay.portal.kernel.exception.SystemException; 430 431 /** 432 * Finds a range of all the journal structures where structureId = ?. 433 * 434 * <p> 435 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. 436 * </p> 437 * 438 * @param structureId the structure ID to search with 439 * @param start the lower bound of the range of journal structures to return 440 * @param end the upper bound of the range of journal structures to return (not inclusive) 441 * @return the range of matching journal structures 442 * @throws SystemException if a system exception occurred 443 */ 444 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 445 java.lang.String structureId, int start, int end) 446 throws com.liferay.portal.kernel.exception.SystemException; 447 448 /** 449 * Finds an ordered range of all the journal structures where structureId = ?. 450 * 451 * <p> 452 * 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. 453 * </p> 454 * 455 * @param structureId the structure ID to search with 456 * @param start the lower bound of the range of journal structures to return 457 * @param end the upper bound of the range of journal structures to return (not inclusive) 458 * @param orderByComparator the comparator to order the results by 459 * @return the ordered range of matching journal structures 460 * @throws SystemException if a system exception occurred 461 */ 462 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByStructureId( 463 java.lang.String structureId, int start, int end, 464 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 465 throws com.liferay.portal.kernel.exception.SystemException; 466 467 /** 468 * Finds the first journal structure in the ordered set where structureId = ?. 469 * 470 * <p> 471 * 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. 472 * </p> 473 * 474 * @param structureId the structure ID to search with 475 * @param orderByComparator the comparator to order the set by 476 * @return the first matching journal structure 477 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 478 * @throws SystemException if a system exception occurred 479 */ 480 public com.liferay.portlet.journal.model.JournalStructure findByStructureId_First( 481 java.lang.String structureId, 482 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 483 throws com.liferay.portal.kernel.exception.SystemException, 484 com.liferay.portlet.journal.NoSuchStructureException; 485 486 /** 487 * Finds the last journal structure in the ordered set where structureId = ?. 488 * 489 * <p> 490 * 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. 491 * </p> 492 * 493 * @param structureId the structure ID to search with 494 * @param orderByComparator the comparator to order the set by 495 * @return the last matching journal structure 496 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 497 * @throws SystemException if a system exception occurred 498 */ 499 public com.liferay.portlet.journal.model.JournalStructure findByStructureId_Last( 500 java.lang.String structureId, 501 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 502 throws com.liferay.portal.kernel.exception.SystemException, 503 com.liferay.portlet.journal.NoSuchStructureException; 504 505 /** 506 * Finds the journal structures before and after the current journal structure in the ordered set where structureId = ?. 507 * 508 * <p> 509 * 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. 510 * </p> 511 * 512 * @param id the primary key of the current journal structure 513 * @param structureId the structure ID to search with 514 * @param orderByComparator the comparator to order the set by 515 * @return the previous, current, and next journal structure 516 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 517 * @throws SystemException if a system exception occurred 518 */ 519 public com.liferay.portlet.journal.model.JournalStructure[] findByStructureId_PrevAndNext( 520 long id, java.lang.String structureId, 521 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 522 throws com.liferay.portal.kernel.exception.SystemException, 523 com.liferay.portlet.journal.NoSuchStructureException; 524 525 /** 526 * Finds the journal structure where groupId = ? and structureId = ? or throws a {@link com.liferay.portlet.journal.NoSuchStructureException} if it could not be found. 527 * 528 * @param groupId the group ID to search with 529 * @param structureId the structure ID to search with 530 * @return the matching journal structure 531 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 532 * @throws SystemException if a system exception occurred 533 */ 534 public com.liferay.portlet.journal.model.JournalStructure findByG_S( 535 long groupId, java.lang.String structureId) 536 throws com.liferay.portal.kernel.exception.SystemException, 537 com.liferay.portlet.journal.NoSuchStructureException; 538 539 /** 540 * Finds the journal structure where groupId = ? and structureId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 541 * 542 * @param groupId the group ID to search with 543 * @param structureId the structure ID to search with 544 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 545 * @throws SystemException if a system exception occurred 546 */ 547 public com.liferay.portlet.journal.model.JournalStructure fetchByG_S( 548 long groupId, java.lang.String structureId) 549 throws com.liferay.portal.kernel.exception.SystemException; 550 551 /** 552 * Finds the journal structure where groupId = ? and structureId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 553 * 554 * @param groupId the group ID to search with 555 * @param structureId the structure ID to search with 556 * @return the matching journal structure, or <code>null</code> if a matching journal structure could not be found 557 * @throws SystemException if a system exception occurred 558 */ 559 public com.liferay.portlet.journal.model.JournalStructure fetchByG_S( 560 long groupId, java.lang.String structureId, boolean retrieveFromCache) 561 throws com.liferay.portal.kernel.exception.SystemException; 562 563 /** 564 * Finds all the journal structures where groupId = ? and parentStructureId = ?. 565 * 566 * @param groupId the group ID to search with 567 * @param parentStructureId the parent structure ID to search with 568 * @return the matching journal structures 569 * @throws SystemException if a system exception occurred 570 */ 571 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 572 long groupId, java.lang.String parentStructureId) 573 throws com.liferay.portal.kernel.exception.SystemException; 574 575 /** 576 * Finds a range of all the journal structures where groupId = ? and parentStructureId = ?. 577 * 578 * <p> 579 * 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. 580 * </p> 581 * 582 * @param groupId the group ID to search with 583 * @param parentStructureId the parent structure ID to search with 584 * @param start the lower bound of the range of journal structures to return 585 * @param end the upper bound of the range of journal structures to return (not inclusive) 586 * @return the range of matching journal structures 587 * @throws SystemException if a system exception occurred 588 */ 589 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 590 long groupId, java.lang.String parentStructureId, int start, int end) 591 throws com.liferay.portal.kernel.exception.SystemException; 592 593 /** 594 * Finds an ordered range of all the journal structures where groupId = ? and parentStructureId = ?. 595 * 596 * <p> 597 * 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. 598 * </p> 599 * 600 * @param groupId the group ID to search with 601 * @param parentStructureId the parent structure ID to search with 602 * @param start the lower bound of the range of journal structures to return 603 * @param end the upper bound of the range of journal structures to return (not inclusive) 604 * @param orderByComparator the comparator to order the results by 605 * @return the ordered range of matching journal structures 606 * @throws SystemException if a system exception occurred 607 */ 608 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findByG_P( 609 long groupId, java.lang.String parentStructureId, int start, int end, 610 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 611 throws com.liferay.portal.kernel.exception.SystemException; 612 613 /** 614 * Finds the first journal structure in the ordered set where groupId = ? and parentStructureId = ?. 615 * 616 * <p> 617 * 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. 618 * </p> 619 * 620 * @param groupId the group ID to search with 621 * @param parentStructureId the parent structure ID to search with 622 * @param orderByComparator the comparator to order the set by 623 * @return the first matching journal structure 624 * @throws com.liferay.portlet.journal.NoSuchStructureException if a matching journal structure could not be found 625 * @throws SystemException if a system exception occurred 626 */ 627 public com.liferay.portlet.journal.model.JournalStructure findByG_P_First( 628 long groupId, java.lang.String parentStructureId, 629 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 630 throws com.liferay.portal.kernel.exception.SystemException, 631 com.liferay.portlet.journal.NoSuchStructureException; 632 633 /** 634 * Finds the last journal structure in the ordered set where groupId = ? and parentStructureId = ?. 635 * 636 * <p> 637 * 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. 638 * </p> 639 * 640 * @param groupId the group ID to search with 641 * @param parentStructureId the parent structure ID to search with 642 * @param orderByComparator the comparator to order the set by 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 findByG_P_Last( 648 long groupId, 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 * Finds the journal structures before and after the current journal structure in the ordered set where groupId = ? and parentStructureId = ?. 655 * 656 * <p> 657 * 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. 658 * </p> 659 * 660 * @param id the primary key of the current journal structure 661 * @param groupId the group ID to search with 662 * @param parentStructureId the parent structure ID to search with 663 * @param orderByComparator the comparator to order the set by 664 * @return the previous, current, and next journal structure 665 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 666 * @throws SystemException if a system exception occurred 667 */ 668 public com.liferay.portlet.journal.model.JournalStructure[] findByG_P_PrevAndNext( 669 long id, long groupId, java.lang.String parentStructureId, 670 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 671 throws com.liferay.portal.kernel.exception.SystemException, 672 com.liferay.portlet.journal.NoSuchStructureException; 673 674 /** 675 * Filters by the user's permissions and finds all the journal structures where groupId = ? and parentStructureId = ?. 676 * 677 * @param groupId the group ID to search with 678 * @param parentStructureId the parent structure ID to search with 679 * @return the matching journal structures that the user has permission to view 680 * @throws SystemException if a system exception occurred 681 */ 682 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 683 long groupId, java.lang.String parentStructureId) 684 throws com.liferay.portal.kernel.exception.SystemException; 685 686 /** 687 * Filters by the user's permissions and finds a range of all the journal structures where groupId = ? and parentStructureId = ?. 688 * 689 * <p> 690 * 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. 691 * </p> 692 * 693 * @param groupId the group ID to search with 694 * @param parentStructureId the parent structure ID to search with 695 * @param start the lower bound of the range of journal structures to return 696 * @param end the upper bound of the range of journal structures to return (not inclusive) 697 * @return the range of matching journal structures that the user has permission to view 698 * @throws SystemException if a system exception occurred 699 */ 700 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 701 long groupId, java.lang.String parentStructureId, int start, int end) 702 throws com.liferay.portal.kernel.exception.SystemException; 703 704 /** 705 * Filters by the user's permissions and finds an ordered range of all the journal structures where groupId = ? and parentStructureId = ?. 706 * 707 * <p> 708 * 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. 709 * </p> 710 * 711 * @param groupId the group ID to search with 712 * @param parentStructureId the parent structure ID to search with 713 * @param start the lower bound of the range of journal structures to return 714 * @param end the upper bound of the range of journal structures to return (not inclusive) 715 * @param orderByComparator the comparator to order the results by 716 * @return the ordered range of matching journal structures that the user has permission to view 717 * @throws SystemException if a system exception occurred 718 */ 719 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> filterFindByG_P( 720 long groupId, java.lang.String parentStructureId, int start, int end, 721 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 722 throws com.liferay.portal.kernel.exception.SystemException; 723 724 /** 725 * Filters the journal structures before and after the current journal structure in the ordered set where groupId = ? and parentStructureId = ?. 726 * 727 * <p> 728 * 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. 729 * </p> 730 * 731 * @param id the primary key of the current journal structure 732 * @param groupId the group ID to search with 733 * @param parentStructureId the parent structure ID to search with 734 * @param orderByComparator the comparator to order the set by 735 * @return the previous, current, and next journal structure 736 * @throws com.liferay.portlet.journal.NoSuchStructureException if a journal structure with the primary key could not be found 737 * @throws SystemException if a system exception occurred 738 */ 739 public com.liferay.portlet.journal.model.JournalStructure[] filterFindByG_P_PrevAndNext( 740 long id, long groupId, java.lang.String parentStructureId, 741 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 742 throws com.liferay.portal.kernel.exception.SystemException, 743 com.liferay.portlet.journal.NoSuchStructureException; 744 745 /** 746 * Finds all the journal structures. 747 * 748 * @return the journal structures 749 * @throws SystemException if a system exception occurred 750 */ 751 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll() 752 throws com.liferay.portal.kernel.exception.SystemException; 753 754 /** 755 * Finds a range of all the journal structures. 756 * 757 * <p> 758 * 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. 759 * </p> 760 * 761 * @param start the lower bound of the range of journal structures to return 762 * @param end the upper bound of the range of journal structures to return (not inclusive) 763 * @return the range of journal structures 764 * @throws SystemException if a system exception occurred 765 */ 766 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll( 767 int start, int end) 768 throws com.liferay.portal.kernel.exception.SystemException; 769 770 /** 771 * Finds an ordered range of all the journal structures. 772 * 773 * <p> 774 * 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. 775 * </p> 776 * 777 * @param start the lower bound of the range of journal structures to return 778 * @param end the upper bound of the range of journal structures to return (not inclusive) 779 * @param orderByComparator the comparator to order the results by 780 * @return the ordered range of journal structures 781 * @throws SystemException if a system exception occurred 782 */ 783 public java.util.List<com.liferay.portlet.journal.model.JournalStructure> findAll( 784 int start, int end, 785 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 786 throws com.liferay.portal.kernel.exception.SystemException; 787 788 /** 789 * Removes all the journal structures where uuid = ? from the database. 790 * 791 * @param uuid the uuid to search with 792 * @throws SystemException if a system exception occurred 793 */ 794 public void removeByUuid(java.lang.String uuid) 795 throws com.liferay.portal.kernel.exception.SystemException; 796 797 /** 798 * Removes the journal structure where uuid = ? and groupId = ? from the database. 799 * 800 * @param uuid the uuid to search with 801 * @param groupId the group ID to search with 802 * @throws SystemException if a system exception occurred 803 */ 804 public void removeByUUID_G(java.lang.String uuid, long groupId) 805 throws com.liferay.portal.kernel.exception.SystemException, 806 com.liferay.portlet.journal.NoSuchStructureException; 807 808 /** 809 * Removes all the journal structures where groupId = ? from the database. 810 * 811 * @param groupId the group ID to search with 812 * @throws SystemException if a system exception occurred 813 */ 814 public void removeByGroupId(long groupId) 815 throws com.liferay.portal.kernel.exception.SystemException; 816 817 /** 818 * Removes all the journal structures where structureId = ? from the database. 819 * 820 * @param structureId the structure ID to search with 821 * @throws SystemException if a system exception occurred 822 */ 823 public void removeByStructureId(java.lang.String structureId) 824 throws com.liferay.portal.kernel.exception.SystemException; 825 826 /** 827 * Removes the journal structure where groupId = ? and structureId = ? from the database. 828 * 829 * @param groupId the group ID to search with 830 * @param structureId the structure ID to search with 831 * @throws SystemException if a system exception occurred 832 */ 833 public void removeByG_S(long groupId, java.lang.String structureId) 834 throws com.liferay.portal.kernel.exception.SystemException, 835 com.liferay.portlet.journal.NoSuchStructureException; 836 837 /** 838 * Removes all the journal structures where groupId = ? and parentStructureId = ? from the database. 839 * 840 * @param groupId the group ID to search with 841 * @param parentStructureId the parent structure ID to search with 842 * @throws SystemException if a system exception occurred 843 */ 844 public void removeByG_P(long groupId, java.lang.String parentStructureId) 845 throws com.liferay.portal.kernel.exception.SystemException; 846 847 /** 848 * Removes all the journal structures from the database. 849 * 850 * @throws SystemException if a system exception occurred 851 */ 852 public void removeAll() 853 throws com.liferay.portal.kernel.exception.SystemException; 854 855 /** 856 * Counts all the journal structures where uuid = ?. 857 * 858 * @param uuid the uuid to search with 859 * @return the number of matching journal structures 860 * @throws SystemException if a system exception occurred 861 */ 862 public int countByUuid(java.lang.String uuid) 863 throws com.liferay.portal.kernel.exception.SystemException; 864 865 /** 866 * Counts all the journal structures where uuid = ? and groupId = ?. 867 * 868 * @param uuid the uuid to search with 869 * @param groupId the group ID to search with 870 * @return the number of matching journal structures 871 * @throws SystemException if a system exception occurred 872 */ 873 public int countByUUID_G(java.lang.String uuid, long groupId) 874 throws com.liferay.portal.kernel.exception.SystemException; 875 876 /** 877 * Counts all the journal structures where groupId = ?. 878 * 879 * @param groupId the group ID to search with 880 * @return the number of matching journal structures 881 * @throws SystemException if a system exception occurred 882 */ 883 public int countByGroupId(long groupId) 884 throws com.liferay.portal.kernel.exception.SystemException; 885 886 /** 887 * Filters by the user's permissions and counts all the journal structures where groupId = ?. 888 * 889 * @param groupId the group ID to search with 890 * @return the number of matching journal structures that the user has permission to view 891 * @throws SystemException if a system exception occurred 892 */ 893 public int filterCountByGroupId(long groupId) 894 throws com.liferay.portal.kernel.exception.SystemException; 895 896 /** 897 * Counts all the journal structures where structureId = ?. 898 * 899 * @param structureId the structure ID to search with 900 * @return the number of matching journal structures 901 * @throws SystemException if a system exception occurred 902 */ 903 public int countByStructureId(java.lang.String structureId) 904 throws com.liferay.portal.kernel.exception.SystemException; 905 906 /** 907 * Counts all the journal structures where groupId = ? and structureId = ?. 908 * 909 * @param groupId the group ID to search with 910 * @param structureId the structure ID to search with 911 * @return the number of matching journal structures 912 * @throws SystemException if a system exception occurred 913 */ 914 public int countByG_S(long groupId, java.lang.String structureId) 915 throws com.liferay.portal.kernel.exception.SystemException; 916 917 /** 918 * Counts all the journal structures where groupId = ? and parentStructureId = ?. 919 * 920 * @param groupId the group ID to search with 921 * @param parentStructureId the parent structure ID to search with 922 * @return the number of matching journal structures 923 * @throws SystemException if a system exception occurred 924 */ 925 public int countByG_P(long groupId, java.lang.String parentStructureId) 926 throws com.liferay.portal.kernel.exception.SystemException; 927 928 /** 929 * Filters by the user's permissions and counts all the journal structures where groupId = ? and parentStructureId = ?. 930 * 931 * @param groupId the group ID to search with 932 * @param parentStructureId the parent structure ID to search with 933 * @return the number of matching journal structures that the user has permission to view 934 * @throws SystemException if a system exception occurred 935 */ 936 public int filterCountByG_P(long groupId, java.lang.String parentStructureId) 937 throws com.liferay.portal.kernel.exception.SystemException; 938 939 /** 940 * Counts all the journal structures. 941 * 942 * @return the number of journal structures 943 * @throws SystemException if a system exception occurred 944 */ 945 public int countAll() 946 throws com.liferay.portal.kernel.exception.SystemException; 947 948 public JournalStructure remove(JournalStructure journalStructure) 949 throws SystemException; 950 }