Liferay 6.0.3

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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLFileVersion>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistenceImpl
All Implemented Interfaces:
SessionFactory, BasePersistence<DLFileVersion>, DLFileVersionPersistence

public class DLFileVersionPersistenceImpl
extends BasePersistenceImpl<DLFileVersion>
implements DLFileVersionPersistence

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

Field Summary
protected  AssetEntryPersistence assetEntryPersistence
           
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  DLFileVersionPersistence dlFileVersionPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N_S
           
static FinderPath FINDER_PATH_COUNT_BY_G_F_N_V
           
static FinderPath FINDER_PATH_FETCH_BY_G_F_N_V
           
static FinderPath FINDER_PATH_FIND_ALL
           
static FinderPath FINDER_PATH_FIND_BY_G_F_N
           
static FinderPath FINDER_PATH_FIND_BY_G_F_N_S
           
protected  ResourcePersistence resourcePersistence
           
protected  UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR
 
Constructor Summary
DLFileVersionPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
           
 void cacheResult(DLFileVersion dlFileVersion)
           
 void cacheResult(List<DLFileVersion> dlFileVersions)
           
 void clearCache()
          Clears the cache for all instances of this model.
 void clearCache(DLFileVersion dlFileVersion)
          Clears the cache for one instance of this model.
 int countAll()
           
 int countByG_F_N_S(long groupId, long folderId, String name, int status)
           
 int countByG_F_N_V(long groupId, long folderId, String name, String version)
           
 int countByG_F_N(long groupId, long folderId, String name)
           
 DLFileVersion create(long fileVersionId)
           
 DLFileVersion fetchByG_F_N_V(long groupId, long folderId, String name, String version)
           
 DLFileVersion fetchByG_F_N_V(long groupId, long folderId, String name, String version, boolean retrieveFromCache)
           
 DLFileVersion fetchByPrimaryKey(long fileVersionId)
           
 DLFileVersion fetchByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or return null if it could not be found.
 List<DLFileVersion> findAll()
           
 List<DLFileVersion> findAll(int start, int end)
           
 List<DLFileVersion> findAll(int start, int end, OrderByComparator orderByComparator)
           
 DLFileVersion findByG_F_N_First(long groupId, long folderId, String name, OrderByComparator orderByComparator)
           
 DLFileVersion findByG_F_N_Last(long groupId, long folderId, String name, OrderByComparator orderByComparator)
           
 DLFileVersion[] findByG_F_N_PrevAndNext(long fileVersionId, long groupId, long folderId, String name, OrderByComparator orderByComparator)
           
 DLFileVersion findByG_F_N_S_First(long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
           
 DLFileVersion findByG_F_N_S_Last(long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
           
 DLFileVersion[] findByG_F_N_S_PrevAndNext(long fileVersionId, long groupId, long folderId, String name, int status, OrderByComparator orderByComparator)
           
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status)
           
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status, int start, int end)
           
 List<DLFileVersion> findByG_F_N_S(long groupId, long folderId, String name, int status, int start, int end, OrderByComparator orderByComparator)
           
 DLFileVersion findByG_F_N_V(long groupId, long folderId, String name, String version)
           
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name)
           
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name, int start, int end)
           
 List<DLFileVersion> findByG_F_N(long groupId, long folderId, String name, int start, int end, OrderByComparator orderByComparator)
           
 DLFileVersion findByPrimaryKey(long fileVersionId)
           
 DLFileVersion findByPrimaryKey(Serializable primaryKey)
          Finds an instance of this model by its primary key, or throw an exception if it could not be found.
protected  DLFileVersion getByG_F_N_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, String name, OrderByComparator orderByComparator, boolean previous)
           
protected  DLFileVersion getByG_F_N_S_PrevAndNext(Session session, DLFileVersion dlFileVersion, long groupId, long folderId, String name, int status, OrderByComparator orderByComparator, boolean previous)
           
 DLFileVersion remove(long fileVersionId)
           
 DLFileVersion remove(Serializable primaryKey)
          Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.
 void removeAll()
           
 void removeByG_F_N_S(long groupId, long folderId, String name, int status)
           
 void removeByG_F_N_V(long groupId, long folderId, String name, String version)
           
 void removeByG_F_N(long groupId, long folderId, String name)
           
protected  DLFileVersion removeImpl(DLFileVersion dlFileVersion)
          Removes the model instance from the database.
protected  DLFileVersion toUnwrappedModel(DLFileVersion dlFileVersion)
           
 DLFileVersion updateImpl(DLFileVersion dlFileVersion, boolean merge)
          Updates the model instance in the database or adds it if it does not yet exist.
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDialect, getListeners, openNewSession, openSession, processException, registerListener, remove, setDataSource, setSessionFactory, unregisterListener, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST

public static final String FINDER_CLASS_NAME_LIST

FINDER_PATH_FIND_BY_G_F_N

public static final FinderPath FINDER_PATH_FIND_BY_G_F_N

FINDER_PATH_COUNT_BY_G_F_N

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N

FINDER_PATH_FETCH_BY_G_F_N_V

public static final FinderPath FINDER_PATH_FETCH_BY_G_F_N_V

FINDER_PATH_COUNT_BY_G_F_N_V

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N_V

FINDER_PATH_FIND_BY_G_F_N_S

public static final FinderPath FINDER_PATH_FIND_BY_G_F_N_S

FINDER_PATH_COUNT_BY_G_F_N_S

public static final FinderPath FINDER_PATH_COUNT_BY_G_F_N_S

FINDER_PATH_FIND_ALL

public static final FinderPath FINDER_PATH_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

dlFileEntryPersistence

@BeanReference(type=DLFileEntryPersistence.class)
protected DLFileEntryPersistence dlFileEntryPersistence

dlFileRankPersistence

@BeanReference(type=DLFileRankPersistence.class)
protected DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=DLFileShortcutPersistence.class)
protected DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=DLFileVersionPersistence.class)
protected DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=DLFolderPersistence.class)
protected DLFolderPersistence dlFolderPersistence

resourcePersistence

@BeanReference(type=ResourcePersistence.class)
protected ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=UserPersistence.class)
protected UserPersistence userPersistence

assetEntryPersistence

@BeanReference(type=AssetEntryPersistence.class)
protected AssetEntryPersistence assetEntryPersistence
Constructor Detail

DLFileVersionPersistenceImpl

public DLFileVersionPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(DLFileVersion dlFileVersion)
Specified by:
cacheResult in interface DLFileVersionPersistence

cacheResult

public void cacheResult(List<DLFileVersion> dlFileVersions)
Specified by:
cacheResult in interface DLFileVersionPersistence

clearCache

public void clearCache()
Description copied from interface: BasePersistence
Clears the cache for all instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Caching information and settings can be found in portal.properties

Specified by:
clearCache in interface BasePersistence<DLFileVersion>
Overrides:
clearCache in class BasePersistenceImpl<DLFileVersion>

clearCache

public void clearCache(DLFileVersion dlFileVersion)
Description copied from interface: BasePersistence
Clears the cache for one instance of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLFileVersion>
Overrides:
clearCache in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the instance of this model to clear the cache for

create

public DLFileVersion create(long fileVersionId)
Specified by:
create in interface DLFileVersionPersistence

remove

public DLFileVersion remove(Serializable primaryKey)
                     throws NoSuchModelException,
                            SystemException
Description copied from interface: BasePersistence
Removes the model instance identified by the primary key from the database, and notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLFileVersion>
Overrides:
remove in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - the primary key of the model instance to remove
Returns:
the model instance that was removed
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if a system exception occurred

remove

public DLFileVersion remove(long fileVersionId)
                     throws NoSuchFileVersionException,
                            SystemException
Specified by:
remove in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

removeImpl

protected DLFileVersion removeImpl(DLFileVersion dlFileVersion)
                            throws SystemException
Description copied from class: BasePersistenceImpl
Removes the model instance from the database. BasePersistenceImpl.update(BaseModel, boolean) depends on this method to implement the remove operation; it only notifies the model listeners.

Overrides:
removeImpl in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DLFileVersion updateImpl(DLFileVersion dlFileVersion,
                                boolean merge)
                         throws SystemException
Description copied from class: BasePersistenceImpl
Updates the model instance in the database or adds it if it does not yet exist. BasePersistenceImpl.remove(BaseModel) depends on this method to implement the update operation; it only notifies the model listeners.

Specified by:
updateImpl in interface DLFileVersionPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLFileVersion>
Parameters:
dlFileVersion - the model instance to update
merge - whether to merge the model instance with the current session. See BatchSession.update( com.liferay.portal.kernel.dao.orm.Session, BaseModel, boolean) for an explanation.
Returns:
the model instance that was updated
Throws:
SystemException - if a system exception occurred

toUnwrappedModel

protected DLFileVersion toUnwrappedModel(DLFileVersion dlFileVersion)

findByPrimaryKey

public DLFileVersion findByPrimaryKey(Serializable primaryKey)
                               throws NoSuchModelException,
                                      SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or throw an exception if it could not be found.

Specified by:
findByPrimaryKey in interface BasePersistence<DLFileVersion>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance
Throws:
NoSuchModelException - if an instance of this model with the primary key does not exist
SystemException - if the primary key is null, or if a system exception occurred

findByPrimaryKey

public DLFileVersion findByPrimaryKey(long fileVersionId)
                               throws NoSuchFileVersionException,
                                      SystemException
Specified by:
findByPrimaryKey in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

fetchByPrimaryKey

public DLFileVersion fetchByPrimaryKey(Serializable primaryKey)
                                throws SystemException
Description copied from interface: BasePersistence
Finds an instance of this model by its primary key, or return null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLFileVersion>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<DLFileVersion>
Parameters:
primaryKey - the primary key of the model instance to find
Returns:
the model instance, or null if an instance of this model with the primary key does not exist
Throws:
SystemException - if the primary key is null, or if a system exception occurred

fetchByPrimaryKey

public DLFileVersion fetchByPrimaryKey(long fileVersionId)
                                throws SystemException
Specified by:
fetchByPrimaryKey in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name)
                                throws SystemException
Specified by:
findByG_F_N in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name,
                                       int start,
                                       int end)
                                throws SystemException
Specified by:
findByG_F_N in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N

public List<DLFileVersion> findByG_F_N(long groupId,
                                       long folderId,
                                       String name,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Specified by:
findByG_F_N in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N_First

public DLFileVersion findByG_F_N_First(long groupId,
                                       long folderId,
                                       String name,
                                       OrderByComparator orderByComparator)
                                throws NoSuchFileVersionException,
                                       SystemException
Specified by:
findByG_F_N_First in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

findByG_F_N_Last

public DLFileVersion findByG_F_N_Last(long groupId,
                                      long folderId,
                                      String name,
                                      OrderByComparator orderByComparator)
                               throws NoSuchFileVersionException,
                                      SystemException
Specified by:
findByG_F_N_Last in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

findByG_F_N_PrevAndNext

public DLFileVersion[] findByG_F_N_PrevAndNext(long fileVersionId,
                                               long groupId,
                                               long folderId,
                                               String name,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchFileVersionException,
                                               SystemException
Specified by:
findByG_F_N_PrevAndNext in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

getByG_F_N_PrevAndNext

protected DLFileVersion getByG_F_N_PrevAndNext(Session session,
                                               DLFileVersion dlFileVersion,
                                               long groupId,
                                               long folderId,
                                               String name,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByG_F_N_V

public DLFileVersion findByG_F_N_V(long groupId,
                                   long folderId,
                                   String name,
                                   String version)
                            throws NoSuchFileVersionException,
                                   SystemException
Specified by:
findByG_F_N_V in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

fetchByG_F_N_V

public DLFileVersion fetchByG_F_N_V(long groupId,
                                    long folderId,
                                    String name,
                                    String version)
                             throws SystemException
Specified by:
fetchByG_F_N_V in interface DLFileVersionPersistence
Throws:
SystemException

fetchByG_F_N_V

public DLFileVersion fetchByG_F_N_V(long groupId,
                                    long folderId,
                                    String name,
                                    String version,
                                    boolean retrieveFromCache)
                             throws SystemException
Specified by:
fetchByG_F_N_V in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status)
                                  throws SystemException
Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         int start,
                                         int end)
                                  throws SystemException
Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N_S

public List<DLFileVersion> findByG_F_N_S(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         int start,
                                         int end,
                                         OrderByComparator orderByComparator)
                                  throws SystemException
Specified by:
findByG_F_N_S in interface DLFileVersionPersistence
Throws:
SystemException

findByG_F_N_S_First

public DLFileVersion findByG_F_N_S_First(long groupId,
                                         long folderId,
                                         String name,
                                         int status,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchFileVersionException,
                                         SystemException
Specified by:
findByG_F_N_S_First in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

findByG_F_N_S_Last

public DLFileVersion findByG_F_N_S_Last(long groupId,
                                        long folderId,
                                        String name,
                                        int status,
                                        OrderByComparator orderByComparator)
                                 throws NoSuchFileVersionException,
                                        SystemException
Specified by:
findByG_F_N_S_Last in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

findByG_F_N_S_PrevAndNext

public DLFileVersion[] findByG_F_N_S_PrevAndNext(long fileVersionId,
                                                 long groupId,
                                                 long folderId,
                                                 String name,
                                                 int status,
                                                 OrderByComparator orderByComparator)
                                          throws NoSuchFileVersionException,
                                                 SystemException
Specified by:
findByG_F_N_S_PrevAndNext in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

getByG_F_N_S_PrevAndNext

protected DLFileVersion getByG_F_N_S_PrevAndNext(Session session,
                                                 DLFileVersion dlFileVersion,
                                                 long groupId,
                                                 long folderId,
                                                 String name,
                                                 int status,
                                                 OrderByComparator orderByComparator,
                                                 boolean previous)

findAll

public List<DLFileVersion> findAll()
                            throws SystemException
Specified by:
findAll in interface DLFileVersionPersistence
Throws:
SystemException

findAll

public List<DLFileVersion> findAll(int start,
                                   int end)
                            throws SystemException
Specified by:
findAll in interface DLFileVersionPersistence
Throws:
SystemException

findAll

public List<DLFileVersion> findAll(int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Specified by:
findAll in interface DLFileVersionPersistence
Throws:
SystemException

removeByG_F_N

public void removeByG_F_N(long groupId,
                          long folderId,
                          String name)
                   throws SystemException
Specified by:
removeByG_F_N in interface DLFileVersionPersistence
Throws:
SystemException

removeByG_F_N_V

public void removeByG_F_N_V(long groupId,
                            long folderId,
                            String name,
                            String version)
                     throws NoSuchFileVersionException,
                            SystemException
Specified by:
removeByG_F_N_V in interface DLFileVersionPersistence
Throws:
NoSuchFileVersionException
SystemException

removeByG_F_N_S

public void removeByG_F_N_S(long groupId,
                            long folderId,
                            String name,
                            int status)
                     throws SystemException
Specified by:
removeByG_F_N_S in interface DLFileVersionPersistence
Throws:
SystemException

removeAll

public void removeAll()
               throws SystemException
Specified by:
removeAll in interface DLFileVersionPersistence
Throws:
SystemException

countByG_F_N

public int countByG_F_N(long groupId,
                        long folderId,
                        String name)
                 throws SystemException
Specified by:
countByG_F_N in interface DLFileVersionPersistence
Throws:
SystemException

countByG_F_N_V

public int countByG_F_N_V(long groupId,
                          long folderId,
                          String name,
                          String version)
                   throws SystemException
Specified by:
countByG_F_N_V in interface DLFileVersionPersistence
Throws:
SystemException

countByG_F_N_S

public int countByG_F_N_S(long groupId,
                          long folderId,
                          String name,
                          int status)
                   throws SystemException
Specified by:
countByG_F_N_S in interface DLFileVersionPersistence
Throws:
SystemException

countAll

public int countAll()
             throws SystemException
Specified by:
countAll in interface DLFileVersionPersistence
Throws:
SystemException

afterPropertiesSet

public void afterPropertiesSet()

Liferay 6.0.3