@ProviderType
public class RecentLayoutBranchUtil
extends Object
RecentLayoutBranchPersistenceImpl
and provides direct access to the database for CRUD operations. This utility should only be used by the service layer, as it must operate within a transaction. Never access this utility in a JSP, controller, model, or other front-end class.
Caching information and settings can be found in portal.properties
RecentLayoutBranchPersistence
,
RecentLayoutBranchPersistenceImpl
Constructor and Description |
---|
RecentLayoutBranchUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
cacheResult(List<RecentLayoutBranch> recentLayoutBranchs)
Caches the recent layout branchs in the entity cache if it is enabled.
|
static void |
cacheResult(RecentLayoutBranch recentLayoutBranch)
Caches the recent layout branch in the entity cache if it is enabled.
|
static void |
clearCache() |
static void |
clearCache(RecentLayoutBranch recentLayoutBranch) |
static int |
countAll()
Returns the number of recent layout branchs.
|
static int |
countByGroupId(long groupId)
Returns the number of recent layout branchs where groupId = ?.
|
static int |
countByLayoutBranchId(long layoutBranchId)
Returns the number of recent layout branchs where layoutBranchId = ?.
|
static int |
countByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the number of recent layout branchs where userId = ? and layoutSetBranchId = ? and plid = ?.
|
static int |
countByUserId(long userId)
Returns the number of recent layout branchs where userId = ?.
|
static long |
countWithDynamicQuery(DynamicQuery dynamicQuery) |
static RecentLayoutBranch |
create(long recentLayoutBranchId)
Creates a new recent layout branch with the primary key.
|
static RecentLayoutBranch |
fetchByGroupId_First(long groupId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where groupId = ?.
|
static RecentLayoutBranch |
fetchByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where groupId = ?.
|
static RecentLayoutBranch |
fetchByLayoutBranchId_First(long layoutBranchId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where layoutBranchId = ?.
|
static RecentLayoutBranch |
fetchByLayoutBranchId_Last(long layoutBranchId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where layoutBranchId = ?.
|
static RecentLayoutBranch |
fetchByPrimaryKey(long recentLayoutBranchId)
Returns the recent layout branch with the primary key or returns
null if it could not be found. |
static Map<Serializable,RecentLayoutBranch> |
fetchByPrimaryKeys(Set<Serializable> primaryKeys) |
static RecentLayoutBranch |
fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or returns
null if it could not be found. |
static RecentLayoutBranch |
fetchByU_L_P(long userId,
long layoutSetBranchId,
long plid,
boolean retrieveFromCache)
Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or returns
null if it could not be found, optionally using the finder cache. |
static RecentLayoutBranch |
fetchByUserId_First(long userId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where userId = ?.
|
static RecentLayoutBranch |
fetchByUserId_Last(long userId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where userId = ?.
|
static List<RecentLayoutBranch> |
findAll()
Returns all the recent layout branchs.
|
static List<RecentLayoutBranch> |
findAll(int start,
int end)
Returns a range of all the recent layout branchs.
|
static List<RecentLayoutBranch> |
findAll(int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns an ordered range of all the recent layout branchs.
|
static List<RecentLayoutBranch> |
findAll(int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs.
|
static RecentLayoutBranch |
findByGroupId_First(long groupId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where groupId = ?.
|
static RecentLayoutBranch |
findByGroupId_Last(long groupId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where groupId = ?.
|
static RecentLayoutBranch[] |
findByGroupId_PrevAndNext(long recentLayoutBranchId,
long groupId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where groupId = ?.
|
static List<RecentLayoutBranch> |
findByGroupId(long groupId)
Returns all the recent layout branchs where groupId = ?.
|
static List<RecentLayoutBranch> |
findByGroupId(long groupId,
int start,
int end)
Returns a range of all the recent layout branchs where groupId = ?.
|
static List<RecentLayoutBranch> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns an ordered range of all the recent layout branchs where groupId = ?.
|
static List<RecentLayoutBranch> |
findByGroupId(long groupId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs where groupId = ?.
|
static RecentLayoutBranch |
findByLayoutBranchId_First(long layoutBranchId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where layoutBranchId = ?.
|
static RecentLayoutBranch |
findByLayoutBranchId_Last(long layoutBranchId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where layoutBranchId = ?.
|
static RecentLayoutBranch[] |
findByLayoutBranchId_PrevAndNext(long recentLayoutBranchId,
long layoutBranchId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where layoutBranchId = ?.
|
static List<RecentLayoutBranch> |
findByLayoutBranchId(long layoutBranchId)
Returns all the recent layout branchs where layoutBranchId = ?.
|
static List<RecentLayoutBranch> |
findByLayoutBranchId(long layoutBranchId,
int start,
int end)
Returns a range of all the recent layout branchs where layoutBranchId = ?.
|
static List<RecentLayoutBranch> |
findByLayoutBranchId(long layoutBranchId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.
|
static List<RecentLayoutBranch> |
findByLayoutBranchId(long layoutBranchId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs where layoutBranchId = ?.
|
static RecentLayoutBranch |
findByPrimaryKey(long recentLayoutBranchId)
Returns the recent layout branch with the primary key or throws a
NoSuchRecentLayoutBranchException if it could not be found. |
static RecentLayoutBranch |
findByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Returns the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? or throws a
NoSuchRecentLayoutBranchException if it could not be found. |
static RecentLayoutBranch |
findByUserId_First(long userId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the first recent layout branch in the ordered set where userId = ?.
|
static RecentLayoutBranch |
findByUserId_Last(long userId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the last recent layout branch in the ordered set where userId = ?.
|
static RecentLayoutBranch[] |
findByUserId_PrevAndNext(long recentLayoutBranchId,
long userId,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns the recent layout branchs before and after the current recent layout branch in the ordered set where userId = ?.
|
static List<RecentLayoutBranch> |
findByUserId(long userId)
Returns all the recent layout branchs where userId = ?.
|
static List<RecentLayoutBranch> |
findByUserId(long userId,
int start,
int end)
Returns a range of all the recent layout branchs where userId = ?.
|
static List<RecentLayoutBranch> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator)
Returns an ordered range of all the recent layout branchs where userId = ?.
|
static List<RecentLayoutBranch> |
findByUserId(long userId,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the recent layout branchs where userId = ?.
|
static List<RecentLayoutBranch> |
findWithDynamicQuery(DynamicQuery dynamicQuery) |
static List<RecentLayoutBranch> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end) |
static List<RecentLayoutBranch> |
findWithDynamicQuery(DynamicQuery dynamicQuery,
int start,
int end,
OrderByComparator<RecentLayoutBranch> orderByComparator) |
static RecentLayoutBranchPersistence |
getPersistence() |
static RecentLayoutBranch |
remove(long recentLayoutBranchId)
Removes the recent layout branch with the primary key from the database.
|
static void |
removeAll()
Removes all the recent layout branchs from the database.
|
static void |
removeByGroupId(long groupId)
Removes all the recent layout branchs where groupId = ? from the database.
|
static void |
removeByLayoutBranchId(long layoutBranchId)
Removes all the recent layout branchs where layoutBranchId = ? from the database.
|
static RecentLayoutBranch |
removeByU_L_P(long userId,
long layoutSetBranchId,
long plid)
Removes the recent layout branch where userId = ? and layoutSetBranchId = ? and plid = ? from the database.
|
static void |
removeByUserId(long userId)
Removes all the recent layout branchs where userId = ? from the database.
|
static RecentLayoutBranch |
update(RecentLayoutBranch recentLayoutBranch) |
static RecentLayoutBranch |
update(RecentLayoutBranch recentLayoutBranch,
ServiceContext serviceContext) |
static RecentLayoutBranch |
updateImpl(RecentLayoutBranch recentLayoutBranch) |
public static void clearCache()
BasePersistence.clearCache()
public static void clearCache(RecentLayoutBranch recentLayoutBranch)
public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery)
public static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
public static List<RecentLayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<RecentLayoutBranch> orderByComparator)
public static RecentLayoutBranch update(RecentLayoutBranch recentLayoutBranch)
public static RecentLayoutBranch update(RecentLayoutBranch recentLayoutBranch, ServiceContext serviceContext)
public static List<RecentLayoutBranch> findByGroupId(long groupId)
groupId
- the group IDpublic static List<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)public static List<RecentLayoutBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<RecentLayoutBranch> findByGroupId(long groupId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
groupId
- the group IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RecentLayoutBranch findByGroupId_First(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByGroupId_First(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch findByGroupId_Last(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByGroupId_Last(long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator)
groupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch[] findByGroupId_PrevAndNext(long recentLayoutBranchId, long groupId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
recentLayoutBranchId
- the primary key of the current recent layout branchgroupId
- the group IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a recent layout branch with the primary key could not be foundpublic static void removeByGroupId(long groupId)
groupId
- the group IDpublic static int countByGroupId(long groupId)
groupId
- the group IDpublic static List<RecentLayoutBranch> findByUserId(long userId)
userId
- the user IDpublic static List<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)public static List<RecentLayoutBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<RecentLayoutBranch> findByUserId(long userId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
userId
- the user IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RecentLayoutBranch findByUserId_First(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByUserId_First(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch findByUserId_Last(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByUserId_Last(long userId, OrderByComparator<RecentLayoutBranch> orderByComparator)
userId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch[] findByUserId_PrevAndNext(long recentLayoutBranchId, long userId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
recentLayoutBranchId
- the primary key of the current recent layout branchuserId
- the user IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a recent layout branch with the primary key could not be foundpublic static void removeByUserId(long userId)
userId
- the user IDpublic static int countByUserId(long userId)
userId
- the user IDpublic static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId)
layoutBranchId
- the layout branch IDpublic static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, 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 RecentLayoutBranchModelImpl
. 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.
layoutBranchId
- the layout branch IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
layoutBranchId
- the layout branch IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<RecentLayoutBranch> findByLayoutBranchId(long layoutBranchId, int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
layoutBranchId
- the layout branch IDstart
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static RecentLayoutBranch findByLayoutBranchId_First(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
layoutBranchId
- the layout branch IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByLayoutBranchId_First(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
layoutBranchId
- the layout branch IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch findByLayoutBranchId_Last(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
layoutBranchId
- the layout branch IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByLayoutBranchId_Last(long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator)
layoutBranchId
- the layout branch IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch[] findByLayoutBranchId_PrevAndNext(long recentLayoutBranchId, long layoutBranchId, OrderByComparator<RecentLayoutBranch> orderByComparator) throws NoSuchRecentLayoutBranchException
recentLayoutBranchId
- the primary key of the current recent layout branchlayoutBranchId
- the layout branch IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchRecentLayoutBranchException
- if a recent layout branch with the primary key could not be foundpublic static void removeByLayoutBranchId(long layoutBranchId)
layoutBranchId
- the layout branch IDpublic static int countByLayoutBranchId(long layoutBranchId)
layoutBranchId
- the layout branch IDpublic static RecentLayoutBranch findByU_L_P(long userId, long layoutSetBranchId, long plid) throws NoSuchRecentLayoutBranchException
NoSuchRecentLayoutBranchException
if it could not be found.userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plidNoSuchRecentLayoutBranchException
- if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId, long plid)
null
if it could not be found. Uses the finder cache.userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plidnull
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch fetchByU_L_P(long userId, long layoutSetBranchId, long plid, boolean retrieveFromCache)
null
if it could not be found, optionally using the finder cache.userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plidretrieveFromCache
- whether to retrieve from the finder cachenull
if a matching recent layout branch could not be foundpublic static RecentLayoutBranch removeByU_L_P(long userId, long layoutSetBranchId, long plid) throws NoSuchRecentLayoutBranchException
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plidNoSuchRecentLayoutBranchException
public static int countByU_L_P(long userId, long layoutSetBranchId, long plid)
userId
- the user IDlayoutSetBranchId
- the layout set branch IDplid
- the plidpublic static void cacheResult(RecentLayoutBranch recentLayoutBranch)
recentLayoutBranch
- the recent layout branchpublic static void cacheResult(List<RecentLayoutBranch> recentLayoutBranchs)
recentLayoutBranchs
- the recent layout branchspublic static RecentLayoutBranch create(long recentLayoutBranchId)
recentLayoutBranchId
- the primary key for the new recent layout branchpublic static RecentLayoutBranch remove(long recentLayoutBranchId) throws NoSuchRecentLayoutBranchException
recentLayoutBranchId
- the primary key of the recent layout branchNoSuchRecentLayoutBranchException
- if a recent layout branch with the primary key could not be foundpublic static RecentLayoutBranch updateImpl(RecentLayoutBranch recentLayoutBranch)
public static RecentLayoutBranch findByPrimaryKey(long recentLayoutBranchId) throws NoSuchRecentLayoutBranchException
NoSuchRecentLayoutBranchException
if it could not be found.recentLayoutBranchId
- the primary key of the recent layout branchNoSuchRecentLayoutBranchException
- if a recent layout branch with the primary key could not be foundpublic static RecentLayoutBranch fetchByPrimaryKey(long recentLayoutBranchId)
null
if it could not be found.recentLayoutBranchId
- the primary key of the recent layout branchnull
if a recent layout branch with the primary key could not be foundpublic static Map<Serializable,RecentLayoutBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
public static List<RecentLayoutBranch> findAll()
public static List<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
start
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)public static List<RecentLayoutBranch> findAll(int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
start
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)public static List<RecentLayoutBranch> findAll(int start, int end, OrderByComparator<RecentLayoutBranch> 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 RecentLayoutBranchModelImpl
. 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.
start
- the lower bound of the range of recent layout branchsend
- the upper bound of the range of recent layout branchs (not inclusive)orderByComparator
- the comparator to order the results by (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachepublic static void removeAll()
public static int countAll()
public static RecentLayoutBranchPersistence getPersistence()