@ProviderType public interface DLContentPersistence extends BasePersistence<DLContent>
Caching information and settings can be found in portal.properties
DLContentPersistenceImpl
,
DLContentUtil
Modifier and Type | Method and Description |
---|---|
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<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
DLContent |
fetchByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> 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<DLContent> 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<DLContent> 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<DLContent> 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<DLContent> 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. |
Map<Serializable,DLContent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
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<DLContent> orderByComparator)
Returns an ordered range of all the document library contents.
|
List<DLContent> |
findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents.
|
DLContent |
findByC_R_First(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
DLContent |
findByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> 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<DLContent> 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<DLContent> 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<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 ?.
|
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<DLContent> orderByComparator)
Returns an ordered 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<DLContent> orderByComparator,
boolean retrieveFromCache)
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<DLContent> 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<DLContent> 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<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 = ?.
|
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<DLContent> orderByComparator)
Returns an ordered 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<DLContent> orderByComparator,
boolean retrieveFromCache)
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<DLContent> 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<DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
|
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
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. |
Set<String> |
getBadColumnNames() |
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) |
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
List<DLContent> findByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDList<DLContent> findByC_R(long companyId, long repositoryId, int start, int end)
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.
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)List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, OrderByComparator<DLContent> orderByComparator)
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.
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 (optionally null
)List<DLContent> findByC_R(long companyId, long repositoryId, int start, int end, OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheDLContent findByC_R_First(long companyId, long repositoryId, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_First(long companyId, long repositoryId, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent findByC_R_Last(long companyId, long repositoryId, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_Last(long companyId, long repositoryId, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
contentId
- the primary key of the current document library contentcompanyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a document library content with the primary key could not be foundvoid removeByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDint countByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDList<DLContent> findByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathList<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end)
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.
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)List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, OrderByComparator<DLContent> orderByComparator)
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.
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 (optionally null
)List<DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheDLContent findByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent findByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
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 (optionally null
)NoSuchContentException
- if a document library content with the primary key could not be foundvoid removeByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathint countByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathList<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathList<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end)
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.
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)List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, OrderByComparator<DLContent> orderByComparator)
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.
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 (optionally null
)List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheDLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)NoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching document library content could not be foundDLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, OrderByComparator<DLContent> orderByComparator) throws NoSuchContentException
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 (optionally null
)NoSuchContentException
- if a document library content with the primary key could not be foundvoid removeByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathint countByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathDLContent findByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException
NoSuchContentException
if it could not be found.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionNoSuchContentException
- if a matching document library content could not be foundDLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version)
null
if it could not be found. Uses the finder cache.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionnull
if a matching document library content could not be foundDLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching document library content could not be foundDLContent removeByC_R_P_V(long companyId, long repositoryId, String path, String version) throws NoSuchContentException
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionNoSuchContentException
int countByC_R_P_V(long companyId, long repositoryId, String path, String version)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionvoid cacheResult(DLContent dlContent)
dlContent
- the document library contentvoid cacheResult(List<DLContent> dlContents)
dlContents
- the document library contentsDLContent create(long contentId)
contentId
- the primary key for the new document library contentDLContent remove(long contentId) throws NoSuchContentException
contentId
- the primary key of the document library contentNoSuchContentException
- if a document library content with the primary key could not be foundDLContent findByPrimaryKey(long contentId) throws NoSuchContentException
NoSuchContentException
if it could not be found.contentId
- the primary key of the document library contentNoSuchContentException
- if a document library content with the primary key could not be foundDLContent fetchByPrimaryKey(long contentId)
null
if it could not be found.contentId
- the primary key of the document library contentnull
if a document library content with the primary key could not be foundMap<Serializable,DLContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface BasePersistence<DLContent>
List<DLContent> findAll()
List<DLContent> findAll(int start, int end)
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.
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)List<DLContent> findAll(int start, int end, OrderByComparator<DLContent> orderByComparator)
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.
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 (optionally null
)List<DLContent> findAll(int start, int end, OrderByComparator<DLContent> orderByComparator, boolean retrieveFromCache)
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.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()
Set<String> getBadColumnNames()
getBadColumnNames
in interface BasePersistence<DLContent>