Interface DLContentPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<DLContent>
,com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<DLContent>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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
(long companyId, long repositoryId) Returns the number of document library contents where companyId = ? and repositoryId = ?.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
(long companyId, long repositoryId, String path) Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.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 = ?.create
(long contentId) Creates a new document library content with the primary key.fetchByC_R_First
(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.fetchByC_R_Last
(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.fetchByC_R_LikeP_First
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.fetchByC_R_LikeP_Last
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.fetchByC_R_P_First
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.fetchByC_R_P_Last
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.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 returnsnull
if it could not be found.fetchByC_R_P_V
(long companyId, long repositoryId, String path, String version, boolean useFinderCache) Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByPrimaryKey
(long contentId) Returns the document library content with the primary key or returnsnull
if it could not be found.findAll()
Returns all the document library contents.findAll
(int start, int end) Returns a range of all the document library contents.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns an ordered range of all the document library contents.findAll
(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the document library contents.findByC_R
(long companyId, long repositoryId) Returns all the document library contents where companyId = ? and repositoryId = ?.findByC_R
(long companyId, long repositoryId, int start, int end) Returns a range of all the document library contents where companyId = ? and repositoryId = ?.findByC_R
(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.findByC_R
(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.findByC_R_First
(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.findByC_R_Last
(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.findByC_R_LikeP
(long companyId, long repositoryId, String path) Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.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 ?.findByC_R_LikeP
(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.findByC_R_LikeP
(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.findByC_R_LikeP_First
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.findByC_R_LikeP_Last
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.findByC_R_LikeP_PrevAndNext
(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> 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 ?.findByC_R_P
(long companyId, long repositoryId, String path) Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.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 = ?.findByC_R_P
(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.findByC_R_P
(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.findByC_R_P_First
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.findByC_R_P_Last
(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.findByC_R_P_PrevAndNext
(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.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 aNoSuchContentException
if it could not be found.findByC_R_PrevAndNext
(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.findByPrimaryKey
(long contentId) Returns the document library content with the primary key or throws aNoSuchContentException
if it could not be found.remove
(long contentId) Removes the document library content with the primary key from the database.void
Removes all the document library contents from the database.void
removeByC_R
(long companyId, long repositoryId) Removes all the document library contents where companyId = ? and repositoryId = ? 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.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.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.updateImpl
(DLContent dlContent) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence
getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
-
Method Details
-
findByC_R
Returns all the document library contents where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository ID- Returns:
- the matching document library contents
-
findByC_R
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)- Returns:
- the range of matching document library contents
-
findByC_R
List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching document library contents
-
findByC_R
List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching document library contents
-
findByC_R_First
DLContent findByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_First
DLContent fetchByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_Last
DLContent findByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_Last
DLContent fetchByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_PrevAndNext
DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws 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 contentcompanyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next document library content
- Throws:
NoSuchContentException
- if a document library content with the primary key could not be found
-
removeByC_R
void removeByC_R(long companyId, long repositoryId) Removes all the document library contents where companyId = ? and repositoryId = ? from the database.- Parameters:
companyId
- the company IDrepositoryId
- the repository ID
-
countByC_R
int countByC_R(long companyId, long repositoryId) Returns the number of document library contents where companyId = ? and repositoryId = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository ID- Returns:
- the number of matching document library contents
-
findByC_R_P
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path- Returns:
- the matching document library contents
-
findByC_R_P
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)- Returns:
- the range of matching document library contents
-
findByC_R_P
List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching document library contents
-
findByC_R_P
List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching document library contents
-
findByC_R_P_First
DLContent findByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_P_First
DLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_P_Last
DLContent findByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_P_Last
DLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_P_PrevAndNext
DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws 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 contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next document library content
- Throws:
NoSuchContentException
- if a document library content with the primary key could not be found
-
removeByC_R_P
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
-
countByC_R_P
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path- Returns:
- the number of matching document library contents
-
findByC_R_LikeP
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path- Returns:
- the matching document library contents
-
findByC_R_LikeP
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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)- Returns:
- the range of matching document library contents
-
findByC_R_LikeP
List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching document library contents
-
findByC_R_LikeP
List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) 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
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathstart
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching document library contents
-
findByC_R_LikeP_First
DLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_LikeP_First
DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_LikeP_Last
DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_LikeP_Last
DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching document library content, or
null
if a matching document library content could not be found
-
findByC_R_LikeP_PrevAndNext
DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) throws 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 contentcompanyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next document library content
- Throws:
NoSuchContentException
- if a document library content with the primary key could not be found
-
removeByC_R_LikeP
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path
-
countByC_R_LikeP
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the path- Returns:
- the number of matching document library contents
-
findByC_R_P_V
DLContent findByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws aNoSuchContentException
if it could not be found.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version- Returns:
- the matching document library content
- Throws:
NoSuchContentException
- if a matching document library content could not be found
-
fetchByC_R_P_V
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version- Returns:
- the matching document library content, or
null
if a matching document library content could not be found
-
fetchByC_R_P_V
DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version, boolean useFinderCache) Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionuseFinderCache
- whether to use the finder cache- Returns:
- the matching document library content, or
null
if a matching document library content could not be found
-
removeByC_R_P_V
DLContent removeByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version- Returns:
- the document library content that was removed
- Throws:
NoSuchContentException
-
countByC_R_P_V
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.- Parameters:
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the version- Returns:
- the number of matching document library contents
-
cacheResult
Caches the document library content in the entity cache if it is enabled.- Parameters:
dlContent
- the document library content
-
cacheResult
Caches the document library contents in the entity cache if it is enabled.- Parameters:
dlContents
- the document library contents
-
create
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
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
-
updateImpl
-
findByPrimaryKey
Returns the document library content with the primary key or throws aNoSuchContentException
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
-
fetchByPrimaryKey
Returns the document library content with the primary key or returnsnull
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
-
findAll
Returns all the document library contents.- Returns:
- the document library contents
-
findAll
Returns a range of all the document library contents.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)- Returns:
- the range of document library contents
-
findAll
List<DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator) Returns an ordered range of all the document library contents.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of document library contents
-
findAll
List<DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<DLContent> orderByComparator, boolean useFinderCache) Returns an ordered range of all the document library contents.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromDLContentModelImpl
.- Parameters:
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of document library contents
-
removeAll
void removeAll()Removes all the document library contents from the database. -
countAll
int countAll()Returns the number of document library contents.- Returns:
- the number of document library contents
-