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