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


public interface DLFileEntryPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByCompanyId(long companyId)
           
 int countByF_N(long folderId, java.lang.String name)
           
 int countByF_T(long folderId, java.lang.String title)
           
 int countByFolderId(long folderId)
           
 int countByUuid(java.lang.String uuid)
           
 DLFileEntry create(long fileEntryId)
           
 DLFileEntry fetchByF_N(long folderId, java.lang.String name)
           
 DLFileEntry fetchByPrimaryKey(long fileEntryId)
           
 java.util.List<DLFileEntry> findAll()
           
 java.util.List<DLFileEntry> findAll(int start, int end)
           
 java.util.List<DLFileEntry> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry[] findByCompanyId_PrevAndNext(long fileEntryId, long companyId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileEntry> findByCompanyId(long companyId)
           
 java.util.List<DLFileEntry> findByCompanyId(long companyId, int start, int end)
           
 java.util.List<DLFileEntry> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByF_N(long folderId, java.lang.String name)
           
 DLFileEntry findByF_T_First(long folderId, java.lang.String title, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByF_T_Last(long folderId, java.lang.String title, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry[] findByF_T_PrevAndNext(long fileEntryId, long folderId, java.lang.String title, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileEntry> findByF_T(long folderId, java.lang.String title)
           
 java.util.List<DLFileEntry> findByF_T(long folderId, java.lang.String title, int start, int end)
           
 java.util.List<DLFileEntry> findByF_T(long folderId, java.lang.String title, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByFolderId_First(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByFolderId_Last(long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry[] findByFolderId_PrevAndNext(long fileEntryId, long folderId, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileEntry> findByFolderId(long folderId)
           
 java.util.List<DLFileEntry> findByFolderId(long folderId, int start, int end)
           
 java.util.List<DLFileEntry> findByFolderId(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByPrimaryKey(long fileEntryId)
           
 DLFileEntry findByUuid_First(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry findByUuid_Last(java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileEntry[] findByUuid_PrevAndNext(long fileEntryId, java.lang.String uuid, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List<DLFileEntry> findByUuid(java.lang.String uuid)
           
 java.util.List<DLFileEntry> findByUuid(java.lang.String uuid, int start, int end)
           
 java.util.List<DLFileEntry> findByUuid(java.lang.String uuid, 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)
           
 void registerListener(ModelListener listener)
           
 DLFileEntry remove(DLFileEntry dlFileEntry)
           
 DLFileEntry remove(long fileEntryId)
           
 void removeAll()
           
 void removeByCompanyId(long companyId)
           
 void removeByF_N(long folderId, java.lang.String name)
           
 void removeByF_T(long folderId, java.lang.String title)
           
 void removeByFolderId(long folderId)
           
 void removeByUuid(java.lang.String uuid)
           
 void unregisterListener(ModelListener listener)
           
 DLFileEntry update(DLFileEntry dlFileEntry)
          Deprecated. Use update(DLFileEntry dlFileEntry, boolean merge).
 DLFileEntry update(DLFileEntry dlFileEntry, boolean merge)
          Add, update, or merge, the entity.
 DLFileEntry updateImpl(DLFileEntry dlFileEntry, boolean merge)
           
 

Method Detail

create

DLFileEntry create(long fileEntryId)

remove

DLFileEntry remove(long fileEntryId)
                   throws com.liferay.portal.SystemException,
                          NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

remove

DLFileEntry remove(DLFileEntry dlFileEntry)
                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

DLFileEntry update(DLFileEntry dlFileEntry)
                   throws com.liferay.portal.SystemException
Deprecated. Use update(DLFileEntry dlFileEntry, boolean merge).

Throws:
com.liferay.portal.SystemException

update

DLFileEntry update(DLFileEntry dlFileEntry,
                   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:
dlFileEntry - 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 dlFileEntry 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

DLFileEntry updateImpl(DLFileEntry dlFileEntry,
                       boolean merge)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

DLFileEntry findByPrimaryKey(long fileEntryId)
                             throws com.liferay.portal.SystemException,
                                    NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

fetchByPrimaryKey

DLFileEntry fetchByPrimaryKey(long fileEntryId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

java.util.List<DLFileEntry> findByUuid(java.lang.String uuid)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

java.util.List<DLFileEntry> findByUuid(java.lang.String uuid,
                                       int start,
                                       int end)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid

java.util.List<DLFileEntry> findByUuid(java.lang.String uuid,
                                       int start,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByUuid_First

DLFileEntry findByUuid_First(java.lang.String uuid,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByUuid_Last

DLFileEntry findByUuid_Last(java.lang.String uuid,
                            com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByUuid_PrevAndNext

DLFileEntry[] findByUuid_PrevAndNext(long fileEntryId,
                                     java.lang.String uuid,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                                     throws com.liferay.portal.SystemException,
                                            NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByCompanyId

java.util.List<DLFileEntry> findByCompanyId(long companyId)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<DLFileEntry> findByCompanyId(long companyId,
                                            int start,
                                            int end)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId

java.util.List<DLFileEntry> findByCompanyId(long companyId,
                                            int start,
                                            int end,
                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByCompanyId_First

DLFileEntry findByCompanyId_First(long companyId,
                                  com.liferay.portal.kernel.util.OrderByComparator obc)
                                  throws com.liferay.portal.SystemException,
                                         NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByCompanyId_Last

DLFileEntry findByCompanyId_Last(long companyId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByCompanyId_PrevAndNext

DLFileEntry[] findByCompanyId_PrevAndNext(long fileEntryId,
                                          long companyId,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                          throws com.liferay.portal.SystemException,
                                                 NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByFolderId

java.util.List<DLFileEntry> findByFolderId(long folderId)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

java.util.List<DLFileEntry> findByFolderId(long folderId,
                                           int start,
                                           int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId

java.util.List<DLFileEntry> findByFolderId(long folderId,
                                           int start,
                                           int end,
                                           com.liferay.portal.kernel.util.OrderByComparator obc)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByFolderId_First

DLFileEntry findByFolderId_First(long folderId,
                                 com.liferay.portal.kernel.util.OrderByComparator obc)
                                 throws com.liferay.portal.SystemException,
                                        NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByFolderId_Last

DLFileEntry findByFolderId_Last(long folderId,
                                com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException,
                                       NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByFolderId_PrevAndNext

DLFileEntry[] findByFolderId_PrevAndNext(long fileEntryId,
                                         long folderId,
                                         com.liferay.portal.kernel.util.OrderByComparator obc)
                                         throws com.liferay.portal.SystemException,
                                                NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByF_N

DLFileEntry findByF_N(long folderId,
                      java.lang.String name)
                      throws com.liferay.portal.SystemException,
                             NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

fetchByF_N

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

findByF_T

java.util.List<DLFileEntry> findByF_T(long folderId,
                                      java.lang.String title)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_T

java.util.List<DLFileEntry> findByF_T(long folderId,
                                      java.lang.String title,
                                      int start,
                                      int end)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_T

java.util.List<DLFileEntry> findByF_T(long folderId,
                                      java.lang.String title,
                                      int start,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_T_First

DLFileEntry findByF_T_First(long folderId,
                            java.lang.String title,
                            com.liferay.portal.kernel.util.OrderByComparator obc)
                            throws com.liferay.portal.SystemException,
                                   NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByF_T_Last

DLFileEntry findByF_T_Last(long folderId,
                           java.lang.String title,
                           com.liferay.portal.kernel.util.OrderByComparator obc)
                           throws com.liferay.portal.SystemException,
                                  NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findByF_T_PrevAndNext

DLFileEntry[] findByF_T_PrevAndNext(long fileEntryId,
                                    long folderId,
                                    java.lang.String title,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException,
                                           NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

findWithDynamicQuery

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

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

java.util.List<DLFileEntry> findAll()
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<DLFileEntry> findAll(int start,
                                    int end)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

java.util.List<DLFileEntry> findAll(int start,
                                    int end,
                                    com.liferay.portal.kernel.util.OrderByComparator obc)
                                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByUuid

void removeByUuid(java.lang.String uuid)
                  throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByCompanyId

void removeByCompanyId(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByFolderId

void removeByFolderId(long folderId)
                      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,
                        NoSuchFileEntryException
Throws:
com.liferay.portal.SystemException
NoSuchFileEntryException

removeByF_T

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

removeAll

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

countByUuid

int countByUuid(java.lang.String uuid)
                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByCompanyId

int countByCompanyId(long companyId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByFolderId

int countByFolderId(long folderId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countByF_N

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

countByF_T

int countByF_T(long folderId,
               java.lang.String title)
               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

int countAll()
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

registerListener

void registerListener(ModelListener listener)

unregisterListener

void unregisterListener(ModelListener listener)