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

java.lang.Object
  extended bycom.liferay.portlet.documentlibrary.service.persistence.DLFileVersionUtil

public class DLFileVersionUtil
extends java.lang.Object

View Source

Author:
Brian Wing Shun Chan

Constructor Summary
DLFileVersionUtil()
           
 
Method Summary
static int countAll()
           
static int countByF_N_V(long folderId, java.lang.String name, double version)
           
static int countByF_N(long folderId, java.lang.String name)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion create(long fileVersionId)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(long folderId, java.lang.String name, double version)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(long fileVersionId)
           
static java.util.List findAll()
           
static java.util.List findAll(int begin, int end)
           
static java.util.List findAll(int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_First(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_Last(long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion[] findByF_N_PrevAndNext(long fileVersionId, long folderId, java.lang.String name, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion findByF_N_V(long folderId, java.lang.String name, double version)
           
static java.util.List findByF_N(long folderId, java.lang.String name)
           
static java.util.List findByF_N(long folderId, java.lang.String name, int begin, int end)
           
static java.util.List findByF_N(long folderId, java.lang.String name, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(long fileVersionId)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
static DLFileVersionPersistence getPersistence()
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(long fileVersionId)
           
static void removeAll()
           
static void removeByF_N_V(long folderId, java.lang.String name, double version)
           
static void removeByF_N(long folderId, java.lang.String name)
           
 void setPersistence(DLFileVersionPersistence persistence)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion update(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
           
static com.liferay.portlet.documentlibrary.model.DLFileVersion update(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion, boolean merge)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileVersionUtil

public DLFileVersionUtil()
Method Detail

create

public static com.liferay.portlet.documentlibrary.model.DLFileVersion create(long fileVersionId)

remove

public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(long fileVersionId)
                                                                      throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portlet.documentlibrary.NoSuchFileVersionException
com.liferay.portal.SystemException

remove

public static com.liferay.portlet.documentlibrary.model.DLFileVersion remove(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion)
                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

update

public static com.liferay.portlet.documentlibrary.model.DLFileVersion update(com.liferay.portlet.documentlibrary.model.DLFileVersion dlFileVersion,
                                                                             boolean merge)
                                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByPrimaryKey

public static com.liferay.portlet.documentlibrary.model.DLFileVersion findByPrimaryKey(long fileVersionId)
                                                                                throws com.liferay.portlet.documentlibrary.NoSuchFileVersionException,
                                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portlet.documentlibrary.NoSuchFileVersionException
com.liferay.portal.SystemException

fetchByPrimaryKey

public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByPrimaryKey(long fileVersionId)
                                                                                 throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

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

findByF_N

public static java.util.List findByF_N(long folderId,
                                       java.lang.String name,
                                       int begin,
                                       int end)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N

public static java.util.List findByF_N(long folderId,
                                       java.lang.String name,
                                       int begin,
                                       int end,
                                       com.liferay.portal.kernel.util.OrderByComparator obc)
                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findByF_N_First

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

findByF_N_Last

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

findByF_N_PrevAndNext

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

findByF_N_V

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

fetchByF_N_V

public static com.liferay.portlet.documentlibrary.model.DLFileVersion fetchByF_N_V(long folderId,
                                                                                   java.lang.String name,
                                                                                   double version)
                                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findWithDynamicQuery

public static java.util.List findWithDynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                                  int begin,
                                                  int end)
                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll()
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

findAll

public static java.util.List findAll(int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

removeByF_N

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

removeByF_N_V

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

removeAll

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

countByF_N

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

countByF_N_V

public static int countByF_N_V(long folderId,
                               java.lang.String name,
                               double version)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

countAll

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

getPersistence

public static DLFileVersionPersistence getPersistence()

setPersistence

public void setPersistence(DLFileVersionPersistence persistence)