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


public interface DLFileVersionPersistence

View Source

Author:
Brian Wing Shun Chan

Method Summary
 int countAll()
           
 int countByF_N_V(long folderId, java.lang.String name, double version)
           
 int countByF_N(long folderId, java.lang.String name)
           
 DLFileVersion create(long fileVersionId)
           
 DLFileVersion fetchByF_N_V(long folderId, java.lang.String name, double version)
           
 DLFileVersion fetchByPrimaryKey(long fileVersionId)
           
 java.util.List<DLFileVersion> findAll()
           
 java.util.List<DLFileVersion> findAll(int start, int end)
           
 java.util.List<DLFileVersion> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileVersion findByF_N_First(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileVersion findByF_N_Last(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileVersion[] findByF_N_PrevAndNext(long fileVersionId, long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileVersion findByF_N_V(long folderId, java.lang.String name, double version)
           
 java.util.List<DLFileVersion> findByF_N(long folderId, java.lang.String name)
           
 java.util.List<DLFileVersion> findByF_N(long folderId, java.lang.String name, int start, int end)
           
 java.util.List<DLFileVersion> findByF_N(long folderId, java.lang.String name, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 DLFileVersion findByPrimaryKey(long fileVersionId)
           
 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)
           
 DLFileVersion remove(DLFileVersion dlFileVersion)
           
 DLFileVersion remove(long fileVersionId)
           
 void removeAll()
           
 void removeByF_N_V(long folderId, java.lang.String name, double version)
           
 void removeByF_N(long folderId, java.lang.String name)
           
 void unregisterListener(ModelListener listener)
           
 DLFileVersion update(DLFileVersion dlFileVersion)
          Deprecated. Use update(DLFileVersion dlFileVersion, boolean merge).
 DLFileVersion update(DLFileVersion dlFileVersion, boolean merge)
          Add, update, or merge, the entity.
 DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge)
           
 

Method Detail

create

DLFileVersion create(long fileVersionId)

remove

DLFileVersion remove(long fileVersionId)
                     throws com.liferay.portal.SystemException,
                            NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

remove

DLFileVersion remove(DLFileVersion dlFileVersion)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

DLFileVersion update(DLFileVersion dlFileVersion)
                     throws com.liferay.portal.SystemException
Deprecated. Use update(DLFileVersion dlFileVersion, boolean merge).

Throws:
com.liferay.portal.SystemException

update

DLFileVersion update(DLFileVersion dlFileVersion,
                     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:
dlFileVersion - 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 dlFileVersion 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

DLFileVersion updateImpl(DLFileVersion dlFileVersion,
                         boolean merge)
                         throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

DLFileVersion findByPrimaryKey(long fileVersionId)
                               throws com.liferay.portal.SystemException,
                                      NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

fetchByPrimaryKey

DLFileVersion fetchByPrimaryKey(long fileVersionId)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

java.util.List<DLFileVersion> findByF_N(long folderId,
                                        java.lang.String name)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

java.util.List<DLFileVersion> findByF_N(long folderId,
                                        java.lang.String name,
                                        int start,
                                        int end)
                                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

java.util.List<DLFileVersion> 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

DLFileVersion findByF_N_First(long folderId,
                              java.lang.String name,
                              com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException,
                                     NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

findByF_N_Last

DLFileVersion findByF_N_Last(long folderId,
                             java.lang.String name,
                             com.liferay.portal.kernel.util.OrderByComparator obc)
                             throws com.liferay.portal.SystemException,
                                    NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

findByF_N_PrevAndNext

DLFileVersion[] findByF_N_PrevAndNext(long fileVersionId,
                                      long folderId,
                                      java.lang.String name,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      throws com.liferay.portal.SystemException,
                                             NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

findByF_N_V

DLFileVersion findByF_N_V(long folderId,
                          java.lang.String name,
                          double version)
                          throws com.liferay.portal.SystemException,
                                 NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

fetchByF_N_V

DLFileVersion fetchByF_N_V(long folderId,
                           java.lang.String name,
                           double version)
                           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)
                                                      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<DLFileVersion> findAll()
                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

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

findAll

java.util.List<DLFileVersion> findAll(int start,
                                      int end,
                                      com.liferay.portal.kernel.util.OrderByComparator obc)
                                      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

removeByF_N_V

void removeByF_N_V(long folderId,
                   java.lang.String name,
                   double version)
                   throws com.liferay.portal.SystemException,
                          NoSuchFileVersionException
Throws:
com.liferay.portal.SystemException
NoSuchFileVersionException

removeAll

void removeAll()
               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_N_V

int countByF_N_V(long folderId,
                 java.lang.String name,
                 double version)
                 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)