com.liferay.portlet.documentlibrary.service.persistence
Interface DLFileRankPersistence

All Superinterfaces:
BasePersistence

@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface DLFileRankPersistence
extends BasePersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByC_U_F_N(long companyId, long userId, long folderId, java.lang.String name)
           
 int countByF_N(long folderId, java.lang.String name)
           
 int countByUserId(long userId)
           
 DLFileRank create(long fileRankId)
           
 DLFileRank fetchByC_U_F_N(long companyId, long userId, long folderId, java.lang.String name)
           
 DLFileRank fetchByPrimaryKey(long fileRankId)
           
 java.util.List<DLFileRank> findAll()
           
 java.util.List<DLFileRank> findAll(int start, int end)
           
 java.util.List<DLFileRank> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank findByC_U_F_N(long companyId, long userId, long folderId, java.lang.String name)
           
 DLFileRank findByF_N_First(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank findByF_N_Last(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank[] findByF_N_PrevAndNext(long fileRankId, long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileRank> findByF_N(long folderId, java.lang.String name)
           
 java.util.List<DLFileRank> findByF_N(long folderId, java.lang.String name, int start, int end)
           
 java.util.List<DLFileRank> findByF_N(long folderId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank findByPrimaryKey(long fileRankId)
           
 DLFileRank findByUserId_First(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank findByUserId_Last(long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileRank[] findByUserId_PrevAndNext(long fileRankId, long userId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileRank> findByUserId(long userId)
           
 java.util.List<DLFileRank> findByUserId(long userId, int start, int end)
           
 java.util.List<DLFileRank> findByUserId(long userId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
           
 java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
           
 DLFileRank remove(DLFileRank dlFileRank)
           
 DLFileRank remove(long fileRankId)
           
 void removeAll()
           
 void removeByC_U_F_N(long companyId, long userId, long folderId, java.lang.String name)
           
 void removeByF_N(long folderId, java.lang.String name)
           
 void removeByUserId(long userId)
           
 DLFileRank update(DLFileRank dlFileRank)
          Deprecated. Use update(DLFileRank dlFileRank, boolean merge).
 DLFileRank update(DLFileRank dlFileRank, boolean merge)
          Add, update, or merge, the entity.
 DLFileRank updateImpl(DLFileRank dlFileRank, boolean merge)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
getListeners, registerListener, unregisterListener
 

Method Detail

create

DLFileRank create(long fileRankId)

remove

DLFileRank remove(long fileRankId)
                  throws com.liferay.portal.SystemException,
                         NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

remove

DLFileRank remove(DLFileRank dlFileRank)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

DLFileRank update(DLFileRank dlFileRank)
                  throws com.liferay.portal.SystemException
Deprecated. Use update(DLFileRank dlFileRank, boolean merge).

Throws:
com.liferay.portal.SystemException

update

DLFileRank update(DLFileRank dlFileRank,
                  boolean merge)
                  throws com.liferay.portal.SystemException
Add, update, or merge, the entity. This method also calls the model listeners to trigger the proper events associated with adding, deleting, or updating an entity.

Parameters:
dlFileRank - the entity to add, update, or merge
merge - boolean value for whether to merge the entity. The default value is false. Setting merge to true is more expensive and should only be true when dlFileRank is transient. See LEP-5473 for a detailed discussion of this method.
Returns:
true if the portlet can be displayed via Ajax
Throws:
com.liferay.portal.SystemException

updateImpl

DLFileRank updateImpl(DLFileRank dlFileRank,
                      boolean merge)
                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByPrimaryKey(long fileRankId)
                            throws com.liferay.portal.SystemException,
                                   NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

fetchByPrimaryKey

DLFileRank fetchByPrimaryKey(long fileRankId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByUserId(long userId)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByUserId(long userId,
                                                      int start,
                                                      int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByUserId(long userId,
                                                      int start,
                                                      int end,
                                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUserId_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByUserId_First(long userId,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByUserId_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByUserId_Last(long userId,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByUserId_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank[] findByUserId_PrevAndNext(long fileRankId,
                                                    long userId,
                                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByF_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByF_N(long folderId,
                                                   java.lang.String name)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByF_N(long folderId,
                                                   java.lang.String name,
                                                   int start,
                                                   int end)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findByF_N(long folderId,
                                                   java.lang.String name,
                                                   int start,
                                                   int end,
                                                   com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N_First

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByF_N_First(long folderId,
                                         java.lang.String name,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByF_N_Last

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByF_N_Last(long folderId,
                                        java.lang.String name,
                                        com.liferay.portal.kernel.util.OrderByComparator obc)
                          throws com.liferay.portal.SystemException,
                                 NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByF_N_PrevAndNext

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank[] findByF_N_PrevAndNext(long fileRankId,
                                                 long folderId,
                                                 java.lang.String name,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException,
                                          NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

findByC_U_F_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
DLFileRank findByC_U_F_N(long companyId,
                                       long userId,
                                       long folderId,
                                       java.lang.String name)
                         throws com.liferay.portal.SystemException,
                                NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

fetchByC_U_F_N

DLFileRank fetchByC_U_F_N(long companyId,
                          long userId,
                          long folderId,
                          java.lang.String name)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<java.lang.Object> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
                                                                    int start,
                                                                    int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findAll()
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findAll(int start,
                                                 int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
java.util.List<DLFileRank> findAll(int start,
                                                 int end,
                                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUserId

void removeByUserId(long userId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByF_N

void removeByF_N(long folderId,
                 java.lang.String name)
                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByC_U_F_N

void removeByC_U_F_N(long companyId,
                     long userId,
                     long folderId,
                     java.lang.String name)
                     throws com.liferay.portal.SystemException,
                            NoSuchFileRankException
Throws:
com.liferay.portal.SystemException
NoSuchFileRankException

removeAll

void removeAll()
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByUserId

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByUserId(long userId)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByF_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByF_N(long folderId,
                             java.lang.String name)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByC_U_F_N

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countByC_U_F_N(long companyId,
                                 long userId,
                                 long folderId,
                                 java.lang.String name)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

@Transactional(propagation=SUPPORTS,
               readOnly=true)
int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException