Interface RecentLayoutRevisionPersistence
- All Superinterfaces:
BasePersistence<RecentLayoutRevision>
Caching information and settings can be found in portal.properties
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cacheResult
(RecentLayoutRevision recentLayoutRevision) Caches the recent layout revision in the entity cache if it is enabled.void
cacheResult
(List<RecentLayoutRevision> recentLayoutRevisions) Caches the recent layout revisions in the entity cache if it is enabled.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 = ?.create
(long recentLayoutRevisionId) Creates a new recent layout revision with the primary key.fetchByGroupId_First
(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where groupId = ?.fetchByGroupId_Last
(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where groupId = ?.fetchByLayoutRevisionId_First
(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.fetchByLayoutRevisionId_Last
(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.fetchByPrimaryKey
(long recentLayoutRevisionId) Returns the recent layout revision with the primary key or returnsnull
if it could not be found.fetchByU_L_P
(long userId, long layoutSetBranchId, long plid) Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returnsnull
if it could not be found.fetchByU_L_P
(long userId, long layoutSetBranchId, long plid, boolean useFinderCache) Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returnsnull
if it could not be found, optionally using the finder cache.fetchByUserId_First
(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where userId = ?.fetchByUserId_Last
(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where userId = ?.findAll()
Returns all the recent layout revisions.findAll
(int start, int end) Returns a range of all the recent layout revisions.findAll
(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions.findAll
(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions.findByGroupId
(long groupId) Returns all the recent layout revisions where groupId = ?.findByGroupId
(long groupId, int start, int end) Returns a range of all the recent layout revisions where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where groupId = ?.findByGroupId
(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where groupId = ?.findByGroupId_First
(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where groupId = ?.findByGroupId_Last
(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where groupId = ?.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 = ?.findByLayoutRevisionId
(long layoutRevisionId) Returns all the recent layout revisions where layoutRevisionId = ?.findByLayoutRevisionId
(long layoutRevisionId, int start, int end) Returns a range of all the recent layout revisions where layoutRevisionId = ?.findByLayoutRevisionId
(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.findByLayoutRevisionId
(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.findByLayoutRevisionId_First
(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.findByLayoutRevisionId_Last
(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.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 = ?.findByPrimaryKey
(long recentLayoutRevisionId) Returns the recent layout revision with the primary key or throws aNoSuchRecentLayoutRevisionException
if it could not be found.findByU_L_P
(long userId, long layoutSetBranchId, long plid) Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws aNoSuchRecentLayoutRevisionException
if it could not be found.findByUserId
(long userId) Returns all the recent layout revisions where userId = ?.findByUserId
(long userId, int start, int end) Returns a range of all the recent layout revisions where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where userId = ?.findByUserId
(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where userId = ?.findByUserId_First
(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where userId = ?.findByUserId_Last
(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where userId = ?.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 = ?.remove
(long recentLayoutRevisionId) Removes the recent layout revision with the primary key from the database.void
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.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.updateImpl
(RecentLayoutRevision recentLayoutRevision) Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence
clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
-
Method Details
-
findByGroupId
Returns all the recent layout revisions where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the matching recent layout revisions
-
findByGroupId
Returns a range of all the recent layout revisions where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
groupId
- 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)- Returns:
- the range of matching recent layout revisions
-
findByGroupId
List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
groupId
- 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 (optionallynull
)- Returns:
- the ordered range of matching recent layout revisions
-
findByGroupId
List<RecentLayoutRevision> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where groupId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
groupId
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching recent layout revisions
-
findByGroupId_First
RecentLayoutRevision findByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the first recent layout revision in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByGroupId_First
RecentLayoutRevision fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByGroupId_Last
RecentLayoutRevision findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the last recent layout revision in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByGroupId_Last
RecentLayoutRevision fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where groupId = ?.- Parameters:
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByGroupId_PrevAndNext
RecentLayoutRevision[] findByGroupId_PrevAndNext(long recentLayoutRevisionId, long groupId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the recent layout revisions before and after the current recent layout revision in the ordered set where groupId = ?.- Parameters:
recentLayoutRevisionId
- the primary key of the current recent layout revisiongroupId
- the group IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a recent layout revision with the primary key could not be found
-
removeByGroupId
void removeByGroupId(long groupId) Removes all the recent layout revisions where groupId = ? from the database.- Parameters:
groupId
- the group ID
-
countByGroupId
int countByGroupId(long groupId) Returns the number of recent layout revisions where groupId = ?.- Parameters:
groupId
- the group ID- Returns:
- the number of matching recent layout revisions
-
findByUserId
Returns all the recent layout revisions where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the matching recent layout revisions
-
findByUserId
Returns a range of all the recent layout revisions where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
userId
- 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)- Returns:
- the range of matching recent layout revisions
-
findByUserId
List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
userId
- 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 (optionallynull
)- Returns:
- the ordered range of matching recent layout revisions
-
findByUserId
List<RecentLayoutRevision> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where userId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
userId
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching recent layout revisions
-
findByUserId_First
RecentLayoutRevision findByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the first recent layout revision in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByUserId_First
RecentLayoutRevision fetchByUserId_First(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByUserId_Last
RecentLayoutRevision findByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the last recent layout revision in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByUserId_Last
RecentLayoutRevision fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where userId = ?.- Parameters:
userId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByUserId_PrevAndNext
RecentLayoutRevision[] findByUserId_PrevAndNext(long recentLayoutRevisionId, long userId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the recent layout revisions before and after the current recent layout revision in the ordered set where userId = ?.- Parameters:
recentLayoutRevisionId
- the primary key of the current recent layout revisionuserId
- the user IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a recent layout revision with the primary key could not be found
-
removeByUserId
void removeByUserId(long userId) Removes all the recent layout revisions where userId = ? from the database.- Parameters:
userId
- the user ID
-
countByUserId
int countByUserId(long userId) Returns the number of recent layout revisions where userId = ?.- Parameters:
userId
- the user ID- Returns:
- the number of matching recent layout revisions
-
findByLayoutRevisionId
Returns all the recent layout revisions where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision ID- Returns:
- the matching recent layout revisions
-
findByLayoutRevisionId
Returns a range of all the recent layout revisions where layoutRevisionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
layoutRevisionId
- 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)- Returns:
- the range of matching recent layout revisions
-
findByLayoutRevisionId
List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
layoutRevisionId
- 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 (optionallynull
)- Returns:
- the ordered range of matching recent layout revisions
-
findByLayoutRevisionId
List<RecentLayoutRevision> findByLayoutRevisionId(long layoutRevisionId, int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions where layoutRevisionId = ?.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
layoutRevisionId
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching recent layout revisions
-
findByLayoutRevisionId_First
RecentLayoutRevision findByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByLayoutRevisionId_First
RecentLayoutRevision fetchByLayoutRevisionId_First(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the first recent layout revision in the ordered set where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByLayoutRevisionId_Last
RecentLayoutRevision findByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByLayoutRevisionId_Last
RecentLayoutRevision fetchByLayoutRevisionId_Last(long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns the last recent layout revision in the ordered set where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
findByLayoutRevisionId_PrevAndNext
RecentLayoutRevision[] findByLayoutRevisionId_PrevAndNext(long recentLayoutRevisionId, long layoutRevisionId, OrderByComparator<RecentLayoutRevision> orderByComparator) throws NoSuchRecentLayoutRevisionException Returns the recent layout revisions before and after the current recent layout revision in the ordered set where layoutRevisionId = ?.- Parameters:
recentLayoutRevisionId
- the primary key of the current recent layout revisionlayoutRevisionId
- the layout revision IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a recent layout revision with the primary key could not be found
-
removeByLayoutRevisionId
void removeByLayoutRevisionId(long layoutRevisionId) Removes all the recent layout revisions where layoutRevisionId = ? from the database.- Parameters:
layoutRevisionId
- the layout revision ID
-
countByLayoutRevisionId
int countByLayoutRevisionId(long layoutRevisionId) Returns the number of recent layout revisions where layoutRevisionId = ?.- Parameters:
layoutRevisionId
- the layout revision ID- Returns:
- the number of matching recent layout revisions
-
findByU_L_P
RecentLayoutRevision findByU_L_P(long userId, long layoutSetBranchId, long plid) throws NoSuchRecentLayoutRevisionException Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or throws aNoSuchRecentLayoutRevisionException
if it could not be found.- Parameters:
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the matching recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a matching recent layout revision could not be found
-
fetchByU_L_P
Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
fetchByU_L_P
RecentLayoutRevision fetchByU_L_P(long userId, long layoutSetBranchId, long plid, boolean useFinderCache) Returns the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the pliduseFinderCache
- whether to use the finder cache- Returns:
- the matching recent layout revision, or
null
if a matching recent layout revision could not be found
-
removeByU_L_P
RecentLayoutRevision removeByU_L_P(long userId, long layoutSetBranchId, long plid) throws NoSuchRecentLayoutRevisionException Removes the recent layout revision where userId = ? and layoutSetBranchId = ? and plid = ? from the database.- Parameters:
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the recent layout revision that was removed
- Throws:
NoSuchRecentLayoutRevisionException
-
countByU_L_P
int countByU_L_P(long userId, long layoutSetBranchId, long plid) Returns the number of recent layout revisions where userId = ? and layoutSetBranchId = ? and plid = ?.- Parameters:
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the number of matching recent layout revisions
-
cacheResult
Caches the recent layout revision in the entity cache if it is enabled.- Parameters:
recentLayoutRevision
- the recent layout revision
-
cacheResult
Caches the recent layout revisions in the entity cache if it is enabled.- Parameters:
recentLayoutRevisions
- the recent layout revisions
-
create
Creates a new recent layout revision with the primary key. Does not add the recent layout revision to the database.- Parameters:
recentLayoutRevisionId
- the primary key for the new recent layout revision- Returns:
- the new recent layout revision
-
remove
Removes the recent layout revision with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
recentLayoutRevisionId
- the primary key of the recent layout revision- Returns:
- the recent layout revision that was removed
- Throws:
NoSuchRecentLayoutRevisionException
- if a recent layout revision with the primary key could not be found
-
updateImpl
-
findByPrimaryKey
RecentLayoutRevision findByPrimaryKey(long recentLayoutRevisionId) throws NoSuchRecentLayoutRevisionException Returns the recent layout revision with the primary key or throws aNoSuchRecentLayoutRevisionException
if it could not be found.- Parameters:
recentLayoutRevisionId
- the primary key of the recent layout revision- Returns:
- the recent layout revision
- Throws:
NoSuchRecentLayoutRevisionException
- if a recent layout revision with the primary key could not be found
-
fetchByPrimaryKey
Returns the recent layout revision with the primary key or returnsnull
if it could not be found.- Parameters:
recentLayoutRevisionId
- the primary key of the recent layout revision- Returns:
- the recent layout revision, or
null
if a recent layout revision with the primary key could not be found
-
findAll
List<RecentLayoutRevision> findAll()Returns all the recent layout revisions.- Returns:
- the recent layout revisions
-
findAll
Returns a range of all the recent layout revisions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
start
- the lower bound of the range of recent layout revisionsend
- the upper bound of the range of recent layout revisions (not inclusive)- Returns:
- the range of recent layout revisions
-
findAll
List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator) Returns an ordered range of all the recent layout revisions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
start
- 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 (optionallynull
)- Returns:
- the ordered range of recent layout revisions
-
findAll
List<RecentLayoutRevision> findAll(int start, int end, OrderByComparator<RecentLayoutRevision> orderByComparator, boolean useFinderCache) Returns an ordered range of all the recent layout revisions.Useful when paginating results. Returns a maximum of
end - start
instances.start
andend
are not primary keys, they are indexes in the result set. Thus,0
refers to the first result in the set. Setting bothstart
andend
toQueryUtil#ALL_POS
will return the full result set. IforderByComparator
is specified, then the query will include the given ORDER BY logic. IforderByComparator
is absent, then the query will include the default ORDER BY logic fromRecentLayoutRevisionModelImpl
.- Parameters:
start
- 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 (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of recent layout revisions
-
removeAll
void removeAll()Removes all the recent layout revisions from the database. -
countAll
int countAll()Returns the number of recent layout revisions.- Returns:
- the number of recent layout revisions
-