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.BookmarksEntry; 021 022 /** 023 * The persistence interface for the bookmarks entry 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 BookmarksEntryPersistenceImpl 031 * @see BookmarksEntryUtil 032 * @generated 033 */ 034 public interface BookmarksEntryPersistence extends BasePersistence<BookmarksEntry> { 035 /* 036 * NOTE FOR DEVELOPERS: 037 * 038 * Never modify or reference this interface directly. Always use {@link BookmarksEntryUtil} to access the bookmarks entry persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 039 */ 040 041 /** 042 * Caches the bookmarks entry in the entity cache if it is enabled. 043 * 044 * @param bookmarksEntry the bookmarks entry to cache 045 */ 046 public void cacheResult( 047 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry); 048 049 /** 050 * Caches the bookmarks entries in the entity cache if it is enabled. 051 * 052 * @param bookmarksEntries the bookmarks entries to cache 053 */ 054 public void cacheResult( 055 java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> bookmarksEntries); 056 057 /** 058 * Creates a new bookmarks entry with the primary key. Does not add the bookmarks entry to the database. 059 * 060 * @param entryId the primary key for the new bookmarks entry 061 * @return the new bookmarks entry 062 */ 063 public com.liferay.portlet.bookmarks.model.BookmarksEntry create( 064 long entryId); 065 066 /** 067 * Removes the bookmarks entry with the primary key from the database. Also notifies the appropriate model listeners. 068 * 069 * @param entryId the primary key of the bookmarks entry to remove 070 * @return the bookmarks entry that was removed 071 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 072 * @throws SystemException if a system exception occurred 073 */ 074 public com.liferay.portlet.bookmarks.model.BookmarksEntry remove( 075 long entryId) 076 throws com.liferay.portal.kernel.exception.SystemException, 077 com.liferay.portlet.bookmarks.NoSuchEntryException; 078 079 public com.liferay.portlet.bookmarks.model.BookmarksEntry updateImpl( 080 com.liferay.portlet.bookmarks.model.BookmarksEntry bookmarksEntry, 081 boolean merge) 082 throws com.liferay.portal.kernel.exception.SystemException; 083 084 /** 085 * Finds the bookmarks entry with the primary key or throws a {@link com.liferay.portlet.bookmarks.NoSuchEntryException} if it could not be found. 086 * 087 * @param entryId the primary key of the bookmarks entry to find 088 * @return the bookmarks entry 089 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 090 * @throws SystemException if a system exception occurred 091 */ 092 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByPrimaryKey( 093 long entryId) 094 throws com.liferay.portal.kernel.exception.SystemException, 095 com.liferay.portlet.bookmarks.NoSuchEntryException; 096 097 /** 098 * Finds the bookmarks entry with the primary key or returns <code>null</code> if it could not be found. 099 * 100 * @param entryId the primary key of the bookmarks entry to find 101 * @return the bookmarks entry, or <code>null</code> if a bookmarks entry with the primary key could not be found 102 * @throws SystemException if a system exception occurred 103 */ 104 public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByPrimaryKey( 105 long entryId) 106 throws com.liferay.portal.kernel.exception.SystemException; 107 108 /** 109 * Finds all the bookmarks entries where uuid = ?. 110 * 111 * @param uuid the uuid to search with 112 * @return the matching bookmarks entries 113 * @throws SystemException if a system exception occurred 114 */ 115 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByUuid( 116 java.lang.String uuid) 117 throws com.liferay.portal.kernel.exception.SystemException; 118 119 /** 120 * Finds a range of all the bookmarks entries 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 entries to return 128 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 129 * @return the range of matching bookmarks entries 130 * @throws SystemException if a system exception occurred 131 */ 132 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> 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 entries 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 entries to return 145 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 146 * @param orderByComparator the comparator to order the results by 147 * @return the ordered range of matching bookmarks entries 148 * @throws SystemException if a system exception occurred 149 */ 150 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> 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 entry 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 entry 165 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 166 * @throws SystemException if a system exception occurred 167 */ 168 public com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException; 173 174 /** 175 * Finds the last bookmarks entry 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 entry 184 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 185 * @throws SystemException if a system exception occurred 186 */ 187 public com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException; 192 193 /** 194 * Finds the bookmarks entries before and after the current bookmarks entry 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 entryId the primary key of the current bookmarks entry 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 entry 204 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 205 * @throws SystemException if a system exception occurred 206 */ 207 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByUuid_PrevAndNext( 208 long entryId, 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.NoSuchEntryException; 212 213 /** 214 * Finds the bookmarks entry where uuid = ? and groupId = ? or throws a {@link com.liferay.portlet.bookmarks.NoSuchEntryException} 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 entry 219 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 220 * @throws SystemException if a system exception occurred 221 */ 222 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByUUID_G( 223 java.lang.String uuid, long groupId) 224 throws com.liferay.portal.kernel.exception.SystemException, 225 com.liferay.portlet.bookmarks.NoSuchEntryException; 226 227 /** 228 * Finds the bookmarks entry 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 entry, or <code>null</code> if a matching bookmarks entry could not be found 233 * @throws SystemException if a system exception occurred 234 */ 235 public com.liferay.portlet.bookmarks.model.BookmarksEntry fetchByUUID_G( 236 java.lang.String uuid, long groupId) 237 throws com.liferay.portal.kernel.exception.SystemException; 238 239 /** 240 * Finds the bookmarks entry 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 entry, or <code>null</code> if a matching bookmarks entry could not be found 245 * @throws SystemException if a system exception occurred 246 */ 247 public com.liferay.portlet.bookmarks.model.BookmarksEntry 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 entries where groupId = ?. 253 * 254 * @param groupId the group ID to search with 255 * @return the matching bookmarks entries 256 * @throws SystemException if a system exception occurred 257 */ 258 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByGroupId( 259 long groupId) 260 throws com.liferay.portal.kernel.exception.SystemException; 261 262 /** 263 * Finds a range of all the bookmarks entries 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 entries to return 271 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 272 * @return the range of matching bookmarks entries 273 * @throws SystemException if a system exception occurred 274 */ 275 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> 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 entries 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 entries to return 288 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 289 * @param orderByComparator the comparator to order the results by 290 * @return the ordered range of matching bookmarks entries 291 * @throws SystemException if a system exception occurred 292 */ 293 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> 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 entry 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 entry 308 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 309 * @throws SystemException if a system exception occurred 310 */ 311 public com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException; 316 317 /** 318 * Finds the last bookmarks entry 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 entry 327 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 328 * @throws SystemException if a system exception occurred 329 */ 330 public com.liferay.portlet.bookmarks.model.BookmarksEntry 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.NoSuchEntryException; 335 336 /** 337 * Finds the bookmarks entries before and after the current bookmarks entry 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 entryId the primary key of the current bookmarks entry 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 entry 347 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 348 * @throws SystemException if a system exception occurred 349 */ 350 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByGroupId_PrevAndNext( 351 long entryId, long groupId, 352 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 353 throws com.liferay.portal.kernel.exception.SystemException, 354 com.liferay.portlet.bookmarks.NoSuchEntryException; 355 356 /** 357 * Filters by the user's permissions and finds all the bookmarks entries where groupId = ?. 358 * 359 * @param groupId the group ID to search with 360 * @return the matching bookmarks entries 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.BookmarksEntry> 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 entries 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 entries to return 376 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 377 * @return the range of matching bookmarks entries 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.BookmarksEntry> 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 entries 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 entries to return 393 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 394 * @param orderByComparator the comparator to order the results by 395 * @return the ordered range of matching bookmarks entries 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.BookmarksEntry> 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 entries before and after the current bookmarks entry 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 entryId the primary key of the current bookmarks entry 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 entry 414 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 415 * @throws SystemException if a system exception occurred 416 */ 417 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] filterFindByGroupId_PrevAndNext( 418 long entryId, long groupId, 419 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 420 throws com.liferay.portal.kernel.exception.SystemException, 421 com.liferay.portlet.bookmarks.NoSuchEntryException; 422 423 /** 424 * Finds all the bookmarks entries where groupId = ? and userId = ?. 425 * 426 * @param groupId the group ID to search with 427 * @param userId the user ID to search with 428 * @return the matching bookmarks entries 429 * @throws SystemException if a system exception occurred 430 */ 431 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U( 432 long groupId, long userId) 433 throws com.liferay.portal.kernel.exception.SystemException; 434 435 /** 436 * Finds a range of all the bookmarks entries where groupId = ? and userId = ?. 437 * 438 * <p> 439 * 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. 440 * </p> 441 * 442 * @param groupId the group ID to search with 443 * @param userId the user ID to search with 444 * @param start the lower bound of the range of bookmarks entries to return 445 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 446 * @return the range of matching bookmarks entries 447 * @throws SystemException if a system exception occurred 448 */ 449 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U( 450 long groupId, long userId, int start, int end) 451 throws com.liferay.portal.kernel.exception.SystemException; 452 453 /** 454 * Finds an ordered range of all the bookmarks entries where groupId = ? and userId = ?. 455 * 456 * <p> 457 * 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. 458 * </p> 459 * 460 * @param groupId the group ID to search with 461 * @param userId the user ID to search with 462 * @param start the lower bound of the range of bookmarks entries to return 463 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 464 * @param orderByComparator the comparator to order the results by 465 * @return the ordered range of matching bookmarks entries 466 * @throws SystemException if a system exception occurred 467 */ 468 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_U( 469 long groupId, long userId, int start, int end, 470 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 471 throws com.liferay.portal.kernel.exception.SystemException; 472 473 /** 474 * Finds the first bookmarks entry in the ordered set where groupId = ? and userId = ?. 475 * 476 * <p> 477 * 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. 478 * </p> 479 * 480 * @param groupId the group ID to search with 481 * @param userId the user ID to search with 482 * @param orderByComparator the comparator to order the set by 483 * @return the first matching bookmarks entry 484 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 485 * @throws SystemException if a system exception occurred 486 */ 487 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_First( 488 long groupId, long userId, 489 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 490 throws com.liferay.portal.kernel.exception.SystemException, 491 com.liferay.portlet.bookmarks.NoSuchEntryException; 492 493 /** 494 * Finds the last bookmarks entry in the ordered set where groupId = ? and userId = ?. 495 * 496 * <p> 497 * 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. 498 * </p> 499 * 500 * @param groupId the group ID to search with 501 * @param userId the user ID to search with 502 * @param orderByComparator the comparator to order the set by 503 * @return the last matching bookmarks entry 504 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 505 * @throws SystemException if a system exception occurred 506 */ 507 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_U_Last( 508 long groupId, long userId, 509 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 510 throws com.liferay.portal.kernel.exception.SystemException, 511 com.liferay.portlet.bookmarks.NoSuchEntryException; 512 513 /** 514 * Finds the bookmarks entries before and after the current bookmarks entry in the ordered set where groupId = ? and userId = ?. 515 * 516 * <p> 517 * 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. 518 * </p> 519 * 520 * @param entryId the primary key of the current bookmarks entry 521 * @param groupId the group ID to search with 522 * @param userId the user ID to search with 523 * @param orderByComparator the comparator to order the set by 524 * @return the previous, current, and next bookmarks entry 525 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 526 * @throws SystemException if a system exception occurred 527 */ 528 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_U_PrevAndNext( 529 long entryId, long groupId, long userId, 530 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 531 throws com.liferay.portal.kernel.exception.SystemException, 532 com.liferay.portlet.bookmarks.NoSuchEntryException; 533 534 /** 535 * Filters by the user's permissions and finds all the bookmarks entries where groupId = ? and userId = ?. 536 * 537 * @param groupId the group ID to search with 538 * @param userId the user ID to search with 539 * @return the matching bookmarks entries that the user has permission to view 540 * @throws SystemException if a system exception occurred 541 */ 542 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U( 543 long groupId, long userId) 544 throws com.liferay.portal.kernel.exception.SystemException; 545 546 /** 547 * Filters by the user's permissions and finds a range of all the bookmarks entries where groupId = ? and userId = ?. 548 * 549 * <p> 550 * 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. 551 * </p> 552 * 553 * @param groupId the group ID to search with 554 * @param userId the user ID to search with 555 * @param start the lower bound of the range of bookmarks entries to return 556 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 557 * @return the range of matching bookmarks entries that the user has permission to view 558 * @throws SystemException if a system exception occurred 559 */ 560 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U( 561 long groupId, long userId, int start, int end) 562 throws com.liferay.portal.kernel.exception.SystemException; 563 564 /** 565 * Filters by the user's permissions and finds an ordered range of all the bookmarks entries where groupId = ? and userId = ?. 566 * 567 * <p> 568 * 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. 569 * </p> 570 * 571 * @param groupId the group ID to search with 572 * @param userId the user ID to search with 573 * @param start the lower bound of the range of bookmarks entries to return 574 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 575 * @param orderByComparator the comparator to order the results by 576 * @return the ordered range of matching bookmarks entries that the user has permission to view 577 * @throws SystemException if a system exception occurred 578 */ 579 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_U( 580 long groupId, long userId, int start, int end, 581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 582 throws com.liferay.portal.kernel.exception.SystemException; 583 584 /** 585 * Filters the bookmarks entries before and after the current bookmarks entry in the ordered set where groupId = ? and userId = ?. 586 * 587 * <p> 588 * 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. 589 * </p> 590 * 591 * @param entryId the primary key of the current bookmarks entry 592 * @param groupId the group ID to search with 593 * @param userId the user ID to search with 594 * @param orderByComparator the comparator to order the set by 595 * @return the previous, current, and next bookmarks entry 596 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 597 * @throws SystemException if a system exception occurred 598 */ 599 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] filterFindByG_U_PrevAndNext( 600 long entryId, long groupId, long userId, 601 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 602 throws com.liferay.portal.kernel.exception.SystemException, 603 com.liferay.portlet.bookmarks.NoSuchEntryException; 604 605 /** 606 * Finds all the bookmarks entries where groupId = ? and folderId = ?. 607 * 608 * @param groupId the group ID to search with 609 * @param folderId the folder ID to search with 610 * @return the matching bookmarks entries 611 * @throws SystemException if a system exception occurred 612 */ 613 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 614 long groupId, long folderId) 615 throws com.liferay.portal.kernel.exception.SystemException; 616 617 /** 618 * Finds a range of all the bookmarks entries where groupId = ? and folderId = ?. 619 * 620 * <p> 621 * 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. 622 * </p> 623 * 624 * @param groupId the group ID to search with 625 * @param folderId the folder ID to search with 626 * @param start the lower bound of the range of bookmarks entries to return 627 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 628 * @return the range of matching bookmarks entries 629 * @throws SystemException if a system exception occurred 630 */ 631 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 632 long groupId, long folderId, int start, int end) 633 throws com.liferay.portal.kernel.exception.SystemException; 634 635 /** 636 * Finds an ordered range of all the bookmarks entries where groupId = ? and folderId = ?. 637 * 638 * <p> 639 * 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. 640 * </p> 641 * 642 * @param groupId the group ID to search with 643 * @param folderId the folder ID to search with 644 * @param start the lower bound of the range of bookmarks entries to return 645 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 646 * @param orderByComparator the comparator to order the results by 647 * @return the ordered range of matching bookmarks entries 648 * @throws SystemException if a system exception occurred 649 */ 650 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 651 long groupId, long folderId, int start, int end, 652 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 653 throws com.liferay.portal.kernel.exception.SystemException; 654 655 /** 656 * Finds the first bookmarks entry in the ordered set where groupId = ? and folderId = ?. 657 * 658 * <p> 659 * 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. 660 * </p> 661 * 662 * @param groupId the group ID to search with 663 * @param folderId the folder ID to search with 664 * @param orderByComparator the comparator to order the set by 665 * @return the first matching bookmarks entry 666 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 667 * @throws SystemException if a system exception occurred 668 */ 669 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_First( 670 long groupId, long folderId, 671 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 672 throws com.liferay.portal.kernel.exception.SystemException, 673 com.liferay.portlet.bookmarks.NoSuchEntryException; 674 675 /** 676 * Finds the last bookmarks entry in the ordered set where groupId = ? and folderId = ?. 677 * 678 * <p> 679 * 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. 680 * </p> 681 * 682 * @param groupId the group ID to search with 683 * @param folderId the folder ID to search with 684 * @param orderByComparator the comparator to order the set by 685 * @return the last matching bookmarks entry 686 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a matching bookmarks entry could not be found 687 * @throws SystemException if a system exception occurred 688 */ 689 public com.liferay.portlet.bookmarks.model.BookmarksEntry findByG_F_Last( 690 long groupId, long folderId, 691 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 692 throws com.liferay.portal.kernel.exception.SystemException, 693 com.liferay.portlet.bookmarks.NoSuchEntryException; 694 695 /** 696 * Finds the bookmarks entries before and after the current bookmarks entry in the ordered set where groupId = ? and folderId = ?. 697 * 698 * <p> 699 * 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. 700 * </p> 701 * 702 * @param entryId the primary key of the current bookmarks entry 703 * @param groupId the group ID to search with 704 * @param folderId the folder ID to search with 705 * @param orderByComparator the comparator to order the set by 706 * @return the previous, current, and next bookmarks entry 707 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 708 * @throws SystemException if a system exception occurred 709 */ 710 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] findByG_F_PrevAndNext( 711 long entryId, long groupId, long folderId, 712 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 713 throws com.liferay.portal.kernel.exception.SystemException, 714 com.liferay.portlet.bookmarks.NoSuchEntryException; 715 716 /** 717 * Finds all the bookmarks entries where groupId = ? and folderId = any ?. 718 * 719 * <p> 720 * 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. 721 * </p> 722 * 723 * @param groupId the group ID to search with 724 * @param folderIds the folder IDs to search with 725 * @return the matching bookmarks entries 726 * @throws SystemException if a system exception occurred 727 */ 728 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 729 long groupId, long[] folderIds) 730 throws com.liferay.portal.kernel.exception.SystemException; 731 732 /** 733 * Finds a range of all the bookmarks entries where groupId = ? and folderId = any ?. 734 * 735 * <p> 736 * 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. 737 * </p> 738 * 739 * @param groupId the group ID to search with 740 * @param folderIds the folder IDs to search with 741 * @param start the lower bound of the range of bookmarks entries to return 742 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 743 * @return the range of matching bookmarks entries 744 * @throws SystemException if a system exception occurred 745 */ 746 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 747 long groupId, long[] folderIds, int start, int end) 748 throws com.liferay.portal.kernel.exception.SystemException; 749 750 /** 751 * Finds an ordered range of all the bookmarks entries where groupId = ? and folderId = any ?. 752 * 753 * <p> 754 * 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. 755 * </p> 756 * 757 * @param groupId the group ID to search with 758 * @param folderIds the folder IDs to search with 759 * @param start the lower bound of the range of bookmarks entries to return 760 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 761 * @param orderByComparator the comparator to order the results by 762 * @return the ordered range of matching bookmarks entries 763 * @throws SystemException if a system exception occurred 764 */ 765 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findByG_F( 766 long groupId, long[] folderIds, int start, int end, 767 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 768 throws com.liferay.portal.kernel.exception.SystemException; 769 770 /** 771 * Filters by the user's permissions and finds all the bookmarks entries where groupId = ? and folderId = ?. 772 * 773 * @param groupId the group ID to search with 774 * @param folderId the folder ID to search with 775 * @return the matching bookmarks entries that the user has permission to view 776 * @throws SystemException if a system exception occurred 777 */ 778 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 779 long groupId, long folderId) 780 throws com.liferay.portal.kernel.exception.SystemException; 781 782 /** 783 * Filters by the user's permissions and finds a range of all the bookmarks entries where groupId = ? and folderId = ?. 784 * 785 * <p> 786 * 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. 787 * </p> 788 * 789 * @param groupId the group ID to search with 790 * @param folderId the folder ID to search with 791 * @param start the lower bound of the range of bookmarks entries to return 792 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 793 * @return the range of matching bookmarks entries that the user has permission to view 794 * @throws SystemException if a system exception occurred 795 */ 796 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 797 long groupId, long folderId, int start, int end) 798 throws com.liferay.portal.kernel.exception.SystemException; 799 800 /** 801 * Filters by the user's permissions and finds an ordered range of all the bookmarks entries where groupId = ? and folderId = ?. 802 * 803 * <p> 804 * 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. 805 * </p> 806 * 807 * @param groupId the group ID to search with 808 * @param folderId the folder ID to search with 809 * @param start the lower bound of the range of bookmarks entries to return 810 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 811 * @param orderByComparator the comparator to order the results by 812 * @return the ordered range of matching bookmarks entries that the user has permission to view 813 * @throws SystemException if a system exception occurred 814 */ 815 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 816 long groupId, long folderId, int start, int end, 817 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 818 throws com.liferay.portal.kernel.exception.SystemException; 819 820 /** 821 * Filters the bookmarks entries before and after the current bookmarks entry in the ordered set where groupId = ? and folderId = ?. 822 * 823 * <p> 824 * 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. 825 * </p> 826 * 827 * @param entryId the primary key of the current bookmarks entry 828 * @param groupId the group ID to search with 829 * @param folderId the folder ID to search with 830 * @param orderByComparator the comparator to order the set by 831 * @return the previous, current, and next bookmarks entry 832 * @throws com.liferay.portlet.bookmarks.NoSuchEntryException if a bookmarks entry with the primary key could not be found 833 * @throws SystemException if a system exception occurred 834 */ 835 public com.liferay.portlet.bookmarks.model.BookmarksEntry[] filterFindByG_F_PrevAndNext( 836 long entryId, long groupId, long folderId, 837 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 838 throws com.liferay.portal.kernel.exception.SystemException, 839 com.liferay.portlet.bookmarks.NoSuchEntryException; 840 841 /** 842 * Filters by the user's permissions and finds all the bookmarks entries where groupId = ? and folderId = any ?. 843 * 844 * <p> 845 * 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. 846 * </p> 847 * 848 * @param groupId the group ID to search with 849 * @param folderIds the folder IDs to search with 850 * @return the matching bookmarks entries that the user has permission to view 851 * @throws SystemException if a system exception occurred 852 */ 853 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 854 long groupId, long[] folderIds) 855 throws com.liferay.portal.kernel.exception.SystemException; 856 857 /** 858 * Filters by the user's permissions and finds a range of all the bookmarks entries where groupId = ? and folderId = any ?. 859 * 860 * <p> 861 * 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. 862 * </p> 863 * 864 * @param groupId the group ID to search with 865 * @param folderIds the folder IDs to search with 866 * @param start the lower bound of the range of bookmarks entries to return 867 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 868 * @return the range of matching bookmarks entries that the user has permission to view 869 * @throws SystemException if a system exception occurred 870 */ 871 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 872 long groupId, long[] folderIds, int start, int end) 873 throws com.liferay.portal.kernel.exception.SystemException; 874 875 /** 876 * Filters by the user's permissions and finds an ordered range of all the bookmarks entries where groupId = ? and folderId = any ?. 877 * 878 * <p> 879 * 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. 880 * </p> 881 * 882 * @param groupId the group ID to search with 883 * @param folderIds the folder IDs to search with 884 * @param start the lower bound of the range of bookmarks entries to return 885 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 886 * @param orderByComparator the comparator to order the results by 887 * @return the ordered range of matching bookmarks entries that the user has permission to view 888 * @throws SystemException if a system exception occurred 889 */ 890 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> filterFindByG_F( 891 long groupId, long[] folderIds, int start, int end, 892 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 893 throws com.liferay.portal.kernel.exception.SystemException; 894 895 /** 896 * Finds all the bookmarks entries. 897 * 898 * @return the bookmarks entries 899 * @throws SystemException if a system exception occurred 900 */ 901 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll() 902 throws com.liferay.portal.kernel.exception.SystemException; 903 904 /** 905 * Finds a range of all the bookmarks entries. 906 * 907 * <p> 908 * 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. 909 * </p> 910 * 911 * @param start the lower bound of the range of bookmarks entries to return 912 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 913 * @return the range of bookmarks entries 914 * @throws SystemException if a system exception occurred 915 */ 916 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll( 917 int start, int end) 918 throws com.liferay.portal.kernel.exception.SystemException; 919 920 /** 921 * Finds an ordered range of all the bookmarks entries. 922 * 923 * <p> 924 * 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. 925 * </p> 926 * 927 * @param start the lower bound of the range of bookmarks entries to return 928 * @param end the upper bound of the range of bookmarks entries to return (not inclusive) 929 * @param orderByComparator the comparator to order the results by 930 * @return the ordered range of bookmarks entries 931 * @throws SystemException if a system exception occurred 932 */ 933 public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksEntry> findAll( 934 int start, int end, 935 com.liferay.portal.kernel.util.OrderByComparator orderByComparator) 936 throws com.liferay.portal.kernel.exception.SystemException; 937 938 /** 939 * Removes all the bookmarks entries where uuid = ? from the database. 940 * 941 * @param uuid the uuid to search with 942 * @throws SystemException if a system exception occurred 943 */ 944 public void removeByUuid(java.lang.String uuid) 945 throws com.liferay.portal.kernel.exception.SystemException; 946 947 /** 948 * Removes the bookmarks entry where uuid = ? and groupId = ? from the database. 949 * 950 * @param uuid the uuid to search with 951 * @param groupId the group ID to search with 952 * @throws SystemException if a system exception occurred 953 */ 954 public void removeByUUID_G(java.lang.String uuid, long groupId) 955 throws com.liferay.portal.kernel.exception.SystemException, 956 com.liferay.portlet.bookmarks.NoSuchEntryException; 957 958 /** 959 * Removes all the bookmarks entries where groupId = ? from the database. 960 * 961 * @param groupId the group ID to search with 962 * @throws SystemException if a system exception occurred 963 */ 964 public void removeByGroupId(long groupId) 965 throws com.liferay.portal.kernel.exception.SystemException; 966 967 /** 968 * Removes all the bookmarks entries where groupId = ? and userId = ? from the database. 969 * 970 * @param groupId the group ID to search with 971 * @param userId the user ID to search with 972 * @throws SystemException if a system exception occurred 973 */ 974 public void removeByG_U(long groupId, long userId) 975 throws com.liferay.portal.kernel.exception.SystemException; 976 977 /** 978 * Removes all the bookmarks entries where groupId = ? and folderId = ? from the database. 979 * 980 * @param groupId the group ID to search with 981 * @param folderId the folder ID to search with 982 * @throws SystemException if a system exception occurred 983 */ 984 public void removeByG_F(long groupId, long folderId) 985 throws com.liferay.portal.kernel.exception.SystemException; 986 987 /** 988 * Removes all the bookmarks entries from the database. 989 * 990 * @throws SystemException if a system exception occurred 991 */ 992 public void removeAll() 993 throws com.liferay.portal.kernel.exception.SystemException; 994 995 /** 996 * Counts all the bookmarks entries where uuid = ?. 997 * 998 * @param uuid the uuid to search with 999 * @return the number of matching bookmarks entries 1000 * @throws SystemException if a system exception occurred 1001 */ 1002 public int countByUuid(java.lang.String uuid) 1003 throws com.liferay.portal.kernel.exception.SystemException; 1004 1005 /** 1006 * Counts all the bookmarks entries where uuid = ? and groupId = ?. 1007 * 1008 * @param uuid the uuid to search with 1009 * @param groupId the group ID to search with 1010 * @return the number of matching bookmarks entries 1011 * @throws SystemException if a system exception occurred 1012 */ 1013 public int countByUUID_G(java.lang.String uuid, long groupId) 1014 throws com.liferay.portal.kernel.exception.SystemException; 1015 1016 /** 1017 * Counts all the bookmarks entries where groupId = ?. 1018 * 1019 * @param groupId the group ID to search with 1020 * @return the number of matching bookmarks entries 1021 * @throws SystemException if a system exception occurred 1022 */ 1023 public int countByGroupId(long groupId) 1024 throws com.liferay.portal.kernel.exception.SystemException; 1025 1026 /** 1027 * Filters by the user's permissions and counts all the bookmarks entries where groupId = ?. 1028 * 1029 * @param groupId the group ID to search with 1030 * @return the number of matching bookmarks entries that the user has permission to view 1031 * @throws SystemException if a system exception occurred 1032 */ 1033 public int filterCountByGroupId(long groupId) 1034 throws com.liferay.portal.kernel.exception.SystemException; 1035 1036 /** 1037 * Counts all the bookmarks entries where groupId = ? and userId = ?. 1038 * 1039 * @param groupId the group ID to search with 1040 * @param userId the user ID to search with 1041 * @return the number of matching bookmarks entries 1042 * @throws SystemException if a system exception occurred 1043 */ 1044 public int countByG_U(long groupId, long userId) 1045 throws com.liferay.portal.kernel.exception.SystemException; 1046 1047 /** 1048 * Filters by the user's permissions and counts all the bookmarks entries where groupId = ? and userId = ?. 1049 * 1050 * @param groupId the group ID to search with 1051 * @param userId the user ID to search with 1052 * @return the number of matching bookmarks entries that the user has permission to view 1053 * @throws SystemException if a system exception occurred 1054 */ 1055 public int filterCountByG_U(long groupId, long userId) 1056 throws com.liferay.portal.kernel.exception.SystemException; 1057 1058 /** 1059 * Counts all the bookmarks entries where groupId = ? and folderId = ?. 1060 * 1061 * @param groupId the group ID to search with 1062 * @param folderId the folder ID to search with 1063 * @return the number of matching bookmarks entries 1064 * @throws SystemException if a system exception occurred 1065 */ 1066 public int countByG_F(long groupId, long folderId) 1067 throws com.liferay.portal.kernel.exception.SystemException; 1068 1069 /** 1070 * Counts all the bookmarks entries where groupId = ? and folderId = any ?. 1071 * 1072 * @param groupId the group ID to search with 1073 * @param folderIds the folder IDs to search with 1074 * @return the number of matching bookmarks entries 1075 * @throws SystemException if a system exception occurred 1076 */ 1077 public int countByG_F(long groupId, long[] folderIds) 1078 throws com.liferay.portal.kernel.exception.SystemException; 1079 1080 /** 1081 * Filters by the user's permissions and counts all the bookmarks entries where groupId = ? and folderId = ?. 1082 * 1083 * @param groupId the group ID to search with 1084 * @param folderId the folder ID to search with 1085 * @return the number of matching bookmarks entries that the user has permission to view 1086 * @throws SystemException if a system exception occurred 1087 */ 1088 public int filterCountByG_F(long groupId, long folderId) 1089 throws com.liferay.portal.kernel.exception.SystemException; 1090 1091 /** 1092 * Filters by the user's permissions and counts all the bookmarks entries where groupId = ? and folderId = any ?. 1093 * 1094 * @param groupId the group ID to search with 1095 * @param folderIds the folder IDs to search with 1096 * @return the number of matching bookmarks entries that the user has permission to view 1097 * @throws SystemException if a system exception occurred 1098 */ 1099 public int filterCountByG_F(long groupId, long[] folderIds) 1100 throws com.liferay.portal.kernel.exception.SystemException; 1101 1102 /** 1103 * Counts all the bookmarks entries. 1104 * 1105 * @return the number of bookmarks entries 1106 * @throws SystemException if a system exception occurred 1107 */ 1108 public int countAll() 1109 throws com.liferay.portal.kernel.exception.SystemException; 1110 1111 public BookmarksEntry remove(BookmarksEntry bookmarksEntry) 1112 throws SystemException; 1113 }