Liferay 6.2-ce-ga5

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

All Superinterfaces:
BasePersistence<DLContent>

@ProviderType
public interface DLContentPersistence
extends BasePersistence<DLContent>

The persistence interface for the document library content service.

Caching information and settings can be found in portal.properties

See Also:
DLContentPersistenceImpl, DLContentUtil

Method Summary
 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.
 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.
 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.
 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 remove(long contentId)
          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.
 DLContent updateImpl(DLContent dlContent)
           
 
Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update, update, update
 

Method Detail

findByC_R

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

Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the matching document library contents
Throws:
SystemException - if a system exception occurred

findByC_R

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByC_R

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

Parameters:
companyId - the company ID
repositoryId - the repository ID
Throws:
SystemException - if a system exception occurred

countByC_R

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

Parameters:
companyId - the company ID
repositoryId - the repository ID
Returns:
the number of matching document library contents
Throws:
SystemException - if a system exception occurred

findByC_R_P

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 = ?.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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 = ?.

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

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

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

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 = ?.

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

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

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

removeByC_R_P

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.

Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
SystemException - if a system exception occurred

countByC_R_P

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 = ?.

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

findByC_R_LikeP

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 ?.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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

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

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 ?.

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

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

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

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 ?.

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

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

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

removeByC_R_LikeP

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.

Parameters:
companyId - the company ID
repositoryId - the repository ID
path - the path
Throws:
SystemException - if a system exception occurred

countByC_R_LikeP

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 ?.

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

findByC_R_P_V

DLContent findByC_R_P_V(long companyId,
                        long repositoryId,
                        String path,
                        String version)
                        throws SystemException,
                               NoSuchContentException
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found.

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

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.

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

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.

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

removeByC_R_P_V

DLContent removeByC_R_P_V(long companyId,
                          long repositoryId,
                          String path,
                          String version)
                          throws SystemException,
                                 NoSuchContentException
Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.

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

countByC_R_P_V

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 = ?.

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

cacheResult

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

Parameters:
dlContent - the document library content

cacheResult

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

Parameters:
dlContents - the document library contents

create

DLContent create(long contentId)
Creates a new document library content with the primary key. Does not add the document library content to the database.

Parameters:
contentId - the primary key for the new document library content
Returns:
the new document library content

remove

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

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

updateImpl

DLContent updateImpl(DLContent dlContent)
                     throws SystemException
Throws:
SystemException

findByPrimaryKey

DLContent findByPrimaryKey(long contentId)
                           throws SystemException,
                                  NoSuchContentException
Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found.

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

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

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

findAll

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

Returns:
the document library contents
Throws:
SystemException - if a system exception occurred

findAll

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

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. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.

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

removeAll

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

Throws:
SystemException - if a system exception occurred

countAll

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

Returns:
the number of document library contents
Throws:
SystemException - if a system exception occurred

Liferay 6.2-ce-ga5