Liferay 6.1.2-ce-ga3

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

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

public class DLContentPersistenceImpl
extends BasePersistenceImpl<DLContent>
implements DLContentPersistence

The persistence implementation for the document library content service.

Caching information and settings can be found in portal.properties

See Also:
DLContentPersistence, DLContentUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
protected  DLContentPersistence dlContentPersistence
           
protected  DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence
           
protected  DLFileEntryPersistence dlFileEntryPersistence
           
protected  DLFileEntryTypePersistence dlFileEntryTypePersistence
           
protected  DLFileRankPersistence dlFileRankPersistence
           
protected  DLFileShortcutPersistence dlFileShortcutPersistence
           
protected  DLFileVersionPersistence dlFileVersionPersistence
           
protected  DLFolderPersistence dlFolderPersistence
           
protected  DLSyncPersistence dlSyncPersistence
           
static String FINDER_CLASS_NAME_ENTITY
           
static String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
           
static String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
           
static FinderPath FINDER_PATH_COUNT_ALL
           
static FinderPath FINDER_PATH_COUNT_BY_C_R
           
static FinderPath FINDER_PATH_COUNT_BY_C_R_P
           
static FinderPath FINDER_PATH_COUNT_BY_C_R_P_V
           
static FinderPath FINDER_PATH_FETCH_BY_C_R_P_V
           
static FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP
           
static FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R
           
static FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P
           
protected  ResourcePersistence resourcePersistence
           
protected  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(DLContent dlContent)
          Caches the document library content in the entity cache if it is enabled.
 void cacheResult(List<DLContent> dlContents)
          Caches the document library contents in the entity cache if it is enabled.
protected  void cacheUniqueFindersCache(DLContent dlContent)
           
 void clearCache()
          Clears the cache for all document library contents.
 void clearCache(DLContent dlContent)
          Clears the cache for the document library content.
 void clearCache(List<DLContent> dlContents)
          Clears the cache for a List instances of this model.
protected  void clearUniqueFindersCache(DLContent dlContent)
           
 int countAll()
          Returns the number of document library contents.
 int countByC_R_LikeP(long companyId, long repositoryId, 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, String path, 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, 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 = ?.
 DLContent create(long contentId)
          Creates a new document library content with the primary key.
 void destroy()
           
 DLContent fetchByC_R_First(long companyId, long repositoryId, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
 DLContent fetchByC_R_Last(long companyId, long repositoryId, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
 DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 DLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 DLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version)
          Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found.
 DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, 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.
 DLContent fetchByPrimaryKey(long contentId)
          Returns the document library content with the primary key or returns null if it could not be found.
 DLContent fetchByPrimaryKey(Serializable primaryKey)
          Returns the document library content with the primary key or returns null if it could not be found.
 List<DLContent> findAll()
          Returns all the document library contents.
 List<DLContent> findAll(int start, int end)
          Returns a range of all the document library contents.
 List<DLContent> findAll(int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents.
 DLContent findByC_R_First(long companyId, long repositoryId, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
 DLContent findByC_R_Last(long companyId, long repositoryId, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
 DLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
 DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, 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 ?.
 List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path)
          Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
 DLContent findByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 DLContent findByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator orderByComparator)
          Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
 DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, 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 = ?.
 DLContent findByC_R_P_V(long companyId, long repositoryId, String path, 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.
 List<DLContent> findByC_R_P(long companyId, long repositoryId, String path)
          Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
 DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, OrderByComparator orderByComparator)
          Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
 List<DLContent> findByC_R(long companyId, long repositoryId)
          Returns all the document library contents where companyId = ? and repositoryId = ?.
 List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end)
          Returns a range of all the document library contents where companyId = ? and repositoryId = ?.
 List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, OrderByComparator orderByComparator)
          Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
 DLContent findByPrimaryKey(long contentId)
          Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.
 DLContent findByPrimaryKey(Serializable primaryKey)
          Returns the document library content with the primary key or throws a NoSuchModelException if it could not be found.
protected  DLContent getByC_R_LikeP_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, String path, OrderByComparator orderByComparator, boolean previous)
           
protected  DLContent getByC_R_P_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, String path, OrderByComparator orderByComparator, boolean previous)
           
protected  DLContent getByC_R_PrevAndNext(Session session, DLContent dlContent, long companyId, long repositoryId, OrderByComparator orderByComparator, boolean previous)
           
 DLContent remove(long contentId)
          Removes the document library content with the primary key from the database.
 DLContent remove(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, String path)
          Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
 DLContent removeByC_R_P_V(long companyId, long repositoryId, String path, 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, 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  DLContent removeImpl(DLContent dlContent)
          Removes the model instance from the database.
protected  DLContent toUnwrappedModel(DLContent dlContent)
           
 DLContent updateImpl(DLContent dlContent, 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, getClassLoader, 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 String FINDER_CLASS_NAME_ENTITY

FINDER_CLASS_NAME_LIST_WITH_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION

FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

public static final String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R

FINDER_PATH_COUNT_BY_C_R

public static final FinderPath FINDER_PATH_COUNT_BY_C_R

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P

FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P

FINDER_PATH_COUNT_BY_C_R_P

public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P

FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP

FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP

public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP

FINDER_PATH_FETCH_BY_C_R_P_V

public static final FinderPath FINDER_PATH_FETCH_BY_C_R_P_V

FINDER_PATH_COUNT_BY_C_R_P_V

public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P_V

FINDER_PATH_WITH_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL

FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL

FINDER_PATH_COUNT_ALL

public static final FinderPath FINDER_PATH_COUNT_ALL

dlContentPersistence

@BeanReference(type=DLContentPersistence.class)
protected DLContentPersistence dlContentPersistence

dlFileEntryPersistence

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

dlFileEntryMetadataPersistence

@BeanReference(type=DLFileEntryMetadataPersistence.class)
protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence

dlFileEntryTypePersistence

@BeanReference(type=DLFileEntryTypePersistence.class)
protected DLFileEntryTypePersistence dlFileEntryTypePersistence

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

dlSyncPersistence

@BeanReference(type=DLSyncPersistence.class)
protected DLSyncPersistence dlSyncPersistence

resourcePersistence

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

userPersistence

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

DLContentPersistenceImpl

public DLContentPersistenceImpl()
Method Detail

cacheResult

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

Specified by:
cacheResult in interface DLContentPersistence
Parameters:
dlContent - the document library content

cacheResult

public void cacheResult(List<DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled.

Specified by:
cacheResult in interface 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 BasePersistence<DLContent>
Overrides:
clearCache in class BasePersistenceImpl<DLContent>

clearCache

public void clearCache(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 BasePersistence<DLContent>
Overrides:
clearCache in class BasePersistenceImpl<DLContent>
Parameters:
dlContent - the instance of this model to clear the cache for

clearCache

public void clearCache(List<DLContent> dlContents)
Description copied from interface: BasePersistence
Clears the cache for a List instances of this model.

The EntityCache and FinderCache are both cleared by this method.

Specified by:
clearCache in interface BasePersistence<DLContent>
Overrides:
clearCache in class BasePersistenceImpl<DLContent>
Parameters:
dlContents - the List instances of this model to clear the cache for

cacheUniqueFindersCache

protected void cacheUniqueFindersCache(DLContent dlContent)

clearUniqueFindersCache

protected void clearUniqueFindersCache(DLContent dlContent)

create

public 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 DLContentPersistence
Parameters:
contentId - the primary key for the new document library content
Returns:
the new document library content

remove

public DLContent remove(long contentId)
                 throws NoSuchContentException,
                        SystemException
Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface DLContentPersistence
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content that was removed
Throws:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

remove

public DLContent remove(Serializable primaryKey)
                 throws NoSuchContentException,
                        SystemException
Removes the document library content with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
remove in interface BasePersistence<DLContent>
Overrides:
remove in class BasePersistenceImpl<DLContent>
Parameters:
primaryKey - the primary key of the document library content
Returns:
the document library content that was removed
Throws:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

removeImpl

protected DLContent removeImpl(DLContent dlContent)
                        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<DLContent>
Parameters:
dlContent - the model instance to remove
Returns:
the model instance that was removed
Throws:
SystemException - if a system exception occurred

updateImpl

public DLContent updateImpl(DLContent dlContent,
                            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 DLContentPersistence
Overrides:
updateImpl in class BasePersistenceImpl<DLContent>
Parameters:
dlContent - 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 DLContent toUnwrappedModel(DLContent dlContent)

findByPrimaryKey

public DLContent findByPrimaryKey(Serializable primaryKey)
                           throws NoSuchModelException,
                                  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 BasePersistence<DLContent>
Overrides:
findByPrimaryKey in class BasePersistenceImpl<DLContent>
Parameters:
primaryKey - the primary key of the document library content
Returns:
the document library content
Throws:
NoSuchModelException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

findByPrimaryKey

public DLContent findByPrimaryKey(long contentId)
                           throws NoSuchContentException,
                                  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 DLContentPersistence
Parameters:
contentId - the primary key of the document library content
Returns:
the document library content
Throws:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

fetchByPrimaryKey

public DLContent fetchByPrimaryKey(Serializable primaryKey)
                            throws SystemException
Returns the document library content with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface BasePersistence<DLContent>
Overrides:
fetchByPrimaryKey in class BasePersistenceImpl<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:
SystemException - if a system exception occurred

fetchByPrimaryKey

public DLContent fetchByPrimaryKey(long contentId)
                            throws SystemException
Returns the document library content with the primary key or returns null if it could not be found.

Specified by:
fetchByPrimaryKey in interface 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:
SystemException - if a system exception occurred

findByC_R

public List<DLContent> findByC_R(long companyId,
                                 long repositoryId)
                          throws SystemException
Returns all the document library contents where companyId = ? and repositoryId = ?.

Specified by:
findByC_R in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the matching document library contents
Throws:
SystemException - if a system exception occurred

findByC_R

public List<DLContent> findByC_R(long companyId,
                                 long repositoryId,
                                 int start,
                                 int end)
                          throws 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 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:
SystemException - if a system exception occurred

findByC_R

public List<DLContent> findByC_R(long companyId,
                                 long repositoryId,
                                 int start,
                                 int end,
                                 OrderByComparator orderByComparator)
                          throws 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 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:
SystemException - if a system exception occurred

findByC_R_First

public DLContent findByC_R_First(long companyId,
                                 long repositoryId,
                                 OrderByComparator orderByComparator)
                          throws NoSuchContentException,
                                 SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.

Specified by:
findByC_R_First in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_First

public DLContent fetchByC_R_First(long companyId,
                                  long repositoryId,
                                  OrderByComparator orderByComparator)
                           throws SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.

Specified by:
fetchByC_R_First in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_Last

public DLContent findByC_R_Last(long companyId,
                                long repositoryId,
                                OrderByComparator orderByComparator)
                         throws NoSuchContentException,
                                SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.

Specified by:
findByC_R_Last in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_Last

public DLContent fetchByC_R_Last(long companyId,
                                 long repositoryId,
                                 OrderByComparator orderByComparator)
                          throws SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.

Specified by:
fetchByC_R_Last in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_PrevAndNext

public DLContent[] findByC_R_PrevAndNext(long contentId,
                                         long companyId,
                                         long repositoryId,
                                         OrderByComparator orderByComparator)
                                  throws NoSuchContentException,
                                         SystemException
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.

Specified by:
findByC_R_PrevAndNext in interface 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:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

getByC_R_PrevAndNext

protected DLContent getByC_R_PrevAndNext(Session session,
                                         DLContent dlContent,
                                         long companyId,
                                         long repositoryId,
                                         OrderByComparator orderByComparator,
                                         boolean previous)

findByC_R_P

public List<DLContent> findByC_R_P(long companyId,
                                   long repositoryId,
                                   String path)
                            throws SystemException
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.

Specified by:
findByC_R_P in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the matching document library contents
Throws:
SystemException - if a system exception occurred

findByC_R_P

public List<DLContent> findByC_R_P(long companyId,
                                   long repositoryId,
                                   String path,
                                   int start,
                                   int end)
                            throws 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 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:
SystemException - if a system exception occurred

findByC_R_P

public List<DLContent> findByC_R_P(long companyId,
                                   long repositoryId,
                                   String path,
                                   int start,
                                   int end,
                                   OrderByComparator orderByComparator)
                            throws 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 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:
SystemException - if a system exception occurred

findByC_R_P_First

public DLContent findByC_R_P_First(long companyId,
                                   long repositoryId,
                                   String path,
                                   OrderByComparator orderByComparator)
                            throws NoSuchContentException,
                                   SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Specified by:
findByC_R_P_First in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_P_First

public DLContent fetchByC_R_P_First(long companyId,
                                    long repositoryId,
                                    String path,
                                    OrderByComparator orderByComparator)
                             throws SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Specified by:
fetchByC_R_P_First in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_P_Last

public DLContent findByC_R_P_Last(long companyId,
                                  long repositoryId,
                                  String path,
                                  OrderByComparator orderByComparator)
                           throws NoSuchContentException,
                                  SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Specified by:
findByC_R_P_Last in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_P_Last

public DLContent fetchByC_R_P_Last(long companyId,
                                   long repositoryId,
                                   String path,
                                   OrderByComparator orderByComparator)
                            throws SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Specified by:
fetchByC_R_P_Last in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_P_PrevAndNext

public DLContent[] findByC_R_P_PrevAndNext(long contentId,
                                           long companyId,
                                           long repositoryId,
                                           String path,
                                           OrderByComparator orderByComparator)
                                    throws NoSuchContentException,
                                           SystemException
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.

Specified by:
findByC_R_P_PrevAndNext in interface 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:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

getByC_R_P_PrevAndNext

protected DLContent getByC_R_P_PrevAndNext(Session session,
                                           DLContent dlContent,
                                           long companyId,
                                           long repositoryId,
                                           String path,
                                           OrderByComparator orderByComparator,
                                           boolean previous)

findByC_R_LikeP

public List<DLContent> findByC_R_LikeP(long companyId,
                                       long repositoryId,
                                       String path)
                                throws SystemException
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
findByC_R_LikeP in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the matching document library contents
Throws:
SystemException - if a system exception occurred

findByC_R_LikeP

public List<DLContent> findByC_R_LikeP(long companyId,
                                       long repositoryId,
                                       String path,
                                       int start,
                                       int end)
                                throws 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 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:
SystemException - if a system exception occurred

findByC_R_LikeP

public List<DLContent> findByC_R_LikeP(long companyId,
                                       long repositoryId,
                                       String path,
                                       int start,
                                       int end,
                                       OrderByComparator orderByComparator)
                                throws 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 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:
SystemException - if a system exception occurred

findByC_R_LikeP_First

public DLContent findByC_R_LikeP_First(long companyId,
                                       long repositoryId,
                                       String path,
                                       OrderByComparator orderByComparator)
                                throws NoSuchContentException,
                                       SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
findByC_R_LikeP_First in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_LikeP_First

public DLContent fetchByC_R_LikeP_First(long companyId,
                                        long repositoryId,
                                        String path,
                                        OrderByComparator orderByComparator)
                                 throws SystemException
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
fetchByC_R_LikeP_First in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_LikeP_Last

public DLContent findByC_R_LikeP_Last(long companyId,
                                      long repositoryId,
                                      String path,
                                      OrderByComparator orderByComparator)
                               throws NoSuchContentException,
                                      SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
findByC_R_LikeP_Last in interface 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:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_LikeP_Last

public DLContent fetchByC_R_LikeP_Last(long companyId,
                                       long repositoryId,
                                       String path,
                                       OrderByComparator orderByComparator)
                                throws SystemException
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
fetchByC_R_LikeP_Last in interface 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, or null if a matching document library content could not be found
Throws:
SystemException - if a system exception occurred

findByC_R_LikeP_PrevAndNext

public DLContent[] findByC_R_LikeP_PrevAndNext(long contentId,
                                               long companyId,
                                               long repositoryId,
                                               String path,
                                               OrderByComparator orderByComparator)
                                        throws NoSuchContentException,
                                               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 ?.

Specified by:
findByC_R_LikeP_PrevAndNext in interface 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:
NoSuchContentException - if a document library content with the primary key could not be found
SystemException - if a system exception occurred

getByC_R_LikeP_PrevAndNext

protected DLContent getByC_R_LikeP_PrevAndNext(Session session,
                                               DLContent dlContent,
                                               long companyId,
                                               long repositoryId,
                                               String path,
                                               OrderByComparator orderByComparator,
                                               boolean previous)

findByC_R_P_V

public DLContent findByC_R_P_V(long companyId,
                               long repositoryId,
                               String path,
                               String version)
                        throws NoSuchContentException,
                               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 DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Returns:
the matching document library content
Throws:
NoSuchContentException - if a matching document library content could not be found
SystemException - if a system exception occurred

fetchByC_R_P_V

public DLContent fetchByC_R_P_V(long companyId,
                                long repositoryId,
                                String path,
                                String version)
                         throws 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 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:
SystemException - if a system exception occurred

fetchByC_R_P_V

public DLContent fetchByC_R_P_V(long companyId,
                                long repositoryId,
                                String path,
                                String version,
                                boolean retrieveFromCache)
                         throws 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 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:
SystemException - if a system exception occurred

findAll

public List<DLContent> findAll()
                        throws SystemException
Returns all the document library contents.

Specified by:
findAll in interface DLContentPersistence
Returns:
the document library contents
Throws:
SystemException - if a system exception occurred

findAll

public List<DLContent> findAll(int start,
                               int end)
                        throws 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 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:
SystemException - if a system exception occurred

findAll

public List<DLContent> findAll(int start,
                               int end,
                               OrderByComparator orderByComparator)
                        throws 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 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:
SystemException - if a system exception occurred

removeByC_R

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

Specified by:
removeByC_R in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Throws:
SystemException - if a system exception occurred

removeByC_R_P

public void removeByC_R_P(long companyId,
                          long repositoryId,
                          String path)
                   throws SystemException
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.

Specified by:
removeByC_R_P in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
SystemException - if a system exception occurred

removeByC_R_LikeP

public void removeByC_R_LikeP(long companyId,
                              long repositoryId,
                              String path)
                       throws SystemException
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.

Specified by:
removeByC_R_LikeP in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
SystemException - if a system exception occurred

removeByC_R_P_V

public DLContent removeByC_R_P_V(long companyId,
                                 long repositoryId,
                                 String path,
                                 String version)
                          throws NoSuchContentException,
                                 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 DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
version - the version
Returns:
the document library content that was removed
Throws:
SystemException - if a system exception occurred
NoSuchContentException

removeAll

public void removeAll()
               throws SystemException
Removes all the document library contents from the database.

Specified by:
removeAll in interface DLContentPersistence
Throws:
SystemException - if a system exception occurred

countByC_R

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

Specified by:
countByC_R in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the number of matching document library contents
Throws:
SystemException - if a system exception occurred

countByC_R_P

public int countByC_R_P(long companyId,
                        long repositoryId,
                        String path)
                 throws SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.

Specified by:
countByC_R_P in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the number of matching document library contents
Throws:
SystemException - if a system exception occurred

countByC_R_LikeP

public int countByC_R_LikeP(long companyId,
                            long repositoryId,
                            String path)
                     throws SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.

Specified by:
countByC_R_LikeP in interface DLContentPersistence
Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Returns:
the number of matching document library contents
Throws:
SystemException - if a system exception occurred

countByC_R_P_V

public int countByC_R_P_V(long companyId,
                          long repositoryId,
                          String path,
                          String version)
                   throws SystemException
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.

Specified by:
countByC_R_P_V in interface 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:
SystemException - if a system exception occurred

countAll

public int countAll()
             throws SystemException
Returns the number of document library contents.

Specified by:
countAll in interface DLContentPersistence
Returns:
the number of document library contents
Throws:
SystemException - if a system exception occurred

afterPropertiesSet

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


destroy

public void destroy()

Liferay 6.1.2-ce-ga3