Liferay 6.0.5

com.liferay.portlet.documentlibrary.service.persistence
Class DLFileRankUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileRankUtil

public class DLFileRankUtil
extends Object

The persistence utility for the d l file rank service. This utility wraps DLFileRankPersistenceImpl and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.

Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class.

Caching information and settings can be found in portal.properties

See Also:
DLFileRankPersistence, DLFileRankPersistenceImpl
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

Constructor Summary
DLFileRankUtil()
           
 
Method Summary
static void cacheResult(DLFileRank dlFileRank)
          Caches the d l file rank in the entity cache if it is enabled.
static void cacheResult(List<DLFileRank> dlFileRanks)
          Caches the d l file ranks in the entity cache if it is enabled.
static void clearCache()
           
static void clearCache(DLFileRank dlFileRank)
           
static int countAll()
          Counts all the d l file ranks.
static int countByC_U_F_N(long companyId, long userId, long folderId, String name)
          Counts all the d l file ranks where companyId = ? and userId = ? and folderId = ? and name = ?.
static int countByF_N(long folderId, String name)
          Counts all the d l file ranks where folderId = ? and name = ?.
static int countByG_U(long groupId, long userId)
          Counts all the d l file ranks where groupId = ? and userId = ?.
static int countByUserId(long userId)
          Counts all the d l file ranks where userId = ?.
 long countWithDynamicQuery(DynamicQuery dynamicQuery)
           
static DLFileRank create(long fileRankId)
          Creates a new d l file rank with the primary key.
static DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name)
          Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found.
static DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, String name, boolean retrieveFromCache)
          Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.
static DLFileRank fetchByPrimaryKey(long fileRankId)
          Finds the d l file rank with the primary key or returns null if it could not be found.
static List<DLFileRank> findAll()
          Finds all the d l file ranks.
static List<DLFileRank> findAll(int start, int end)
          Finds a range of all the d l file ranks.
static List<DLFileRank> findAll(int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file ranks.
static DLFileRank findByC_U_F_N(long companyId, long userId, long folderId, String name)
          Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or throws a NoSuchFileRankException if it could not be found.
static DLFileRank findByF_N_First(long folderId, String name, OrderByComparator orderByComparator)
          Finds the first d l file rank in the ordered set where folderId = ? and name = ?.
static DLFileRank findByF_N_Last(long folderId, String name, OrderByComparator orderByComparator)
          Finds the last d l file rank in the ordered set where folderId = ? and name = ?.
static DLFileRank[] findByF_N_PrevAndNext(long fileRankId, long folderId, String name, OrderByComparator orderByComparator)
          Finds the d l file ranks before and after the current d l file rank in the ordered set where folderId = ? and name = ?.
static List<DLFileRank> findByF_N(long folderId, String name)
          Finds all the d l file ranks where folderId = ? and name = ?.
static List<DLFileRank> findByF_N(long folderId, String name, int start, int end)
          Finds a range of all the d l file ranks where folderId = ? and name = ?.
static List<DLFileRank> findByF_N(long folderId, String name, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file ranks where folderId = ? and name = ?.
static DLFileRank findByG_U_First(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the first d l file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank findByG_U_Last(long groupId, long userId, OrderByComparator orderByComparator)
          Finds the last d l file rank in the ordered set where groupId = ? and userId = ?.
static DLFileRank[] findByG_U_PrevAndNext(long fileRankId, long groupId, long userId, OrderByComparator orderByComparator)
          Finds the d l file ranks before and after the current d l file rank in the ordered set where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId)
          Finds all the d l file ranks where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId, int start, int end)
          Finds a range of all the d l file ranks where groupId = ? and userId = ?.
static List<DLFileRank> findByG_U(long groupId, long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file ranks where groupId = ? and userId = ?.
static DLFileRank findByPrimaryKey(long fileRankId)
          Finds the d l file rank with the primary key or throws a NoSuchFileRankException if it could not be found.
static DLFileRank findByUserId_First(long userId, OrderByComparator orderByComparator)
          Finds the first d l file rank in the ordered set where userId = ?.
static DLFileRank findByUserId_Last(long userId, OrderByComparator orderByComparator)
          Finds the last d l file rank in the ordered set where userId = ?.
static DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, OrderByComparator orderByComparator)
          Finds the d l file ranks before and after the current d l file rank in the ordered set where userId = ?.
static List<DLFileRank> findByUserId(long userId)
          Finds all the d l file ranks where userId = ?.
static List<DLFileRank> findByUserId(long userId, int start, int end)
          Finds a range of all the d l file ranks where userId = ?.
static List<DLFileRank> findByUserId(long userId, int start, int end, OrderByComparator orderByComparator)
          Finds an ordered range of all the d l file ranks where userId = ?.
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery)
           
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
           
static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator)
           
static DLFileRankPersistence getPersistence()
           
static DLFileRank remove(DLFileRank dlFileRank)
           
static DLFileRank remove(long fileRankId)
          Removes the d l file rank with the primary key from the database.
static void removeAll()
          Removes all the d l file ranks from the database.
static void removeByC_U_F_N(long companyId, long userId, long folderId, String name)
          Removes the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? from the database.
static void removeByF_N(long folderId, String name)
          Removes all the d l file ranks where folderId = ? and name = ? from the database.
static void removeByG_U(long groupId, long userId)
          Removes all the d l file ranks where groupId = ? and userId = ? from the database.
static void removeByUserId(long userId)
          Removes all the d l file ranks where userId = ? from the database.
 void setPersistence(DLFileRankPersistence persistence)
           
static DLFileRank update(DLFileRank dlFileRank, boolean merge)
           
static DLFileRank update(DLFileRank dlFileRank, boolean merge, ServiceContext serviceContext)
           
static DLFileRank updateImpl(DLFileRank dlFileRank, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileRankUtil

public DLFileRankUtil()
Method Detail

clearCache

public static void clearCache()
See Also:
BasePersistence.clearCache()

clearCache

public static void clearCache(DLFileRank dlFileRank)
See Also:
BasePersistence.clearCache(com.liferay.portal.model.BaseModel)

countWithDynamicQuery

public long countWithDynamicQuery(DynamicQuery dynamicQuery)
                           throws SystemException
Throws:
SystemException
See Also:
BasePersistence.countWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery)
                                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                    int start,
                                                    int end)
                                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)

findWithDynamicQuery

public static List<DLFileRank> findWithDynamicQuery(DynamicQuery dynamicQuery,
                                                    int start,
                                                    int end,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException
Throws:
SystemException
See Also:
BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)

remove

public static DLFileRank remove(DLFileRank dlFileRank)
                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.remove(com.liferay.portal.model.BaseModel)

update

public static DLFileRank update(DLFileRank dlFileRank,
                                boolean merge)
                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean)

update

public static DLFileRank update(DLFileRank dlFileRank,
                                boolean merge,
                                ServiceContext serviceContext)
                         throws SystemException
Throws:
SystemException
See Also:
BasePersistence.update(com.liferay.portal.model.BaseModel, boolean, ServiceContext)

cacheResult

public static void cacheResult(DLFileRank dlFileRank)
Caches the d l file rank in the entity cache if it is enabled.

Parameters:
dlFileRank - the d l file rank to cache

cacheResult

public static void cacheResult(List<DLFileRank> dlFileRanks)
Caches the d l file ranks in the entity cache if it is enabled.

Parameters:
dlFileRanks - the d l file ranks to cache

create

public static DLFileRank create(long fileRankId)
Creates a new d l file rank with the primary key. Does not add the d l file rank to the database.

Parameters:
fileRankId - the primary key for the new d l file rank
Returns:
the new d l file rank

remove

public static DLFileRank remove(long fileRankId)
                         throws SystemException,
                                NoSuchFileRankException
Removes the d l file rank with the primary key from the database. Also notifies the appropriate model listeners.

Parameters:
fileRankId - the primary key of the d l file rank to remove
Returns:
the d l file rank that was removed
Throws:
NoSuchFileRankException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

updateImpl

public static DLFileRank updateImpl(DLFileRank dlFileRank,
                                    boolean merge)
                             throws SystemException
Throws:
SystemException

findByPrimaryKey

public static DLFileRank findByPrimaryKey(long fileRankId)
                                   throws SystemException,
                                          NoSuchFileRankException
Finds the d l file rank with the primary key or throws a NoSuchFileRankException if it could not be found.

Parameters:
fileRankId - the primary key of the d l file rank to find
Returns:
the d l file rank
Throws:
NoSuchFileRankException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public static DLFileRank fetchByPrimaryKey(long fileRankId)
                                    throws SystemException
Finds the d l file rank with the primary key or returns null if it could not be found.

Parameters:
fileRankId - the primary key of the d l file rank to find
Returns:
the d l file rank, or null if a d l file rank with the primary key could not be found
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<DLFileRank> findByUserId(long userId)
                                     throws SystemException
Finds all the d l file ranks where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<DLFileRank> findByUserId(long userId,
                                            int start,
                                            int end)
                                     throws SystemException
Finds a range of all the d l file ranks where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
Returns:
the range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByUserId

public static List<DLFileRank> findByUserId(long userId,
                                            int start,
                                            int end,
                                            OrderByComparator orderByComparator)
                                     throws SystemException
Finds an ordered range of all the d l file ranks where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByUserId_First

public static DLFileRank findByUserId_First(long userId,
                                            OrderByComparator orderByComparator)
                                     throws SystemException,
                                            NoSuchFileRankException
Finds the first d l file rank in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByUserId_Last

public static DLFileRank findByUserId_Last(long userId,
                                           OrderByComparator orderByComparator)
                                    throws SystemException,
                                           NoSuchFileRankException
Finds the last d l file rank in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByUserId_PrevAndNext

public static DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
                                                    long userId,
                                                    OrderByComparator orderByComparator)
                                             throws SystemException,
                                                    NoSuchFileRankException
Finds the d l file ranks before and after the current d l file rank in the ordered set where userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileRankId - the primary key of the current d l file rank
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next d l file rank
Throws:
NoSuchFileRankException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId)
                                  throws SystemException
Finds all the d l file ranks where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the d l file ranks where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
Returns:
the range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByG_U

public static List<DLFileRank> findByG_U(long groupId,
                                         long userId,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the d l file ranks where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
userId - the user id to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByG_U_First

public static DLFileRank findByG_U_First(long groupId,
                                         long userId,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchFileRankException
Finds the first d l file rank in the ordered set where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByG_U_Last

public static DLFileRank findByG_U_Last(long groupId,
                                        long userId,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchFileRankException
Finds the last d l file rank in the ordered set where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByG_U_PrevAndNext

public static DLFileRank[] findByG_U_PrevAndNext(long fileRankId,
                                                 long groupId,
                                                 long userId,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchFileRankException
Finds the d l file ranks before and after the current d l file rank in the ordered set where groupId = ? and userId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileRankId - the primary key of the current d l file rank
groupId - the group id to search with
userId - the user id to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next d l file rank
Throws:
NoSuchFileRankException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

findByF_N

public static List<DLFileRank> findByF_N(long folderId,
                                         String name)
                                  throws SystemException
Finds all the d l file ranks where folderId = ? and name = ?.

Parameters:
folderId - the folder id to search with
name - the name to search with
Returns:
the matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByF_N

public static List<DLFileRank> findByF_N(long folderId,
                                         String name,
                                         int start,
                                         int end)
                                  throws SystemException
Finds a range of all the d l file ranks where folderId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
folderId - the folder id to search with
name - the name to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
Returns:
the range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByF_N

public static List<DLFileRank> findByF_N(long folderId,
                                         String name,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Finds an ordered range of all the d l file ranks where folderId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
folderId - the folder id to search with
name - the name to search with
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of matching d l file ranks
Throws:
SystemException - if a system exception occurred

findByF_N_First

public static DLFileRank findByF_N_First(long folderId,
                                         String name,
                                         OrderByComparator orderByComparator)
                                  throws SystemException,
                                         NoSuchFileRankException
Finds the first d l file rank in the ordered set where folderId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
folderId - the folder id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the first matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByF_N_Last

public static DLFileRank findByF_N_Last(long folderId,
                                        String name,
                                        OrderByComparator orderByComparator)
                                 throws SystemException,
                                        NoSuchFileRankException
Finds the last d l file rank in the ordered set where folderId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
folderId - the folder id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the last matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

findByF_N_PrevAndNext

public static DLFileRank[] findByF_N_PrevAndNext(long fileRankId,
                                                 long folderId,
                                                 String name,
                                                 OrderByComparator orderByComparator)
                                          throws SystemException,
                                                 NoSuchFileRankException
Finds the d l file ranks before and after the current d l file rank in the ordered set where folderId = ? and name = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
fileRankId - the primary key of the current d l file rank
folderId - the folder id to search with
name - the name to search with
orderByComparator - the comparator to order the set by
Returns:
the previous, current, and next d l file rank
Throws:
NoSuchFileRankException - if a d l file rank with the primary key could not be found
SystemException - if a system exception occurred

findByC_U_F_N

public static DLFileRank findByC_U_F_N(long companyId,
                                       long userId,
                                       long folderId,
                                       String name)
                                throws SystemException,
                                       NoSuchFileRankException
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or throws a NoSuchFileRankException if it could not be found.

Parameters:
companyId - the company id to search with
userId - the user id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the matching d l file rank
Throws:
NoSuchFileRankException - if a matching d l file rank could not be found
SystemException - if a system exception occurred

fetchByC_U_F_N

public static DLFileRank fetchByC_U_F_N(long companyId,
                                        long userId,
                                        long folderId,
                                        String name)
                                 throws SystemException
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found. Uses the finder cache.

Parameters:
companyId - the company id to search with
userId - the user id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the matching d l file rank, or null if a matching d l file rank could not be found
Throws:
SystemException - if a system exception occurred

fetchByC_U_F_N

public static DLFileRank fetchByC_U_F_N(long companyId,
                                        long userId,
                                        long folderId,
                                        String name,
                                        boolean retrieveFromCache)
                                 throws SystemException
Finds the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? or returns null if it could not be found, optionally using the finder cache.

Parameters:
companyId - the company id to search with
userId - the user id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the matching d l file rank, or null if a matching d l file rank could not be found
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileRank> findAll()
                                throws SystemException
Finds all the d l file ranks.

Returns:
the d l file ranks
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileRank> findAll(int start,
                                       int end)
                                throws SystemException
Finds a range of all the d l file ranks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
Returns:
the range of d l file ranks
Throws:
SystemException - if a system exception occurred

findAll

public static List<DLFileRank> findAll(int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Finds an ordered range of all the d l file ranks.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Parameters:
start - the lower bound of the range of d l file ranks to return
end - the upper bound of the range of d l file ranks to return (not inclusive)
orderByComparator - the comparator to order the results by
Returns:
the ordered range of d l file ranks
Throws:
SystemException - if a system exception occurred

removeByUserId

public static void removeByUserId(long userId)
                           throws SystemException
Removes all the d l file ranks where userId = ? from the database.

Parameters:
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByG_U

public static void removeByG_U(long groupId,
                               long userId)
                        throws SystemException
Removes all the d l file ranks where groupId = ? and userId = ? from the database.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Throws:
SystemException - if a system exception occurred

removeByF_N

public static void removeByF_N(long folderId,
                               String name)
                        throws SystemException
Removes all the d l file ranks where folderId = ? and name = ? from the database.

Parameters:
folderId - the folder id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred

removeByC_U_F_N

public static void removeByC_U_F_N(long companyId,
                                   long userId,
                                   long folderId,
                                   String name)
                            throws SystemException,
                                   NoSuchFileRankException
Removes the d l file rank where companyId = ? and userId = ? and folderId = ? and name = ? from the database.

Parameters:
companyId - the company id to search with
userId - the user id to search with
folderId - the folder id to search with
name - the name to search with
Throws:
SystemException - if a system exception occurred
NoSuchFileRankException

removeAll

public static void removeAll()
                      throws SystemException
Removes all the d l file ranks from the database.

Throws:
SystemException - if a system exception occurred

countByUserId

public static int countByUserId(long userId)
                         throws SystemException
Counts all the d l file ranks where userId = ?.

Parameters:
userId - the user id to search with
Returns:
the number of matching d l file ranks
Throws:
SystemException - if a system exception occurred

countByG_U

public static int countByG_U(long groupId,
                             long userId)
                      throws SystemException
Counts all the d l file ranks where groupId = ? and userId = ?.

Parameters:
groupId - the group id to search with
userId - the user id to search with
Returns:
the number of matching d l file ranks
Throws:
SystemException - if a system exception occurred

countByF_N

public static int countByF_N(long folderId,
                             String name)
                      throws SystemException
Counts all the d l file ranks where folderId = ? and name = ?.

Parameters:
folderId - the folder id to search with
name - the name to search with
Returns:
the number of matching d l file ranks
Throws:
SystemException - if a system exception occurred

countByC_U_F_N

public static int countByC_U_F_N(long companyId,
                                 long userId,
                                 long folderId,
                                 String name)
                          throws SystemException
Counts all the d l file ranks where companyId = ? and userId = ? and folderId = ? and name = ?.

Parameters:
companyId - the company id to search with
userId - the user id to search with
folderId - the folder id to search with
name - the name to search with
Returns:
the number of matching d l file ranks
Throws:
SystemException - if a system exception occurred

countAll

public static int countAll()
                    throws SystemException
Counts all the d l file ranks.

Returns:
the number of d l file ranks
Throws:
SystemException - if a system exception occurred

getPersistence

public static DLFileRankPersistence getPersistence()

setPersistence

public void setPersistence(DLFileRankPersistence persistence)

Liferay 6.0.5