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

java.lang.Object
  extended by com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
      extended by com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceImpl
All Implemented Interfaces:
com.liferay.portal.kernel.dao.orm.SessionFactory, com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>, com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence

public class DLContentPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
implements com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence

The persistence implementation for the document library content service.

Caching information and settings can be found in portal.properties

Author:
Brian Wing Shun Chan
See Also:
DLContentPersistence, DLContentUtil
Generated:

Field Summary
protected  com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence dlContentPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence dlFileEntryTypePersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence
           
protected  com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence dlSyncPersistence
           
static java.lang.String FINDER_CLASS_NAME_ENTITY
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_LIKEP
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P_V
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_R_P_V
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_LIKEP
           
static com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P
           
protected  com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence
           
protected  com.liferay.portal.service.persistence.UserPersistence userPersistence
           
 
Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, 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
DLContentPersistenceImpl()
           
 
Method Summary
 void afterPropertiesSet()
          Initializes the document library content persistence.
 void cacheResult(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
          Caches the document library content in the entity cache if it is enabled.
 void cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
          Caches the document library contents in the entity cache if it is enabled.
 void clearCache()
          Clears the cache for all document library contents.
 void clearCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
          Clears the cache for the document library content.
 void clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
           
protected  void clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
           
 int countAll()
          Returns the number of document library contents.
 int countByC_R_LikeP(long companyId, long repositoryId, java.lang.String path)
          Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 int countByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version)
          Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.
 int countByC_R_P(long companyId, long repositoryId, java.lang.String path)
          Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.
 int countByC_R(long companyId, long repositoryId)
          Returns the number of document library contents where companyId = ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLContent create(long contentId)
          Creates a new document library content with the primary key.
 void destroy()
           
 com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version)
          Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version, boolean retrieveFromCache)
          Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache.
 com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(long contentId)
          Returns the document library content with the primary key or returns null if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(java.io.Serializable primaryKey)
          Returns the document library content with the primary key or returns null if it could not be found.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll()
          Returns all the document library contents.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start, int end)
          Returns a range of all the document library contents.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path)
          Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, java.lang.String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version)
          Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path)
          Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId, long repositoryId, java.lang.String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId, long repositoryId)
          Returns all the document library contents where companyId = ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId, long repositoryId, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ?.
 java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
 com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(long contentId)
          Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.
 com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(java.io.Serializable primaryKey)
          Returns the document library content with the primary key or throws a NoSuchModelException if it could not be found.
protected  com.liferay.portlet.documentlibrary.model.DLContent getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.documentlibrary.model.DLContent dlContent, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.documentlibrary.model.DLContent getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.documentlibrary.model.DLContent dlContent, long companyId, long repositoryId, java.lang.String path, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
protected  com.liferay.portlet.documentlibrary.model.DLContent getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.portlet.documentlibrary.model.DLContent dlContent, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean previous)
           
 com.liferay.portlet.documentlibrary.model.DLContent remove(long contentId)
          Removes the document library content with the primary key from the database.
 com.liferay.portlet.documentlibrary.model.DLContent remove(java.io.Serializable primaryKey)
          Removes the document library content with the primary key from the database.
 void removeAll()
          Removes all the document library contents from the database.
 void removeByC_R_LikeP(long companyId, long repositoryId, java.lang.String path)
          Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
 void removeByC_R_P_V(long companyId, long repositoryId, java.lang.String path, java.lang.String version)
          Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.
 void removeByC_R_P(long companyId, long repositoryId, java.lang.String path)
          Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.
 void removeByC_R(long companyId, long repositoryId)
          Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
protected  com.liferay.portlet.documentlibrary.model.DLContent removeImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
           
protected  com.liferay.portlet.documentlibrary.model.DLContent toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
           
 com.liferay.portlet.documentlibrary.model.DLContent updateImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent, boolean merge)
           
 
Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl
appendOrderByComparator, closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getDB, 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
closeSession, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, getDataSource, getListeners, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
 

Field Detail

FINDER_CLASS_NAME_ENTITY

public static final java.lang.String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R

FINDER_PATH_COUNT_BY_C_R

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P

FINDER_PATH_COUNT_BY_C_R_P

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_LIKEP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_LIKEP

FINDER_PATH_COUNT_BY_C_R_LIKEP

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_LIKEP

FINDER_PATH_FETCH_BY_C_R_P_V

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_R_P_V

FINDER_PATH_COUNT_BY_C_R_P_V

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P_V

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL

dlContentPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence dlContentPersistence

dlFileEntryPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence dlFileEntryPersistence

dlFileEntryMetadataPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence

dlFileEntryTypePersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence dlFileEntryTypePersistence

dlFileRankPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence dlFileRankPersistence

dlFileShortcutPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence dlFileShortcutPersistence

dlFileVersionPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence dlFileVersionPersistence

dlFolderPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence dlFolderPersistence

dlSyncPersistence

@BeanReference(type=com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence.class)
protected com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence dlSyncPersistence

resourcePersistence

@BeanReference(type=com.liferay.portal.service.persistence.ResourcePersistence.class)
protected com.liferay.portal.service.persistence.ResourcePersistence resourcePersistence

userPersistence

@BeanReference(type=com.liferay.portal.service.persistence.UserPersistence.class)
protected com.liferay.portal.service.persistence.UserPersistence userPersistence
Constructor Detail

DLContentPersistenceImpl

public DLContentPersistenceImpl()
Method Detail

cacheResult

public void cacheResult(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
Caches the document library content in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
dlContent - the document library content

cacheResult

public void cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled.

Specified by:
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
dlContents - the document library contents

clearCache

public void clearCache()
Clears the cache for all document library contents.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>

clearCache

public void clearCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
Clears the cache for the document library content.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>

clearCache

public void clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
Specified by:
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>

clearUniqueFindersCache

protected void clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)

create

public com.liferay.portlet.documentlibrary.model.DLContent create(long contentId)
Creates a new document library content with the primary key. Does not add the document library content to the database.

Specified by:
create in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key for the new document library content
Returns:
the new document library content

remove

public com.liferay.portlet.documentlibrary.model.DLContent remove(long contentId)
                                                           throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content that was removed
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

remove

public com.liferay.portlet.documentlibrary.model.DLContent remove(java.io.Serializable primaryKey)
                                                           throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                  com.liferay.portal.kernel.exception.SystemException
Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
Parameters:
primaryKey - the primary key of the document library content
Returns:
the document library content that was removed
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeImpl

protected com.liferay.portlet.documentlibrary.model.DLContent removeImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
                                                                  throws com.liferay.portal.kernel.exception.SystemException
Overrides:
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
Throws:
com.liferay.portal.kernel.exception.SystemException

updateImpl

public com.liferay.portlet.documentlibrary.model.DLContent updateImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent,
                                                                      boolean merge)
                                                               throws com.liferay.portal.kernel.exception.SystemException
Specified by:
updateImpl in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Overrides:
updateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
Throws:
com.liferay.portal.kernel.exception.SystemException

toUnwrappedModel

protected com.liferay.portlet.documentlibrary.model.DLContent toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLContent dlContent)

findByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(java.io.Serializable primaryKey)
                                                                     throws com.liferay.portal.NoSuchModelException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the document library content with the primary key or throws a NoSuchModelException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
Parameters:
primaryKey - the primary key of the document library content
Returns:
the document library content
Throws:
com.liferay.portal.NoSuchModelException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(long contentId)
                                                                     throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.

Specified by:
findByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(java.io.Serializable primaryKey)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the document library content with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>
Overrides:
fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
Parameters:
primaryKey - the primary key of the document library content
Returns:
the document library content, or null if a document library content with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByPrimaryKey

public com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(long contentId)
                                                                      throws com.liferay.portal.kernel.exception.SystemException
Returns the document library content with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content, or null if a document library content with the primary key could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
                                                                                     long repositoryId)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns all the document library contents where companyId = ? and repositoryId = ?.

Specified by:
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
                                                                                     long repositoryId,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the document library contents where companyId = ? and repositoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
Returns:
the range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
                                                                                     long repositoryId,
                                                                                     int start,
                                                                                     int end,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_First

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(long companyId,
                                                                           long repositoryId,
                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                    throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                           com.liferay.portal.kernel.exception.SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_Last

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(long companyId,
                                                                          long repositoryId,
                                                                          com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                   throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                          com.liferay.portal.kernel.exception.SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_PrevAndNext

public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(long contentId,
                                                                                   long companyId,
                                                                                   long repositoryId,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                                   com.liferay.portal.kernel.exception.SystemException
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the current document library content
companyId - the company ID
repositoryId - the repository ID
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_R_PrevAndNext

protected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                   com.liferay.portlet.documentlibrary.model.DLContent dlContent,
                                                                                   long companyId,
                                                                                   long repositoryId,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                   boolean previous)

findByC_R_P

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
                                                                                       long repositoryId,
                                                                                       java.lang.String path)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.

Specified by:
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_P

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
                                                                                       long repositoryId,
                                                                                       java.lang.String path,
                                                                                       int start,
                                                                                       int end)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
Returns:
the range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_P

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
                                                                                       long repositoryId,
                                                                                       java.lang.String path,
                                                                                       int start,
                                                                                       int end,
                                                                                       com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_P_First

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(long companyId,
                                                                             long repositoryId,
                                                                             java.lang.String path,
                                                                             com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                      throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                             com.liferay.portal.kernel.exception.SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_P_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_P_Last

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(long companyId,
                                                                            long repositoryId,
                                                                            java.lang.String path,
                                                                            com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                     throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                            com.liferay.portal.kernel.exception.SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_P_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_P_PrevAndNext

public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(long contentId,
                                                                                     long companyId,
                                                                                     long repositoryId,
                                                                                     java.lang.String path,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                              throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                                     com.liferay.portal.kernel.exception.SystemException
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_P_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the current document library content
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_R_P_PrevAndNext

protected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                     com.liferay.portlet.documentlibrary.model.DLContent dlContent,
                                                                                     long companyId,
                                                                                     long repositoryId,
                                                                                     java.lang.String path,
                                                                                     com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                     boolean previous)

findByC_R_LikeP

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
                                                                                           long repositoryId,
                                                                                           java.lang.String path)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_LikeP

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
                                                                                           long repositoryId,
                                                                                           java.lang.String path,
                                                                                           int start,
                                                                                           int end)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
Returns:
the range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_LikeP

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
                                                                                           long repositoryId,
                                                                                           java.lang.String path,
                                                                                           int start,
                                                                                           int end,
                                                                                           com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                    throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_LikeP_First

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(long companyId,
                                                                                 long repositoryId,
                                                                                 java.lang.String path,
                                                                                 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                          throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                                 com.liferay.portal.kernel.exception.SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_LikeP_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the first matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_LikeP_Last

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(long companyId,
                                                                                long repositoryId,
                                                                                java.lang.String path,
                                                                                com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                         throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                                com.liferay.portal.kernel.exception.SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_LikeP_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the last matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findByC_R_LikeP_PrevAndNext

public com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(long contentId,
                                                                                         long companyId,
                                                                                         long repositoryId,
                                                                                         java.lang.String path,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                                  throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findByC_R_LikeP_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
contentId - the primary key of the current document library content
companyId - the company ID
repositoryId - the repository ID
path - the path
orderByComparator - the comparator to order the set by (optionally null)
Returns:
the previous, current, and next document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

getByC_R_LikeP_PrevAndNext

protected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
                                                                                         com.liferay.portlet.documentlibrary.model.DLContent dlContent,
                                                                                         long companyId,
                                                                                         long repositoryId,
                                                                                         java.lang.String path,
                                                                                         com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
                                                                                         boolean previous)

findByC_R_P_V

public com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_V(long companyId,
                                                                         long repositoryId,
                                                                         java.lang.String path,
                                                                         java.lang.String version)
                                                                  throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                                                                         com.liferay.portal.kernel.exception.SystemException
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found.

Specified by:
findByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Returns:
the matching document library content
Throws:
com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be found
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_R_P_V

public com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId,
                                                                          long repositoryId,
                                                                          java.lang.String path,
                                                                          java.lang.String version)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found. Uses the finder cache.

Specified by:
fetchByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Returns:
the matching document library content, or null if a matching document library content could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

fetchByC_R_P_V

public com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId,
                                                                          long repositoryId,
                                                                          java.lang.String path,
                                                                          java.lang.String version,
                                                                          boolean retrieveFromCache)
                                                                   throws com.liferay.portal.kernel.exception.SystemException
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache.

Specified by:
fetchByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
retrieveFromCache - whether to use the finder cache
Returns:
the matching document library content, or null if a matching document library content could not be found
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll()
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns all the document library contents.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Returns:
the document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start,
                                                                                   int end)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns a range of all the document library contents.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
Returns:
the range of document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

findAll

public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start,
                                                                                   int end,
                                                                                   com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
                                                                            throws com.liferay.portal.kernel.exception.SystemException
Returns an ordered range of all the document library contents.

Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set.

Specified by:
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
start - the lower bound of the range of document library contents
end - the upper bound of the range of document library contents (not inclusive)
orderByComparator - the comparator to order the results by (optionally null)
Returns:
the ordered range of document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_R

public void removeByC_R(long companyId,
                        long repositoryId)
                 throws com.liferay.portal.kernel.exception.SystemException
Removes all the document library contents where companyId = ? and repositoryId = ? from the database.

Specified by:
removeByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_R_P

public void removeByC_R_P(long companyId,
                          long repositoryId,
                          java.lang.String path)
                   throws com.liferay.portal.kernel.exception.SystemException
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.

Specified by:
removeByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_R_LikeP

public void removeByC_R_LikeP(long companyId,
                              long repositoryId,
                              java.lang.String path)
                       throws com.liferay.portal.kernel.exception.SystemException
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.

Specified by:
removeByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

removeByC_R_P_V

public void removeByC_R_P_V(long companyId,
                            long repositoryId,
                            java.lang.String path,
                            java.lang.String version)
                     throws com.liferay.portlet.documentlibrary.NoSuchContentException,
                            com.liferay.portal.kernel.exception.SystemException
Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.

Specified by:
removeByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred
com.liferay.portlet.documentlibrary.NoSuchContentException

removeAll

public void removeAll()
               throws com.liferay.portal.kernel.exception.SystemException
Removes all the document library contents from the database.

Specified by:
removeAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_R

public int countByC_R(long companyId,
                      long repositoryId)
               throws com.liferay.portal.kernel.exception.SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ?.

Specified by:
countByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the number of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_R_P

public int countByC_R_P(long companyId,
                        long repositoryId,
                        java.lang.String path)
                 throws com.liferay.portal.kernel.exception.SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.

Specified by:
countByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the number of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_R_LikeP

public int countByC_R_LikeP(long companyId,
                            long repositoryId,
                            java.lang.String path)
                     throws com.liferay.portal.kernel.exception.SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
countByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the number of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countByC_R_P_V

public int countByC_R_P_V(long companyId,
                          long repositoryId,
                          java.lang.String path,
                          java.lang.String version)
                   throws com.liferay.portal.kernel.exception.SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.

Specified by:
countByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Returns:
the number of matching document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

countAll

public int countAll()
             throws com.liferay.portal.kernel.exception.SystemException
Returns the number of document library contents.

Specified by:
countAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Returns:
the number of document library contents
Throws:
com.liferay.portal.kernel.exception.SystemException - if a system exception occurred

afterPropertiesSet

public void afterPropertiesSet()
Initializes the document library content persistence.


destroy

public void destroy()