|
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<RecentLayoutRevision>
com.liferay.portal.service.persistence.impl.RecentLayoutRevisionPersistenceImpl
@ProviderType public class RecentLayoutRevisionPersistenceImpl
The persistence implementation for the recent layout revision service.
Caching information and settings can be found in portal.properties
RecentLayoutRevisionPersistence,
RecentLayoutRevisionUtil| 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 | |
|---|---|
RecentLayoutRevisionPersistenceImpl()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
Initializes the recent layout revision persistence. |
void |
cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
Caches the recent layout revisions in the entity cache if it is enabled. |
void |
cacheResult(RecentLayoutRevision recentLayoutRevision)
Caches the recent layout revision in the entity cache if it is enabled. |
protected void |
cacheUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl,
boolean isNew)
|
void |
clearCache()
Clears the cache for all recent layout revisions. |
void |
clearCache(List<RecentLayoutRevision> recentLayoutRevisions)
Clears the cache for a List instances of this model. |
void |
clearCache(RecentLayoutRevision recentLayoutRevision)
Clears the cache for the recent layout revision. |
protected void |
clearUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl)
|
int |
countAll()
Returns the number of recent layout revisions. |
int |
countByGroupId(long groupId)
Returns the number of recent layout revisions where groupId = ?. |
int |
countByLayoutRevisionId(long layoutRevisionId)
Returns the number of recent layout revisions where layoutRevisionId = ?. |
int |
countByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?. |
int |
countByUserId(long userId)
Returns the number of recent layout revisions where userId = ?. |
RecentLayoutRevision |
create(long recentLayoutRevisionId)
Creates a new recent layout revision with the primary key. |
void |
destroy()
|
RecentLayoutRevision |
fetchByGroupId_First(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where groupId = ?. |
RecentLayoutRevision |
fetchByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where groupId = ?. |
RecentLayoutRevision |
fetchByLayoutRevisionId_First(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?. |
RecentLayoutRevision |
fetchByLayoutRevisionId_Last(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?. |
RecentLayoutRevision |
fetchByPrimaryKey(long recentLayoutRevisionId)
Returns the recent layout revision with the primary key or returns null if it could not be found. |
RecentLayoutRevision |
fetchByPrimaryKey(Serializable primaryKey)
Returns the recent layout revision with the primary key or returns null if it could not be found. |
Map<Serializable,RecentLayoutRevision> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys)
|
RecentLayoutRevision |
fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found. |
RecentLayoutRevision |
fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid,
boolean retrieveFromCache)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returns null if it could not be found, optionally using the finder cache. |
RecentLayoutRevision |
fetchByUserId_First(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where userId = ?. |
RecentLayoutRevision |
fetchByUserId_Last(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where userId = ?. |
List<RecentLayoutRevision> |
findAll()
Returns all the recent layout revisions. |
List<RecentLayoutRevision> |
findAll(int start,
int end)
Returns a range of all the recent layout revisions. |
List<RecentLayoutRevision> |
findAll(int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions. |
List<RecentLayoutRevision> |
findAll(int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions. |
RecentLayoutRevision |
findByGroupId_First(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where groupId = ?. |
RecentLayoutRevision |
findByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where groupId = ?. |
RecentLayoutRevision[] |
findByGroupId_PrevAndNext(long recentLayoutRevisionId,
long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?. |
List<RecentLayoutRevision> |
findByGroupId(long groupId)
Returns all the recent layout revisions where groupId = ?. |
List<RecentLayoutRevision> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the recent layout revisions where groupId = ?. |
List<RecentLayoutRevision> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where groupId = ?. |
List<RecentLayoutRevision> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where groupId = ?. |
RecentLayoutRevision |
findByLayoutRevisionId_First(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where layoutRevisionId = ?. |
RecentLayoutRevision |
findByLayoutRevisionId_Last(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where layoutRevisionId = ?. |
RecentLayoutRevision[] |
findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId,
long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?. |
List<RecentLayoutRevision> |
findByLayoutRevisionId(long layoutRevisionId)
Returns all the recent layout revisions where layoutRevisionId = ?. |
List<RecentLayoutRevision> |
findByLayoutRevisionId(long layoutRevisionId,
int start,
int end)
Returns a range of all the recent layout revisions where layoutRevisionId = ?. |
List<RecentLayoutRevision> |
findByLayoutRevisionId(long layoutRevisionId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?. |
List<RecentLayoutRevision> |
findByLayoutRevisionId(long layoutRevisionId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?. |
RecentLayoutRevision |
findByPrimaryKey(long recentLayoutRevisionId)
Returns the recent layout revision with the primary key or throws a NoSuchRecentLayoutRevisionException if it could not be found. |
RecentLayoutRevision |
findByPrimaryKey(Serializable primaryKey)
Returns the recent layout revision with the primary key or throws a NoSuchModelException if it could not be found. |
RecentLayoutRevision |
findByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws a NoSuchRecentLayoutRevisionException if it could not be found. |
RecentLayoutRevision |
findByUserId_First(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the first recent layout revision in the ordered set where userId = ?. |
RecentLayoutRevision |
findByUserId_Last(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the last recent layout revision in the ordered set where userId = ?. |
RecentLayoutRevision[] |
findByUserId_PrevAndNext(long recentLayoutRevisionId,
long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?. |
List<RecentLayoutRevision> |
findByUserId(long userId)
Returns all the recent layout revisions where userId = ?. |
List<RecentLayoutRevision> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the recent layout revisions where userId = ?. |
List<RecentLayoutRevision> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator)
Returns an ordered range of all the recent layout revisions where userId = ?. |
List<RecentLayoutRevision> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout revisions where userId = ?. |
protected RecentLayoutRevision |
getByGroupId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
|
protected RecentLayoutRevision |
getByLayoutRevisionId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
|
protected RecentLayoutRevision |
getByUserId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
|
protected Map<String,Integer> |
getTableColumnsMap()
|
RecentLayoutRevision |
remove(long recentLayoutRevisionId)
Removes the recent layout revision with the primary key from the database. |
RecentLayoutRevision |
remove(Serializable primaryKey)
Removes the recent layout revision with the primary key from the database. |
void |
removeAll()
Removes all the recent layout revisions from the database. |
void |
removeByGroupId(long groupId)
Removes all the recent layout revisions where groupId = ? from the database. |
void |
removeByLayoutRevisionId(long layoutRevisionId)
Removes all the recent layout revisions where layoutRevisionId = ? from the database. |
RecentLayoutRevision |
removeByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database. |
void |
removeByUserId(long userId)
Removes all the recent layout revisions where userId = ? from the database. |
protected RecentLayoutRevision |
removeImpl(RecentLayoutRevision recentLayoutRevision)
Removes the model instance from the database. |
protected RecentLayoutRevision |
toUnwrappedModel(RecentLayoutRevision recentLayoutRevision)
|
RecentLayoutRevision |
updateImpl(RecentLayoutRevision recentLayoutRevision)
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, getBadColumnNames, 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, getBadColumnNames, 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_GROUPID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_GROUPID
public static final FinderPath FINDER_PATH_COUNT_BY_GROUPID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_USERID
public static final FinderPath FINDER_PATH_COUNT_BY_USERID
public static final FinderPath FINDER_PATH_WITH_PAGINATION_FIND_BY_LAYOUTREVISIONID
public static final FinderPath FINDER_PATH_WITHOUT_PAGINATION_FIND_BY_LAYOUTREVISIONID
public static final FinderPath FINDER_PATH_COUNT_BY_LAYOUTREVISIONID
public static final FinderPath FINDER_PATH_FETCH_BY_U_L_P
public static final FinderPath FINDER_PATH_COUNT_BY_U_L_P
@BeanReference(type=CompanyProviderWrapper.class) protected CompanyProvider companyProvider
protected EntityCache entityCache
protected FinderCache finderCache
| Constructor Detail |
|---|
public RecentLayoutRevisionPersistenceImpl()
| Method Detail |
|---|
public List<RecentLayoutRevision> findByGroupId(long groupId)
findByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group ID
public List<RecentLayoutRevision> findByGroupId(long groupId,
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 RecentLayoutRevisionModelImpl. 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.
findByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)
public List<RecentLayoutRevision> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RecentLayoutRevision> findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RecentLayoutRevision findByGroupId_First(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByGroupId_First in interface RecentLayoutRevisionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByGroupId_First(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByGroupId_First in interface RecentLayoutRevisionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision findByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByGroupId_Last in interface RecentLayoutRevisionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByGroupId_Last in interface RecentLayoutRevisionPersistencegroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId,
long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByGroupId_PrevAndNext in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the current recent layout revisiongroupId - the group IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found
protected RecentLayoutRevision getByGroupId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long groupId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
public void removeByGroupId(long groupId)
removeByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group IDpublic int countByGroupId(long groupId)
countByGroupId in interface RecentLayoutRevisionPersistencegroupId - the group ID
public List<RecentLayoutRevision> findByUserId(long userId)
findByUserId in interface RecentLayoutRevisionPersistenceuserId - the user ID
public List<RecentLayoutRevision> findByUserId(long userId,
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 RecentLayoutRevisionModelImpl. 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.
findByUserId in interface RecentLayoutRevisionPersistenceuserId - the user IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)
public List<RecentLayoutRevision> findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByUserId in interface RecentLayoutRevisionPersistenceuserId - the user IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RecentLayoutRevision> findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByUserId in interface RecentLayoutRevisionPersistenceuserId - the user IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RecentLayoutRevision findByUserId_First(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByUserId_First in interface RecentLayoutRevisionPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByUserId_First(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByUserId_First in interface RecentLayoutRevisionPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision findByUserId_Last(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByUserId_Last in interface RecentLayoutRevisionPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByUserId_Last(long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByUserId_Last in interface RecentLayoutRevisionPersistenceuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId,
long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByUserId_PrevAndNext in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the current recent layout revisionuserId - the user IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found
protected RecentLayoutRevision getByUserId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long userId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
public void removeByUserId(long userId)
removeByUserId in interface RecentLayoutRevisionPersistenceuserId - the user IDpublic int countByUserId(long userId)
countByUserId in interface RecentLayoutRevisionPersistenceuserId - the user ID
public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId)
findByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision ID
public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
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 RecentLayoutRevisionModelImpl. 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.
findByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)
public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId,
int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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.
findByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDstart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)retrieveFromCache - whether to retrieve from the finder cache
public RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByLayoutRevisionId_First in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByLayoutRevisionId_First in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByLayoutRevisionId_Last in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
fetchByLayoutRevisionId_Last in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDorderByComparator - the comparator to order the set by (optionally null)
null if a matching recent layout revision could not be found
public RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId,
long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator)
throws NoSuchRecentLayoutRevisionException
findByLayoutRevisionId_PrevAndNext in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the current recent layout revisionlayoutRevisionId - the layout revision IDorderByComparator - the comparator to order the set by (optionally null)
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found
protected RecentLayoutRevision getByLayoutRevisionId_PrevAndNext(Session session,
RecentLayoutRevision recentLayoutRevision,
long layoutRevisionId,
OrderByComparator<RecentLayoutRevision> orderByComparator,
boolean previous)
public void removeByLayoutRevisionId(long layoutRevisionId)
removeByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision IDpublic int countByLayoutRevisionId(long layoutRevisionId)
countByLayoutRevisionId in interface RecentLayoutRevisionPersistencelayoutRevisionId - the layout revision ID
public RecentLayoutRevision findByU_L_P(long userId,
long layoutSetBranchId,
long plid)
throws NoSuchRecentLayoutRevisionException
NoSuchRecentLayoutRevisionException if it could not be found.
findByU_L_P in interface RecentLayoutRevisionPersistenceuserId - the user IDlayoutSetBranchId - the layout set branch IDplid - the plid
NoSuchRecentLayoutRevisionException - if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid)
null if it could not be found. Uses the finder cache.
fetchByU_L_P in interface RecentLayoutRevisionPersistenceuserId - the user IDlayoutSetBranchId - the layout set branch IDplid - the plid
null if a matching recent layout revision could not be found
public RecentLayoutRevision fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid,
boolean retrieveFromCache)
null if it could not be found, optionally using the finder cache.
fetchByU_L_P in interface RecentLayoutRevisionPersistenceuserId - the user IDlayoutSetBranchId - the layout set branch IDplid - the plidretrieveFromCache - whether to retrieve from the finder cache
null if a matching recent layout revision could not be found
public RecentLayoutRevision removeByU_L_P(long userId,
long layoutSetBranchId,
long plid)
throws NoSuchRecentLayoutRevisionException
removeByU_L_P in interface RecentLayoutRevisionPersistenceuserId - the user IDlayoutSetBranchId - the layout set branch IDplid - the plid
NoSuchRecentLayoutRevisionException
public int countByU_L_P(long userId,
long layoutSetBranchId,
long plid)
countByU_L_P in interface RecentLayoutRevisionPersistenceuserId - the user IDlayoutSetBranchId - the layout set branch IDplid - the plid
public void cacheResult(RecentLayoutRevision recentLayoutRevision)
cacheResult in interface RecentLayoutRevisionPersistencerecentLayoutRevision - the recent layout revisionpublic void cacheResult(List<RecentLayoutRevision> recentLayoutRevisions)
cacheResult in interface RecentLayoutRevisionPersistencerecentLayoutRevisions - the recent layout revisionspublic void clearCache()
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<RecentLayoutRevision>clearCache in class BasePersistenceImpl<RecentLayoutRevision>public void clearCache(RecentLayoutRevision recentLayoutRevision)
The EntityCache and FinderCache are both cleared by this method.
clearCache in interface BasePersistence<RecentLayoutRevision>clearCache in class BasePersistenceImpl<RecentLayoutRevision>recentLayoutRevision - the instance of this model to clear the cache forpublic void clearCache(List<RecentLayoutRevision> recentLayoutRevisions)
BasePersistence
The EntityCache and FinderCache are both cleared by this
method.
clearCache in interface BasePersistence<RecentLayoutRevision>clearCache in class BasePersistenceImpl<RecentLayoutRevision>recentLayoutRevisions - the List instances of this model to clear the cache for
protected void cacheUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl,
boolean isNew)
protected void clearUniqueFindersCache(RecentLayoutRevisionModelImpl recentLayoutRevisionModelImpl)
public RecentLayoutRevision create(long recentLayoutRevisionId)
create in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key for the new recent layout revision
public RecentLayoutRevision remove(long recentLayoutRevisionId)
throws NoSuchRecentLayoutRevisionException
remove in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the recent layout revision
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found
public RecentLayoutRevision remove(Serializable primaryKey)
throws NoSuchRecentLayoutRevisionException
remove in interface BasePersistence<RecentLayoutRevision>remove in class BasePersistenceImpl<RecentLayoutRevision>primaryKey - the primary key of the recent layout revision
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be foundprotected RecentLayoutRevision removeImpl(RecentLayoutRevision recentLayoutRevision)
BasePersistenceImplBasePersistenceImpl.update(BaseModel,
boolean) depends on this method to implement the remove operation; it
only notifies the model listeners.
removeImpl in class BasePersistenceImpl<RecentLayoutRevision>recentLayoutRevision - the model instance to remove
public RecentLayoutRevision updateImpl(RecentLayoutRevision recentLayoutRevision)
BasePersistenceImplBasePersistenceImpl.remove(BaseModel) depends on this method to implement the
update operation; it only notifies the model listeners.
updateImpl in interface RecentLayoutRevisionPersistenceupdateImpl in class BasePersistenceImpl<RecentLayoutRevision>recentLayoutRevision - the model instance to update
protected RecentLayoutRevision toUnwrappedModel(RecentLayoutRevision recentLayoutRevision)
public RecentLayoutRevision findByPrimaryKey(Serializable primaryKey)
throws NoSuchRecentLayoutRevisionException
NoSuchModelException if it could not be found.
findByPrimaryKey in interface BasePersistence<RecentLayoutRevision>findByPrimaryKey in class BasePersistenceImpl<RecentLayoutRevision>primaryKey - the primary key of the recent layout revision
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be found
public RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId)
throws NoSuchRecentLayoutRevisionException
NoSuchRecentLayoutRevisionException if it could not be found.
findByPrimaryKey in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the recent layout revision
NoSuchRecentLayoutRevisionException - if a recent layout revision with the primary key could not be foundpublic RecentLayoutRevision fetchByPrimaryKey(Serializable primaryKey)
null if it could not be found.
fetchByPrimaryKey in interface BasePersistence<RecentLayoutRevision>fetchByPrimaryKey in class BasePersistenceImpl<RecentLayoutRevision>primaryKey - the primary key of the recent layout revision
null if a recent layout revision with the primary key could not be foundpublic RecentLayoutRevision fetchByPrimaryKey(long recentLayoutRevisionId)
null if it could not be found.
fetchByPrimaryKey in interface RecentLayoutRevisionPersistencerecentLayoutRevisionId - the primary key of the recent layout revision
null if a recent layout revision with the primary key could not be foundpublic Map<Serializable,RecentLayoutRevision> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
fetchByPrimaryKeys in interface BasePersistence<RecentLayoutRevision>fetchByPrimaryKeys in interface RecentLayoutRevisionPersistencefetchByPrimaryKeys in class BasePersistenceImpl<RecentLayoutRevision>public List<RecentLayoutRevision> findAll()
findAll in interface RecentLayoutRevisionPersistence
public List<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistencestart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)
public List<RecentLayoutRevision> findAll(int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistencestart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (not inclusive)orderByComparator - the comparator to order the results by (optionally null)
public List<RecentLayoutRevision> findAll(int start,
int end,
OrderByComparator<RecentLayoutRevision> 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 RecentLayoutRevisionModelImpl. 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 RecentLayoutRevisionPersistencestart - the lower bound of the range of recent layout revisionsend - the upper bound of the range of recent layout revisions (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 RecentLayoutRevisionPersistencepublic int countAll()
countAll in interface RecentLayoutRevisionPersistenceprotected Map<String,Integer> getTableColumnsMap()
getTableColumnsMap in class BasePersistenceImpl<RecentLayoutRevision>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 | |||||||||