public class DLContentPersistenceImpl
extends com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>
implements com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence
Caching information and settings can be found in portal.properties
DLContentPersistence,
DLContentUtil| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FINDER_CLASS_NAME_ENTITY |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static java.lang.String |
FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_R |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_R_P |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_COUNT_BY_C_R_P_V |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_FETCH_BY_C_R_P_V |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R |
static com.liferay.portal.kernel.dao.orm.FinderPath |
FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P |
COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, ORDER_BY_ASC, ORDER_BY_ASC_HAS_NEXT, ORDER_BY_CLAUSE, ORDER_BY_DESC, ORDER_BY_DESC_HAS_NEXT, WHERE_AND, WHERE_GREATER_THAN, WHERE_GREATER_THAN_HAS_NEXT, WHERE_LESSER_THAN, WHERE_LESSER_THAN_HAS_NEXT, WHERE_OR| Constructor and Description |
|---|
DLContentPersistenceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initializes the document library content persistence.
|
void |
cacheResult(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
Caches the document library content in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent) |
void |
clearCache()
Clears the cache for all document library contents.
|
void |
clearCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
Clears the cache for the document library content.
|
void |
clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents) |
protected void |
clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent) |
int |
countAll()
Returns the number of document library contents.
|
int |
countByC_R_LikeP(long companyId,
long repositoryId,
java.lang.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,
java.lang.String path,
java.lang.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,
java.lang.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 = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
create(long contentId)
Creates a new document library content with the primary key.
|
void |
destroy() |
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_LikeP_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_P_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_P_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns
null if it could not be found. |
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.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. |
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByPrimaryKey(long contentId)
Returns the document library content with the primary key or returns
null if it could not be found. |
com.liferay.portlet.documentlibrary.model.DLContent |
fetchByPrimaryKey(java.io.Serializable primaryKey)
Returns the document library content with the primary key or returns
null if it could not be found. |
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findAll()
Returns all the document library contents.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findAll(int start,
int end)
Returns a range of all the document library contents.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_LikeP_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_LikeP_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.portlet.documentlibrary.model.DLContent[] |
findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_P_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_P_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent[] |
findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.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. |
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
java.lang.String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent[] |
findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R(long companyId,
long repositoryId)
Returns all the document library contents where companyId = ? and repositoryId = ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ?.
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
|
com.liferay.portlet.documentlibrary.model.DLContent |
findByPrimaryKey(long contentId)
Returns the document library content with the primary key or throws a
NoSuchContentException if it could not be found. |
com.liferay.portlet.documentlibrary.model.DLContent |
findByPrimaryKey(java.io.Serializable primaryKey)
Returns the document library content with the primary key or throws a
NoSuchModelException if it could not be found. |
protected java.util.Set<java.lang.String> |
getBadColumnNames() |
protected com.liferay.portlet.documentlibrary.model.DLContent |
getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
protected com.liferay.portlet.documentlibrary.model.DLContent |
getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
protected com.liferay.portlet.documentlibrary.model.DLContent |
getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous) |
com.liferay.portlet.documentlibrary.model.DLContent |
remove(long contentId)
Removes the document library content with the primary key from the database.
|
com.liferay.portlet.documentlibrary.model.DLContent |
remove(java.io.Serializable primaryKey)
Removes the document library content with the primary key from the database.
|
void |
removeAll()
Removes all the document library contents from the database.
|
void |
removeByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
|
com.liferay.portlet.documentlibrary.model.DLContent |
removeByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.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,
java.lang.String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.
|
void |
removeByC_R(long companyId,
long repositoryId)
Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
|
protected com.liferay.portlet.documentlibrary.model.DLContent |
removeImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent) |
protected com.liferay.portlet.documentlibrary.model.DLContent |
toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLContent dlContent) |
com.liferay.portlet.documentlibrary.model.DLContent |
updateImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImplclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, updatepublic static final java.lang.String FINDER_CLASS_NAME_ENTITY
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final java.lang.String FINDER_CLASS_NAME_LIST_WITHOUT_PAGINATION
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_ALL
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_FETCH_BY_C_R_P_V
public static final com.liferay.portal.kernel.dao.orm.FinderPath FINDER_PATH_COUNT_BY_C_R_P_V
public java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
long repositoryId)
throws com.liferay.portal.kernel.exception.SystemException
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
long repositoryId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R(long companyId,
long repositoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - the primary key of the current document library contentcompanyId - the company IDrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByC_R(long companyId,
long repositoryId)
throws com.liferay.portal.kernel.exception.SystemException
removeByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByC_R(long companyId,
long repositoryId)
throws com.liferay.portal.kernel.exception.SystemException
countByC_R in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_P(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_P_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_P_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_P_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_P_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_P_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - 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)com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByC_R_P(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
removeByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByC_R_P(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
countByC_R_P in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
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.
findByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_LikeP_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_First(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_LikeP_First in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_LikeP_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_LikeP_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)com.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
fetchByC_R_LikeP_Last in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - 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 foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent[] findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
findByC_R_LikeP_PrevAndNext in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - 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)com.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.documentlibrary.model.DLContent getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.portlet.documentlibrary.model.DLContent dlContent,
long companyId,
long repositoryId,
java.lang.String path,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator,
boolean previous)
public void removeByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
removeByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countByC_R_LikeP(long companyId,
long repositoryId,
java.lang.String path)
throws com.liferay.portal.kernel.exception.SystemException
countByC_R_LikeP in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
NoSuchContentException if it could not be found.findByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versioncom.liferay.portlet.documentlibrary.NoSuchContentException - if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found. Uses the finder cache.fetchByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versionnull if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version,
boolean retrieveFromCache)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found, optionally using the finder cache.fetchByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versionretrieveFromCache - whether to use the finder cachenull if a matching document library content could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent removeByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
removeByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versioncom.liferay.portal.kernel.exception.SystemException - if a system exception occurredcom.liferay.portlet.documentlibrary.NoSuchContentExceptionpublic int countByC_R_P_V(long companyId,
long repositoryId,
java.lang.String path,
java.lang.String version)
throws com.liferay.portal.kernel.exception.SystemException
countByC_R_P_V in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versioncom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void cacheResult(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencedlContent - the document library contentpublic void cacheResult(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
cacheResult in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencedlContents - the document library contentspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>public void clearCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>public void clearCache(java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> dlContents)
clearCache in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>clearCache in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>protected void cacheUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
protected void clearUniqueFindersCache(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
public com.liferay.portlet.documentlibrary.model.DLContent create(long contentId)
create in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - the primary key for the new document library contentpublic com.liferay.portlet.documentlibrary.model.DLContent remove(long contentId)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - the primary key of the document library contentcom.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent remove(java.io.Serializable primaryKey)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
remove in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>remove in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>primaryKey - the primary key of the document library contentcom.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected com.liferay.portlet.documentlibrary.model.DLContent removeImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
throws com.liferay.portal.kernel.exception.SystemException
removeImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>com.liferay.portal.kernel.exception.SystemExceptionpublic com.liferay.portlet.documentlibrary.model.DLContent updateImpl(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
throws com.liferay.portal.kernel.exception.SystemException
updateImpl in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistenceupdateImpl in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>com.liferay.portal.kernel.exception.SystemExceptionprotected com.liferay.portlet.documentlibrary.model.DLContent toUnwrappedModel(com.liferay.portlet.documentlibrary.model.DLContent dlContent)
public com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
NoSuchModelException if it could not be found.findByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>findByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>primaryKey - the primary key of the document library contentcom.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent findByPrimaryKey(long contentId)
throws com.liferay.portlet.documentlibrary.NoSuchContentException,
com.liferay.portal.kernel.exception.SystemException
NoSuchContentException if it could not be found.findByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - the primary key of the document library contentcom.liferay.portlet.documentlibrary.NoSuchContentException - if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(java.io.Serializable primaryKey)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portal.service.persistence.BasePersistence<com.liferay.portlet.documentlibrary.model.DLContent>fetchByPrimaryKey in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>primaryKey - the primary key of the document library contentnull if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic com.liferay.portlet.documentlibrary.model.DLContent fetchByPrimaryKey(long contentId)
throws com.liferay.portal.kernel.exception.SystemException
null if it could not be found.fetchByPrimaryKey in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecontentId - the primary key of the document library contentnull if a document library content with the primary key could not be foundcom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll()
throws com.liferay.portal.kernel.exception.SystemException
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
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.
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencestart - the lower bound of the range of document library contentsend - the upper bound of the range of document library contents (not inclusive)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic java.util.List<com.liferay.portlet.documentlibrary.model.DLContent> findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException
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.
findAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencestart - 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)com.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic void removeAll()
throws com.liferay.portal.kernel.exception.SystemException
removeAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredpublic int countAll()
throws com.liferay.portal.kernel.exception.SystemException
countAll in interface com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistencecom.liferay.portal.kernel.exception.SystemException - if a system exception occurredprotected java.util.Set<java.lang.String> getBadColumnNames()
getBadColumnNames in class com.liferay.portal.service.persistence.impl.BasePersistenceImpl<com.liferay.portlet.documentlibrary.model.DLContent>public void afterPropertiesSet()
public void destroy()