@ProviderType
public class DLContentUtil
extends Object
DLContentPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
DLContentPersistence
,
DLContentPersistenceImpl
Constructor and Description |
---|
DLContentUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(DLContent dlContent)
Caches the document library content in the entity cache if it is enabled.
|
static void |
cacheResult(List<DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(DLContent dlContent) |
static int |
countAll()
Returns the number of document library contents.
|
static int |
countByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
static 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 = ?.
|
static int |
countByC_R_P(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.
|
static int |
countByC_R(long companyId,
long repositoryId)
Returns the number of document library contents where companyId = ? and repositoryId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static DLContent |
create(long contentId)
Creates a new document library content with the primary key.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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. |
static 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. |
static DLContent |
fetchByPrimaryKey(long contentId)
Returns the document library content with the primary key or returns
null if it could not be found. |
static Map<Serializable,DLContent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static List<DLContent> |
findAll()
Returns all the document library contents.
|
static List<DLContent> |
findAll(int start,
int end)
Returns a range of all the document library contents.
|
static List<DLContent> |
findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Returns an ordered range of all the document library contents.
|
static List<DLContent> |
findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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. |
static List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static List<DLContent> |
findByC_R(long companyId,
long repositoryId)
Returns all the document library contents where companyId = ? and repositoryId = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static 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 = ?.
|
static DLContent |
findByPrimaryKey(long contentId)
Returns the document library content with the primary key or throws a
NoSuchContentException if it could not be found. |
static List<DLContent> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<DLContent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<DLContent> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<DLContent> orderByComparator) |
static Set<String> |
getBadColumnNames() |
static DLContentPersistence |
getPersistence() |
static DLContent |
remove(long contentId)
Removes the document library content with the primary key from the database.
|
static void |
removeAll()
Removes all the document library contents from the database.
|
static 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.
|
static 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.
|
static 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.
|
static void |
removeByC_R(long companyId,
long repositoryId)
Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
|
static DLContent |
update(DLContent dlContent) |
static DLContent |
update(DLContent dlContent,
ServiceContext serviceContext) |
static DLContent |
updateImpl(DLContent dlContent) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(DLContent dlContent)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<DLContent> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<DLContent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<DLContent> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<DLContent> orderByComparator)
public static DLContent update(DLContent dlContent, ServiceContext serviceContext)
public static List<DLContent> findByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDpublic static List<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)public static 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
)public static 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 cachepublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent[] 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 foundpublic static void removeByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDpublic static int countByC_R(long companyId, long repositoryId)
companyId
- the company IDrepositoryId
- the repository IDpublic static List<DLContent> findByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static List<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)public static 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
)public static 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 cachepublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent[] 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 foundpublic static void removeByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static int countByC_R_P(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static List<DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static List<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)public static 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
)public static 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 cachepublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent[] 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 foundpublic static void removeByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static int countByC_R_LikeP(long companyId, long repositoryId, String path)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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
public static int countByC_R_P_V(long companyId, long repositoryId, String path, String version)
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionpublic static void cacheResult(DLContent dlContent)
dlContent
- the document library contentpublic static void cacheResult(List<DLContent> dlContents)
dlContents
- the document library contentspublic static DLContent create(long contentId)
contentId
- the primary key for the new document library contentpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static DLContent 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 foundpublic static Map<Serializable,DLContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<DLContent> findAll()
public static 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)public static 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
)public static 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 cachepublic static void removeAll()
public static int countAll()
public static Set<String> getBadColumnNames()
public static DLContentPersistence getPersistence()