001 /** 002 * Copyright (c) 2000-present Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portlet.documentlibrary.service.persistence; 016 017 import aQute.bnd.annotation.ProviderType; 018 019 import com.liferay.portal.service.persistence.BasePersistence; 020 021 import com.liferay.portlet.documentlibrary.model.DLFileRank; 022 023 /** 024 * The persistence interface for the document library file rank service. 025 * 026 * <p> 027 * Caching information and settings can be found in <code>portal.properties</code> 028 * </p> 029 * 030 * @author Brian Wing Shun Chan 031 * @see DLFileRankPersistenceImpl 032 * @see DLFileRankUtil 033 * @generated 034 */ 035 @ProviderType 036 public interface DLFileRankPersistence extends BasePersistence<DLFileRank> { 037 /* 038 * NOTE FOR DEVELOPERS: 039 * 040 * Never modify or reference this interface directly. Always use {@link DLFileRankUtil} to access the document library file rank persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface. 041 */ 042 043 /** 044 * Returns all the document library file ranks where userId = ?. 045 * 046 * @param userId the user ID 047 * @return the matching document library file ranks 048 */ 049 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 050 long userId); 051 052 /** 053 * Returns a range of all the document library file ranks where userId = ?. 054 * 055 * <p> 056 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 057 * </p> 058 * 059 * @param userId the user ID 060 * @param start the lower bound of the range of document library file ranks 061 * @param end the upper bound of the range of document library file ranks (not inclusive) 062 * @return the range of matching document library file ranks 063 */ 064 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 065 long userId, int start, int end); 066 067 /** 068 * Returns an ordered range of all the document library file ranks where userId = ?. 069 * 070 * <p> 071 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 072 * </p> 073 * 074 * @param userId the user ID 075 * @param start the lower bound of the range of document library file ranks 076 * @param end the upper bound of the range of document library file ranks (not inclusive) 077 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 078 * @return the ordered range of matching document library file ranks 079 */ 080 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByUserId( 081 long userId, int start, int end, 082 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 083 084 /** 085 * Returns the first document library file rank in the ordered set where userId = ?. 086 * 087 * @param userId the user ID 088 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 089 * @return the first matching document library file rank 090 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 091 */ 092 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_First( 093 long userId, 094 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 095 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 096 097 /** 098 * Returns the first document library file rank in the ordered set where userId = ?. 099 * 100 * @param userId the user ID 101 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 102 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 103 */ 104 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_First( 105 long userId, 106 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 107 108 /** 109 * Returns the last document library file rank in the ordered set where userId = ?. 110 * 111 * @param userId the user ID 112 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 113 * @return the last matching document library file rank 114 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 115 */ 116 public com.liferay.portlet.documentlibrary.model.DLFileRank findByUserId_Last( 117 long userId, 118 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 119 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 120 121 /** 122 * Returns the last document library file rank in the ordered set where userId = ?. 123 * 124 * @param userId the user ID 125 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 126 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 127 */ 128 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByUserId_Last( 129 long userId, 130 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 131 132 /** 133 * Returns the document library file ranks before and after the current document library file rank in the ordered set where userId = ?. 134 * 135 * @param fileRankId the primary key of the current document library file rank 136 * @param userId the user ID 137 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 138 * @return the previous, current, and next document library file rank 139 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 140 */ 141 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByUserId_PrevAndNext( 142 long fileRankId, long userId, 143 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 144 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 145 146 /** 147 * Removes all the document library file ranks where userId = ? from the database. 148 * 149 * @param userId the user ID 150 */ 151 public void removeByUserId(long userId); 152 153 /** 154 * Returns the number of document library file ranks where userId = ?. 155 * 156 * @param userId the user ID 157 * @return the number of matching document library file ranks 158 */ 159 public int countByUserId(long userId); 160 161 /** 162 * Returns all the document library file ranks where fileEntryId = ?. 163 * 164 * @param fileEntryId the file entry ID 165 * @return the matching document library file ranks 166 */ 167 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 168 long fileEntryId); 169 170 /** 171 * Returns a range of all the document library file ranks where fileEntryId = ?. 172 * 173 * <p> 174 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 175 * </p> 176 * 177 * @param fileEntryId the file entry ID 178 * @param start the lower bound of the range of document library file ranks 179 * @param end the upper bound of the range of document library file ranks (not inclusive) 180 * @return the range of matching document library file ranks 181 */ 182 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 183 long fileEntryId, int start, int end); 184 185 /** 186 * Returns an ordered range of all the document library file ranks where fileEntryId = ?. 187 * 188 * <p> 189 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 190 * </p> 191 * 192 * @param fileEntryId the file entry ID 193 * @param start the lower bound of the range of document library file ranks 194 * @param end the upper bound of the range of document library file ranks (not inclusive) 195 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 196 * @return the ordered range of matching document library file ranks 197 */ 198 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByFileEntryId( 199 long fileEntryId, int start, int end, 200 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 201 202 /** 203 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 204 * 205 * @param fileEntryId the file entry ID 206 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 207 * @return the first matching document library file rank 208 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 209 */ 210 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_First( 211 long fileEntryId, 212 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 213 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 214 215 /** 216 * Returns the first document library file rank in the ordered set where fileEntryId = ?. 217 * 218 * @param fileEntryId the file entry ID 219 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 220 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 221 */ 222 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_First( 223 long fileEntryId, 224 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 225 226 /** 227 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 228 * 229 * @param fileEntryId the file entry ID 230 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 231 * @return the last matching document library file rank 232 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 233 */ 234 public com.liferay.portlet.documentlibrary.model.DLFileRank findByFileEntryId_Last( 235 long fileEntryId, 236 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 237 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 238 239 /** 240 * Returns the last document library file rank in the ordered set where fileEntryId = ?. 241 * 242 * @param fileEntryId the file entry ID 243 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 244 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 245 */ 246 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByFileEntryId_Last( 247 long fileEntryId, 248 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 249 250 /** 251 * Returns the document library file ranks before and after the current document library file rank in the ordered set where fileEntryId = ?. 252 * 253 * @param fileRankId the primary key of the current document library file rank 254 * @param fileEntryId the file entry ID 255 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 256 * @return the previous, current, and next document library file rank 257 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 258 */ 259 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByFileEntryId_PrevAndNext( 260 long fileRankId, long fileEntryId, 261 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 262 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 263 264 /** 265 * Removes all the document library file ranks where fileEntryId = ? from the database. 266 * 267 * @param fileEntryId the file entry ID 268 */ 269 public void removeByFileEntryId(long fileEntryId); 270 271 /** 272 * Returns the number of document library file ranks where fileEntryId = ?. 273 * 274 * @param fileEntryId the file entry ID 275 * @return the number of matching document library file ranks 276 */ 277 public int countByFileEntryId(long fileEntryId); 278 279 /** 280 * Returns all the document library file ranks where groupId = ? and userId = ?. 281 * 282 * @param groupId the group ID 283 * @param userId the user ID 284 * @return the matching document library file ranks 285 */ 286 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 287 long groupId, long userId); 288 289 /** 290 * Returns a range of all the document library file ranks where groupId = ? and userId = ?. 291 * 292 * <p> 293 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 294 * </p> 295 * 296 * @param groupId the group ID 297 * @param userId the user ID 298 * @param start the lower bound of the range of document library file ranks 299 * @param end the upper bound of the range of document library file ranks (not inclusive) 300 * @return the range of matching document library file ranks 301 */ 302 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 303 long groupId, long userId, int start, int end); 304 305 /** 306 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ?. 307 * 308 * <p> 309 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 310 * </p> 311 * 312 * @param groupId the group ID 313 * @param userId the user ID 314 * @param start the lower bound of the range of document library file ranks 315 * @param end the upper bound of the range of document library file ranks (not inclusive) 316 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 317 * @return the ordered range of matching document library file ranks 318 */ 319 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U( 320 long groupId, long userId, int start, int end, 321 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 322 323 /** 324 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 325 * 326 * @param groupId the group ID 327 * @param userId the user ID 328 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 329 * @return the first matching document library file rank 330 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 331 */ 332 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_First( 333 long groupId, long userId, 334 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 335 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 336 337 /** 338 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ?. 339 * 340 * @param groupId the group ID 341 * @param userId the user ID 342 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 343 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 344 */ 345 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_First( 346 long groupId, long userId, 347 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 348 349 /** 350 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 351 * 352 * @param groupId the group ID 353 * @param userId the user ID 354 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 355 * @return the last matching document library file rank 356 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 357 */ 358 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_Last( 359 long groupId, long userId, 360 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 361 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 362 363 /** 364 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ?. 365 * 366 * @param groupId the group ID 367 * @param userId the user ID 368 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 369 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 370 */ 371 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_Last( 372 long groupId, long userId, 373 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 374 375 /** 376 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ?. 377 * 378 * @param fileRankId the primary key of the current document library file rank 379 * @param groupId the group ID 380 * @param userId the user ID 381 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 382 * @return the previous, current, and next document library file rank 383 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 384 */ 385 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_PrevAndNext( 386 long fileRankId, long groupId, long userId, 387 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 388 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 389 390 /** 391 * Removes all the document library file ranks where groupId = ? and userId = ? from the database. 392 * 393 * @param groupId the group ID 394 * @param userId the user ID 395 */ 396 public void removeByG_U(long groupId, long userId); 397 398 /** 399 * Returns the number of document library file ranks where groupId = ? and userId = ?. 400 * 401 * @param groupId the group ID 402 * @param userId the user ID 403 * @return the number of matching document library file ranks 404 */ 405 public int countByG_U(long groupId, long userId); 406 407 /** 408 * Returns all the document library file ranks where groupId = ? and userId = ? and active = ?. 409 * 410 * @param groupId the group ID 411 * @param userId the user ID 412 * @param active the active 413 * @return the matching document library file ranks 414 */ 415 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 416 long groupId, long userId, boolean active); 417 418 /** 419 * Returns a range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 420 * 421 * <p> 422 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 423 * </p> 424 * 425 * @param groupId the group ID 426 * @param userId the user ID 427 * @param active the active 428 * @param start the lower bound of the range of document library file ranks 429 * @param end the upper bound of the range of document library file ranks (not inclusive) 430 * @return the range of matching document library file ranks 431 */ 432 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 433 long groupId, long userId, boolean active, int start, int end); 434 435 /** 436 * Returns an ordered range of all the document library file ranks where groupId = ? and userId = ? and active = ?. 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 440 * </p> 441 * 442 * @param groupId the group ID 443 * @param userId the user ID 444 * @param active the active 445 * @param start the lower bound of the range of document library file ranks 446 * @param end the upper bound of the range of document library file ranks (not inclusive) 447 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 448 * @return the ordered range of matching document library file ranks 449 */ 450 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findByG_U_A( 451 long groupId, long userId, boolean active, int start, int end, 452 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 453 454 /** 455 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 456 * 457 * @param groupId the group ID 458 * @param userId the user ID 459 * @param active the active 460 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 461 * @return the first matching document library file rank 462 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 463 */ 464 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_First( 465 long groupId, long userId, boolean active, 466 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 467 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 468 469 /** 470 * Returns the first document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 471 * 472 * @param groupId the group ID 473 * @param userId the user ID 474 * @param active the active 475 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 476 * @return the first matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 477 */ 478 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_First( 479 long groupId, long userId, boolean active, 480 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 481 482 /** 483 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 484 * 485 * @param groupId the group ID 486 * @param userId the user ID 487 * @param active the active 488 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 489 * @return the last matching document library file rank 490 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 491 */ 492 public com.liferay.portlet.documentlibrary.model.DLFileRank findByG_U_A_Last( 493 long groupId, long userId, boolean active, 494 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 495 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 496 497 /** 498 * Returns the last document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 499 * 500 * @param groupId the group ID 501 * @param userId the user ID 502 * @param active the active 503 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 504 * @return the last matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 505 */ 506 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByG_U_A_Last( 507 long groupId, long userId, boolean active, 508 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 509 510 /** 511 * Returns the document library file ranks before and after the current document library file rank in the ordered set where groupId = ? and userId = ? and active = ?. 512 * 513 * @param fileRankId the primary key of the current document library file rank 514 * @param groupId the group ID 515 * @param userId the user ID 516 * @param active the active 517 * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) 518 * @return the previous, current, and next document library file rank 519 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 520 */ 521 public com.liferay.portlet.documentlibrary.model.DLFileRank[] findByG_U_A_PrevAndNext( 522 long fileRankId, long groupId, long userId, boolean active, 523 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator) 524 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 525 526 /** 527 * Removes all the document library file ranks where groupId = ? and userId = ? and active = ? from the database. 528 * 529 * @param groupId the group ID 530 * @param userId the user ID 531 * @param active the active 532 */ 533 public void removeByG_U_A(long groupId, long userId, boolean active); 534 535 /** 536 * Returns the number of document library file ranks where groupId = ? and userId = ? and active = ?. 537 * 538 * @param groupId the group ID 539 * @param userId the user ID 540 * @param active the active 541 * @return the number of matching document library file ranks 542 */ 543 public int countByG_U_A(long groupId, long userId, boolean active); 544 545 /** 546 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 547 * 548 * @param companyId the company ID 549 * @param userId the user ID 550 * @param fileEntryId the file entry ID 551 * @return the matching document library file rank 552 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a matching document library file rank could not be found 553 */ 554 public com.liferay.portlet.documentlibrary.model.DLFileRank findByC_U_F( 555 long companyId, long userId, long fileEntryId) 556 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 557 558 /** 559 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found. Uses the finder cache. 560 * 561 * @param companyId the company ID 562 * @param userId the user ID 563 * @param fileEntryId the file entry ID 564 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 565 */ 566 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 567 long companyId, long userId, long fileEntryId); 568 569 /** 570 * Returns the document library file rank where companyId = ? and userId = ? and fileEntryId = ? or returns <code>null</code> if it could not be found, optionally using the finder cache. 571 * 572 * @param companyId the company ID 573 * @param userId the user ID 574 * @param fileEntryId the file entry ID 575 * @param retrieveFromCache whether to use the finder cache 576 * @return the matching document library file rank, or <code>null</code> if a matching document library file rank could not be found 577 */ 578 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByC_U_F( 579 long companyId, long userId, long fileEntryId, boolean retrieveFromCache); 580 581 /** 582 * Removes the document library file rank where companyId = ? and userId = ? and fileEntryId = ? from the database. 583 * 584 * @param companyId the company ID 585 * @param userId the user ID 586 * @param fileEntryId the file entry ID 587 * @return the document library file rank that was removed 588 */ 589 public com.liferay.portlet.documentlibrary.model.DLFileRank removeByC_U_F( 590 long companyId, long userId, long fileEntryId) 591 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 592 593 /** 594 * Returns the number of document library file ranks where companyId = ? and userId = ? and fileEntryId = ?. 595 * 596 * @param companyId the company ID 597 * @param userId the user ID 598 * @param fileEntryId the file entry ID 599 * @return the number of matching document library file ranks 600 */ 601 public int countByC_U_F(long companyId, long userId, long fileEntryId); 602 603 /** 604 * Caches the document library file rank in the entity cache if it is enabled. 605 * 606 * @param dlFileRank the document library file rank 607 */ 608 public void cacheResult( 609 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank); 610 611 /** 612 * Caches the document library file ranks in the entity cache if it is enabled. 613 * 614 * @param dlFileRanks the document library file ranks 615 */ 616 public void cacheResult( 617 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> dlFileRanks); 618 619 /** 620 * Creates a new document library file rank with the primary key. Does not add the document library file rank to the database. 621 * 622 * @param fileRankId the primary key for the new document library file rank 623 * @return the new document library file rank 624 */ 625 public com.liferay.portlet.documentlibrary.model.DLFileRank create( 626 long fileRankId); 627 628 /** 629 * Removes the document library file rank with the primary key from the database. Also notifies the appropriate model listeners. 630 * 631 * @param fileRankId the primary key of the document library file rank 632 * @return the document library file rank that was removed 633 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 634 */ 635 public com.liferay.portlet.documentlibrary.model.DLFileRank remove( 636 long fileRankId) 637 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 638 639 public com.liferay.portlet.documentlibrary.model.DLFileRank updateImpl( 640 com.liferay.portlet.documentlibrary.model.DLFileRank dlFileRank); 641 642 /** 643 * Returns the document library file rank with the primary key or throws a {@link com.liferay.portlet.documentlibrary.NoSuchFileRankException} if it could not be found. 644 * 645 * @param fileRankId the primary key of the document library file rank 646 * @return the document library file rank 647 * @throws com.liferay.portlet.documentlibrary.NoSuchFileRankException if a document library file rank with the primary key could not be found 648 */ 649 public com.liferay.portlet.documentlibrary.model.DLFileRank findByPrimaryKey( 650 long fileRankId) 651 throws com.liferay.portlet.documentlibrary.NoSuchFileRankException; 652 653 /** 654 * Returns the document library file rank with the primary key or returns <code>null</code> if it could not be found. 655 * 656 * @param fileRankId the primary key of the document library file rank 657 * @return the document library file rank, or <code>null</code> if a document library file rank with the primary key could not be found 658 */ 659 public com.liferay.portlet.documentlibrary.model.DLFileRank fetchByPrimaryKey( 660 long fileRankId); 661 662 @Override 663 public java.util.Map<java.io.Serializable, com.liferay.portlet.documentlibrary.model.DLFileRank> fetchByPrimaryKeys( 664 java.util.Set<java.io.Serializable> primaryKeys); 665 666 /** 667 * Returns all the document library file ranks. 668 * 669 * @return the document library file ranks 670 */ 671 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll(); 672 673 /** 674 * Returns a range of all the document library file ranks. 675 * 676 * <p> 677 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 678 * </p> 679 * 680 * @param start the lower bound of the range of document library file ranks 681 * @param end the upper bound of the range of document library file ranks (not inclusive) 682 * @return the range of document library file ranks 683 */ 684 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 685 int start, int end); 686 687 /** 688 * Returns an ordered range of all the document library file ranks. 689 * 690 * <p> 691 * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileRankModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order. 692 * </p> 693 * 694 * @param start the lower bound of the range of document library file ranks 695 * @param end the upper bound of the range of document library file ranks (not inclusive) 696 * @param orderByComparator the comparator to order the results by (optionally <code>null</code>) 697 * @return the ordered range of document library file ranks 698 */ 699 public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileRank> findAll( 700 int start, int end, 701 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.documentlibrary.model.DLFileRank> orderByComparator); 702 703 /** 704 * Removes all the document library file ranks from the database. 705 */ 706 public void removeAll(); 707 708 /** 709 * Returns the number of document library file ranks. 710 * 711 * @return the number of document library file ranks 712 */ 713 public int countAll(); 714 }