|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liferay.portal.service.persistence.impl.BasePersistenceImpl<DLContent>
com.liferay.portlet.documentlibrary.service.persistence.impl.DLContentPersistenceImpl
@ProviderType public class DLContentPersistenceImpl
The persistence implementation for the document library content service.
Caching information and settings can be found in portal.properties
DLContentPersistence,
DLContentUtil| Fields inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
CAST_CLOB_TEXT_OPEN, COUNT_COLUMN_NAME, FINDER_ARGS_EMPTY, listeners, NULL_SAFE_STRING_COMPARATOR, 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 Summary | |
|---|---|
DLContentPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the document library content persistence. |
void |
cacheResult(DLContent dlContent)
Caches the document library content in the entity cache if it is enabled. |
void |
cacheResult(List<DLContent> dlContents)
Caches the document library contents in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(DLContentModelImpl dlContentModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all document library contents. |
void |
clearCache(DLContent dlContent)
Clears the cache for the document library content. |
void |
clearCache(List<DLContent> dlContents)
Clears the cache for a List instances of this model. |
protected void |
clearUniqueFindersCache(DLContentModelImpl dlContentModelImpl)
|
int |
countAll()
Returns the number of document library contents. |
int |
countByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
int |
countByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ? and version = ?. |
int |
countByC_R_P(long companyId,
long repositoryId,
String path)
Returns the number of document library contents where companyId = ? and repositoryId = ? and path = ?. |
int |
countByC_R(long companyId,
long repositoryId)
Returns the number of document library contents where companyId = ? and repositoryId = ?. |
DLContent |
create(long contentId)
Creates a new document library content with the primary key. |
void |
destroy()
|
DLContent |
fetchByC_R_First(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
fetchByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
fetchByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
fetchByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
fetchByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found. |
DLContent |
fetchByC_R_P_V(long companyId,
long repositoryId,
String path,
String version,
boolean retrieveFromCache)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or returns null if it could not be found, optionally using the finder cache. |
DLContent |
fetchByPrimaryKey(long contentId)
Returns the document library content with the primary key or returns null if it could not be found. |
DLContent |
fetchByPrimaryKey(Serializable primaryKey)
Returns the document library content with the primary key or returns null if it could not be found. |
Map<Serializable,DLContent> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
List<DLContent> |
findAll()
Returns all the document library contents. |
List<DLContent> |
findAll(int start,
int end)
Returns a range of all the document library contents. |
List<DLContent> |
findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Returns an ordered range of all the document library contents. |
List<DLContent> |
findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents. |
DLContent |
findByC_R_First(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
findByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ?. |
DLContent |
findByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
findByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent[] |
findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
List<DLContent> |
findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path LIKE ?. |
DLContent |
findByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the first document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
findByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the last document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent[] |
findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ? and path = ?. |
DLContent |
findByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
Returns the document library content where companyId = ? and repositoryId = ? and path = ? and version = ? or throws a NoSuchContentException if it could not be found. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path)
Returns all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
List<DLContent> |
findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ? and path = ?. |
DLContent[] |
findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
Returns the document library contents before and after the current document library content in the ordered set where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId)
Returns all the document library contents where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end)
Returns a range of all the document library contents where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. |
List<DLContent> |
findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the document library contents where companyId = ? and repositoryId = ?. |
DLContent |
findByPrimaryKey(long contentId)
Returns the document library content with the primary key or throws a NoSuchContentException if it could not be found. |
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 DLContent |
getByC_R_LikeP_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
|
protected DLContent |
getByC_R_P_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
|
protected DLContent |
getByC_R_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
DLContent |
remove(long contentId)
Removes the document library content with the primary key from the database. |
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. |
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 DLContent |
removeImpl(DLContent dlContent)
Removes the model instance from the database. |
protected DLContent |
toUnwrappedModel(DLContent dlContent)
|
DLContent |
updateImpl(DLContent dlContent)
Updates the model instance in the database or adds it if it does not yet exist. |
| Methods inherited from class com.liferay.portal.service.persistence.impl.BasePersistenceImpl |
|---|
appendOrderByComparator, appendOrderByComparator, closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getClassLoader, getColumnName, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openNewSession, openSession, processException, registerListener, remove, removeConjunction, setDataSource, setModelClass, setSessionFactory, unregisterListener, update, update, update, update, updateImpl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.liferay.portal.service.persistence.BasePersistence |
|---|
closeSession, countWithDynamicQuery, countWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, setDataSource, unregisterListener, update, update, update, update |
| Field Detail |
|---|
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 FinderPath FINDER_PATH_WITH_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_ALL
public static final FinderPath FINDER_PATH_COUNT_ALL
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R
public static final FinderPath FINDER_PATH_COUNT_BY_C_R
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_P
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_C_R_P
public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_C_R_LIKEP
public static final FinderPath FINDER_PATH_WITH_PAGINATION_COUNT_BY_C_R_LIKEP
public static final FinderPath FINDER_PATH_FETCH_BY_C_R_P_V
public static final FinderPath FINDER_PATH_COUNT_BY_C_R_P_V
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public DLContentPersistenceImpl()
| Method Detail |
|---|
public List<DLContent> findByC_R(long companyId,
long repositoryId)
findByC_R in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository ID
public List<DLContent> findByC_R(long companyId,
long repositoryId,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R in interface 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)
public List<DLContent> findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R in interface 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)
public List<DLContent> findByC_R(long companyId,
long repositoryId,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R in interface 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)retrieveFromCache - whether to retrieve from the finder cache
public DLContent findByC_R_First(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_First in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_First(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_First in interface 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 found
public DLContent findByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_Last in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_Last(long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_Last in interface 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 found
public DLContent[] findByC_R_PrevAndNext(long contentId,
long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_PrevAndNext in interface 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)
NoSuchContentException - if a document library content with the primary key could not be found
protected DLContent getByC_R_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
public void removeByC_R(long companyId,
long repositoryId)
removeByC_R in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository ID
public int countByC_R(long companyId,
long repositoryId)
countByC_R in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository ID
public List<DLContent> findByC_R_P(long companyId,
long repositoryId,
String path)
findByC_R_P in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public List<DLContent> findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_P in interface 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)
public List<DLContent> findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_P in interface 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)
public List<DLContent> findByC_R_P(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_P in interface 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)retrieveFromCache - whether to retrieve from the finder cache
public DLContent findByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_P_First in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_P_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_P_First in interface 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 found
public DLContent findByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_P_Last in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_P_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_P_Last in interface 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 found
public DLContent[] findByC_R_P_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_P_PrevAndNext in interface 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)
NoSuchContentException - if a document library content with the primary key could not be found
protected DLContent getByC_R_P_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
public void removeByC_R_P(long companyId,
long repositoryId,
String path)
removeByC_R_P in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public int countByC_R_P(long companyId,
long repositoryId,
String path)
countByC_R_P in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public List<DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
String path)
findByC_R_LikeP in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public List<DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_LikeP in interface 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)
public List<DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_LikeP in interface 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)
public List<DLContent> findByC_R_LikeP(long companyId,
long repositoryId,
String path,
int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findByC_R_LikeP in interface 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)retrieveFromCache - whether to retrieve from the finder cache
public DLContent findByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_LikeP_First in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_LikeP_First(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_LikeP_First in interface 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 found
public DLContent findByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_LikeP_Last in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathorderByComparator - the comparator to order the set by (optionally null)
NoSuchContentException - if a matching document library content could not be found
public DLContent fetchByC_R_LikeP_Last(long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
fetchByC_R_LikeP_Last in interface 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 found
public DLContent[] findByC_R_LikeP_PrevAndNext(long contentId,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator)
throws NoSuchContentException
findByC_R_LikeP_PrevAndNext in interface 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)
NoSuchContentException - if a document library content with the primary key could not be found
protected DLContent getByC_R_LikeP_PrevAndNext(Session session,
DLContent dlContent,
long companyId,
long repositoryId,
String path,
OrderByComparator<DLContent> orderByComparator,
boolean previous)
public void removeByC_R_LikeP(long companyId,
long repositoryId,
String path)
removeByC_R_LikeP in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public int countByC_R_LikeP(long companyId,
long repositoryId,
String path)
countByC_R_LikeP in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the path
public DLContent findByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
throws NoSuchContentException
NoSuchContentException if it could not be found.
findByC_R_P_V in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
NoSuchContentException - if a matching document library content could not be found
public 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 DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
null if a matching document library content could not be found
public 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 DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the versionretrieveFromCache - whether to retrieve from the finder cache
null if a matching document library content could not be found
public DLContent removeByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
throws NoSuchContentException
removeByC_R_P_V in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
NoSuchContentException
public int countByC_R_P_V(long companyId,
long repositoryId,
String path,
String version)
countByC_R_P_V in interface DLContentPersistencecompanyId - the company IDrepositoryId - the repository IDpath - the pathversion - the version
public void cacheResult(DLContent dlContent)
cacheResult in interface DLContentPersistencedlContent - the document library contentpublic void cacheResult(List<DLContent> dlContents)
cacheResult in interface DLContentPersistencedlContents - the document library contentspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLContent>clearCache in class BasePersistenceImpl<DLContent>public void clearCache(DLContent dlContent)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<DLContent>clearCache in class BasePersistenceImpl<DLContent>dlContent - the instance of this model to clear the cache forpublic void clearCache(List<DLContent> dlContents)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<DLContent>clearCache in class BasePersistenceImpl<DLContent>dlContents - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(DLContentModelImpl dlContentModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(DLContentModelImpl dlContentModelImpl)
public DLContent create(long contentId)
create in interface DLContentPersistencecontentId - the primary key for the new document library content
public DLContent remove(long contentId)
throws NoSuchContentException
remove in interface DLContentPersistencecontentId - the primary key of the document library content
NoSuchContentException - if a document library content with the primary key could not be found
public DLContent remove(Serializable primaryKey)
throws NoSuchContentException
remove in interface BasePersistence<DLContent>remove in class BasePersistenceImpl<DLContent>primaryKey - the primary key of the document library content
NoSuchContentException - if a document library content with the primary key could not be foundprotected DLContent removeImpl(DLContent dlContent)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<DLContent>dlContent - the model instance to remove
public DLContent updateImpl(DLContent dlContent)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface DLContentPersistenceupdateImpl in class BasePersistenceImpl<DLContent>dlContent - the model instance to update
protected DLContent toUnwrappedModel(DLContent dlContent)
public DLContent findByPrimaryKey(Serializable primaryKey)
throws NoSuchContentException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<DLContent>findByPrimaryKey in class BasePersistenceImpl<DLContent>primaryKey - the primary key of the document library content
NoSuchContentException - if a document library content with the primary key could not be found
public DLContent findByPrimaryKey(long contentId)
throws NoSuchContentException
NoSuchContentException if it could not be found.
findByPrimaryKey in interface DLContentPersistencecontentId - the primary key of the document library content
NoSuchContentException - if a document library content with the primary key could not be foundpublic DLContent fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<DLContent>fetchByPrimaryKey in class BasePersistenceImpl<DLContent>primaryKey - the primary key of the document library content
null if a document library content with the primary key could not be foundpublic DLContent fetchByPrimaryKey(long contentId)
null if it could not be found.
fetchByPrimaryKey in interface DLContentPersistencecontentId - the primary key of the document library content
null if a document library content with the primary key could not be foundpublic Map<Serializable,DLContent> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<DLContent>fetchByPrimaryKeys in interface DLContentPersistencefetchByPrimaryKeys in class BasePersistenceImpl<DLContent>public List<DLContent> findAll()
findAll in interface DLContentPersistence
public List<DLContent> findAll(int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface DLContentPersistencestart - the lower bound of the range of document library contentsend - the upper bound of the range of document library contents (not inclusive)
public List<DLContent> findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface 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)
public List<DLContent> findAll(int start,
int end,
OrderByComparator<DLContent> orderByComparator,
boolean retrieveFromCache)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from DLContentModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
findAll in interface 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)retrieveFromCache - whether to retrieve from the finder cache
public void removeAll()
removeAll in interface DLContentPersistencepublic int countAll()
countAll in interface DLContentPersistencepublic Set<String> getBadColumnNames()
getBadColumnNames in interface BasePersistence<DLContent>getBadColumnNames in interface DLContentPersistencegetBadColumnNames in class BasePersistenceImpl<DLContent>protected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<DLContent>public void afterPropertiesSet()
public void destroy()
|
Liferay 7.0-ce-b4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||