@ProviderType
public class DLContentPersistenceImpl
extends com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
implements com.liferay.document.library.kernel.service.persistence.DLContentPersistence
Caching information and settings can be found in portal.properties
DLContentPersistence
,
DLContentUtil
Modifier and Type | Field and Description |
---|---|
protected com.liferay.portal.kernel.service.persistence.CompanyProvider |
companyProvider |
protected com.liferay.portal.kernel.dao.orm.EntityCache |
entityCache |
static String |
FINDER_CLASS_NAME_ENTITY |
static String |
FINDER_CLASS_NAME_LIST_WITH_PAGINATION |
static 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 |
protected com.liferay.portal.kernel.dao.orm.FinderCache |
finderCache |
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, nullModel, 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.document.library.kernel.model.DLContent dlContent)
Caches the document library content in the entity cache if it is enabled.
|
void |
cacheResult(List<com.liferay.document.library.kernel.model.DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled.
|
protected void |
cacheUniqueFindersCache(DLContentModelImpl dlContentModelImpl) |
void |
clearCache()
Clears the cache for all document library contents.
|
void |
clearCache(com.liferay.document.library.kernel.model.DLContent dlContent)
Clears the cache for the document library content.
|
void |
clearCache(List<com.liferay.document.library.kernel.model.DLContent> dlContents) |
protected void |
clearUniqueFindersCache(DLContentModelImpl dlContentModelImpl,
boolean clearCurrent) |
int |
countAll()
Returns the number of document library contents.
|
int |
countByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
int |
countByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?.
|
int |
countByC_R_P(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?.
|
int |
countByC_R(long companyId,
long repositoryId)
Returns the number of document library contents where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.model.DLContent |
create(long contentId)
Creates a new document library content with the primary key.
|
void |
destroy() |
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_P_First(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.document.library.kernel.model.DLContent |
fetchByC_R_P_Last(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.document.library.kernel.model.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. |
com.liferay.document.library.kernel.model.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. |
com.liferay.document.library.kernel.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.document.library.kernel.model.DLContent |
fetchByPrimaryKey(Serializable primaryKey)
Returns the document library content with the primary key or returns
null if it could not be found. |
Map<Serializable,com.liferay.document.library.kernel.model.DLContent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
List<com.liferay.document.library.kernel.model.DLContent> |
findAll()
Returns all the document library contents.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findAll(int start,
int end)
Returns a range of all the document library contents.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns an ordered range of all the document library contents.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_First(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_Last(long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.document.library.kernel.model.DLContent[] |
findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_P_First(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_P_Last(long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.document.library.kernel.model.DLContent[] |
findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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 = ?.
|
com.liferay.document.library.kernel.model.DLContent |
findByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a
NoSuchContentException if it could not be found. |
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?.
|
com.liferay.document.library.kernel.model.DLContent[] |
findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R(long companyId,
long repositoryId)
Returns all the document library contents where companyId = ? and repositoryId = ?.
|
List<com.liferay.document.library.kernel.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 = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
|
List<com.liferay.document.library.kernel.model.DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?.
|
com.liferay.document.library.kernel.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.document.library.kernel.model.DLContent |
findByPrimaryKey(Serializable primaryKey)
Returns the document library content with the primary key or throws a
NoSuchModelException if it could not be found. |
Set<String> |
getBadColumnNames() |
protected com.liferay.document.library.kernel.model.DLContent |
getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.document.library.kernel.model.DLContent dlContent,
long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean previous) |
protected com.liferay.document.library.kernel.model.DLContent |
getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.document.library.kernel.model.DLContent dlContent,
long companyId,
long repositoryId,
String path,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean previous) |
protected com.liferay.document.library.kernel.model.DLContent |
getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session,
com.liferay.document.library.kernel.model.DLContent dlContent,
long companyId,
long repositoryId,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator,
boolean previous) |
protected Map<String,Integer> |
getTableColumnsMap() |
com.liferay.document.library.kernel.model.DLContent |
remove(long contentId)
Removes the document library content with the primary key from the database.
|
com.liferay.document.library.kernel.model.DLContent |
remove(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,
String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path LIKE ? from the database.
|
com.liferay.document.library.kernel.model.DLContent |
removeByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Removes the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? from the database.
|
void |
removeByC_R_P(long companyId,
long repositoryId,
String path)
Removes all the document library contents where companyId = ? and repositoryId = ? and path = ? from the database.
|
void |
removeByC_R(long companyId,
long repositoryId)
Removes all the document library contents where companyId = ? and repositoryId = ? from the database.
|
protected com.liferay.document.library.kernel.model.DLContent |
removeImpl(com.liferay.document.library.kernel.model.DLContent dlContent) |
protected com.liferay.document.library.kernel.model.DLContent |
toUnwrappedModel(com.liferay.document.library.kernel.model.DLContent dlContent) |
com.liferay.document.library.kernel.model.DLContent |
updateImpl(com.liferay.document.library.kernel.model.DLContent dlContent) |
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCompoundPKColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update
public static final String FINDER_CLASS_NAME_ENTITY
public static final String FINDER_CLASS_NAME_LIST_WITH_PAGINATION
public static final 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
@BeanReference(type=com.liferay.portal.kernel.service.persistence.CompanyProviderWrapper.class) protected com.liferay.portal.kernel.service.persistence.CompanyProvider companyProvider
protected com.liferay.portal.kernel.dao.orm.EntityCache entityCache
protected com.liferay.portal.kernel.dao.orm.FinderCache finderCache
public List<com.liferay.document.library.kernel.model.DLContent> findByC_R(long companyId, long repositoryId)
findByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpublic List<com.liferay.document.library.kernel.model.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.
findByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R(long companyId, long repositoryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_First(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_Last(long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent[] findByC_R_PrevAndNext(long contentId, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_PrevAndNext
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundprotected com.liferay.document.library.kernel.model.DLContent getByC_R_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.document.library.kernel.model.DLContent dlContent, long companyId, long repositoryId, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator, boolean previous)
public void removeByC_R(long companyId, long repositoryId)
removeByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpublic int countByC_R(long companyId, long repositoryId)
countByC_R
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpublic List<com.liferay.document.library.kernel.model.DLContent> findByC_R_P(long companyId, long repositoryId, String path)
findByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic List<com.liferay.document.library.kernel.model.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.
findByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R_P(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_P_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_P_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_P_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_P_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_P_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_P_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent[] findByC_R_P_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_P_PrevAndNext
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundprotected com.liferay.document.library.kernel.model.DLContent getByC_R_P_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.document.library.kernel.model.DLContent dlContent, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator, boolean previous)
public void removeByC_R_P(long companyId, long repositoryId, String path)
removeByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic int countByC_R_P(long companyId, long repositoryId, String path)
countByC_R_P
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic List<com.liferay.document.library.kernel.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path)
findByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic List<com.liferay.document.library.kernel.model.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.
findByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findByC_R_LikeP(long companyId, long repositoryId, String path, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_LikeP_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_LikeP_First(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_LikeP_First
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent findByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_LikeP_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathorderByComparator
- the comparator to order the set by (optionally null
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_LikeP_Last(long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator)
fetchByC_R_LikeP_Last
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent[] findByC_R_LikeP_PrevAndNext(long contentId, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator) throws com.liferay.document.library.kernel.exception.NoSuchContentException
findByC_R_LikeP_PrevAndNext
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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
)com.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundprotected com.liferay.document.library.kernel.model.DLContent getByC_R_LikeP_PrevAndNext(com.liferay.portal.kernel.dao.orm.Session session, com.liferay.document.library.kernel.model.DLContent dlContent, long companyId, long repositoryId, String path, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.DLContent> orderByComparator, boolean previous)
public void removeByC_R_LikeP(long companyId, long repositoryId, String path)
removeByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic int countByC_R_LikeP(long companyId, long repositoryId, String path)
countByC_R_LikeP
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathpublic com.liferay.document.library.kernel.model.DLContent findByC_R_P_V(long companyId, long repositoryId, String path, String version) throws com.liferay.document.library.kernel.exception.NoSuchContentException
NoSuchContentException
if it could not be found.findByC_R_P_V
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versioncom.liferay.document.library.kernel.exception.NoSuchContentException
- if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByC_R_P_V(long companyId, long repositoryId, String path, String version)
null
if it could not be found. Uses the finder cache.fetchByC_R_P_V
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionnull
if a matching document library content could not be foundpublic com.liferay.document.library.kernel.model.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.fetchByC_R_P_V
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 com.liferay.document.library.kernel.model.DLContent removeByC_R_P_V(long companyId, long repositoryId, String path, String version) throws com.liferay.document.library.kernel.exception.NoSuchContentException
removeByC_R_P_V
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versioncom.liferay.document.library.kernel.exception.NoSuchContentException
public int countByC_R_P_V(long companyId, long repositoryId, String path, String version)
countByC_R_P_V
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
companyId
- the company IDrepositoryId
- the repository IDpath
- the pathversion
- the versionpublic void cacheResult(com.liferay.document.library.kernel.model.DLContent dlContent)
cacheResult
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
dlContent
- the document library contentpublic void cacheResult(List<com.liferay.document.library.kernel.model.DLContent> dlContents)
cacheResult
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
dlContents
- the document library contentspublic void clearCache()
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
public void clearCache(com.liferay.document.library.kernel.model.DLContent dlContent)
The EntityCache
and FinderCache
are both cleared by this method.
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
public void clearCache(List<com.liferay.document.library.kernel.model.DLContent> dlContents)
clearCache
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
clearCache
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
protected void cacheUniqueFindersCache(DLContentModelImpl dlContentModelImpl)
protected void clearUniqueFindersCache(DLContentModelImpl dlContentModelImpl, boolean clearCurrent)
public com.liferay.document.library.kernel.model.DLContent create(long contentId)
create
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
contentId
- the primary key for the new document library contentpublic com.liferay.document.library.kernel.model.DLContent remove(long contentId) throws com.liferay.document.library.kernel.exception.NoSuchContentException
remove
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
contentId
- the primary key of the document library contentcom.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundpublic com.liferay.document.library.kernel.model.DLContent remove(Serializable primaryKey) throws com.liferay.document.library.kernel.exception.NoSuchContentException
remove
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
remove
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
primaryKey
- the primary key of the document library contentcom.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundprotected com.liferay.document.library.kernel.model.DLContent removeImpl(com.liferay.document.library.kernel.model.DLContent dlContent)
removeImpl
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
public com.liferay.document.library.kernel.model.DLContent updateImpl(com.liferay.document.library.kernel.model.DLContent dlContent)
updateImpl
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
updateImpl
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
protected com.liferay.document.library.kernel.model.DLContent toUnwrappedModel(com.liferay.document.library.kernel.model.DLContent dlContent)
public com.liferay.document.library.kernel.model.DLContent findByPrimaryKey(Serializable primaryKey) throws com.liferay.document.library.kernel.exception.NoSuchContentException
NoSuchModelException
if it could not be found.findByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
findByPrimaryKey
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
primaryKey
- the primary key of the document library contentcom.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundpublic com.liferay.document.library.kernel.model.DLContent findByPrimaryKey(long contentId) throws com.liferay.document.library.kernel.exception.NoSuchContentException
NoSuchContentException
if it could not be found.findByPrimaryKey
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
contentId
- the primary key of the document library contentcom.liferay.document.library.kernel.exception.NoSuchContentException
- if a document library content with the primary key could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByPrimaryKey(Serializable primaryKey)
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
fetchByPrimaryKey
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
primaryKey
- the primary key of the document library contentnull
if a document library content with the primary key could not be foundpublic com.liferay.document.library.kernel.model.DLContent fetchByPrimaryKey(long contentId)
null
if it could not be found.fetchByPrimaryKey
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
contentId
- the primary key of the document library contentnull
if a document library content with the primary key could not be foundpublic Map<Serializable,com.liferay.document.library.kernel.model.DLContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
fetchByPrimaryKeys
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
public List<com.liferay.document.library.kernel.model.DLContent> findAll()
findAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
public List<com.liferay.document.library.kernel.model.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.
findAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
start
- the lower bound of the range of document library contentsend
- the upper bound of the range of document library contents (not inclusive)public List<com.liferay.document.library.kernel.model.DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 List<com.liferay.document.library.kernel.model.DLContent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.document.library.kernel.model.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.
findAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
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 void removeAll()
removeAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
public int countAll()
countAll
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
public Set<String> getBadColumnNames()
getBadColumnNames
in interface com.liferay.document.library.kernel.service.persistence.DLContentPersistence
getBadColumnNames
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<com.liferay.document.library.kernel.model.DLContent>
getBadColumnNames
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap
in class com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl<com.liferay.document.library.kernel.model.DLContent>
public void afterPropertiesSet()
public void destroy()