Class LayoutBranchUtil
com.liferay.portal.service.persistence.impl.LayoutBranchPersistenceImpl
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
- Author:
- Brian Wing Shun Chan
- See Also:
- {$generated.description}
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
cacheResult
(LayoutBranch layoutBranch) Caches the layout branch in the entity cache if it is enabled.static void
cacheResult
(List<LayoutBranch> layoutBranchs) Caches the layout branches in the entity cache if it is enabled.static void
static void
clearCache
(LayoutBranch layoutBranch) static int
countAll()
Returns the number of layout branches.static int
countByL_P
(long layoutSetBranchId, long plid) Returns the number of layout branches where layoutSetBranchId = ? and plid = ?.static int
countByL_P_M
(long layoutSetBranchId, long plid, boolean master) Returns the number of layout branches where layoutSetBranchId = ? and plid = ? and master = ?.static int
countByL_P_N
(long layoutSetBranchId, long plid, String name) Returns the number of layout branches where layoutSetBranchId = ? and plid = ? and name = ?.static int
countByLayoutSetBranchId
(long layoutSetBranchId) Returns the number of layout branches where layoutSetBranchId = ?.static int
countByPlid
(long plid) Returns the number of layout branches where plid = ?.static long
countWithDynamicQuery
(DynamicQuery dynamicQuery) static LayoutBranch
create
(long layoutBranchId) Creates a new layout branch with the primary key.static LayoutBranch
fetchByL_P_First
(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.static LayoutBranch
fetchByL_P_Last
(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.static LayoutBranch
fetchByL_P_M_First
(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch
fetchByL_P_M_Last
(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch
fetchByL_P_N
(long layoutSetBranchId, long plid, String name) Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returnsnull
if it could not be found.static LayoutBranch
fetchByL_P_N
(long layoutSetBranchId, long plid, String name, boolean useFinderCache) Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.static LayoutBranch
fetchByLayoutSetBranchId_First
(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ?.static LayoutBranch
fetchByLayoutSetBranchId_Last
(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ?.static LayoutBranch
fetchByPlid_First
(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where plid = ?.static LayoutBranch
fetchByPlid_Last
(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where plid = ?.static LayoutBranch
fetchByPrimaryKey
(long layoutBranchId) Returns the layout branch with the primary key or returnsnull
if it could not be found.static Map<Serializable,
LayoutBranch> fetchByPrimaryKeys
(Set<Serializable> primaryKeys) static List<LayoutBranch>
findAll()
Returns all the layout branches.static List<LayoutBranch>
findAll
(int start, int end) Returns a range of all the layout branches.static List<LayoutBranch>
findAll
(int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches.static List<LayoutBranch>
findAll
(int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches.static List<LayoutBranch>
findByL_P
(long layoutSetBranchId, long plid) Returns all the layout branches where layoutSetBranchId = ? and plid = ?.static List<LayoutBranch>
findByL_P
(long layoutSetBranchId, long plid, int start, int end) Returns a range of all the layout branches where layoutSetBranchId = ? and plid = ?.static List<LayoutBranch>
findByL_P
(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ?.static List<LayoutBranch>
findByL_P
(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ?.static LayoutBranch
findByL_P_First
(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.static LayoutBranch
findByL_P_Last
(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.static List<LayoutBranch>
findByL_P_M
(long layoutSetBranchId, long plid, boolean master) Returns all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.static List<LayoutBranch>
findByL_P_M
(long layoutSetBranchId, long plid, boolean master, int start, int end) Returns a range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.static List<LayoutBranch>
findByL_P_M
(long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.static List<LayoutBranch>
findByL_P_M
(long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch
findByL_P_M_First
(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch
findByL_P_M_Last
(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch[]
findByL_P_M_PrevAndNext
(long layoutBranchId, long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.static LayoutBranch
findByL_P_N
(long layoutSetBranchId, long plid, String name) Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or throws aNoSuchLayoutBranchException
if it could not be found.static LayoutBranch[]
findByL_P_PrevAndNext
(long layoutBranchId, long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.static List<LayoutBranch>
findByLayoutSetBranchId
(long layoutSetBranchId) Returns all the layout branches where layoutSetBranchId = ?.static List<LayoutBranch>
findByLayoutSetBranchId
(long layoutSetBranchId, int start, int end) Returns a range of all the layout branches where layoutSetBranchId = ?.static List<LayoutBranch>
findByLayoutSetBranchId
(long layoutSetBranchId, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ?.static List<LayoutBranch>
findByLayoutSetBranchId
(long layoutSetBranchId, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ?.static LayoutBranch
findByLayoutSetBranchId_First
(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ?.static LayoutBranch
findByLayoutSetBranchId_Last
(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ?.static LayoutBranch[]
findByLayoutSetBranchId_PrevAndNext
(long layoutBranchId, long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ?.static List<LayoutBranch>
findByPlid
(long plid) Returns all the layout branches where plid = ?.static List<LayoutBranch>
findByPlid
(long plid, int start, int end) Returns a range of all the layout branches where plid = ?.static List<LayoutBranch>
findByPlid
(long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where plid = ?.static List<LayoutBranch>
findByPlid
(long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where plid = ?.static LayoutBranch
findByPlid_First
(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where plid = ?.static LayoutBranch
findByPlid_Last
(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where plid = ?.static LayoutBranch[]
findByPlid_PrevAndNext
(long layoutBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the layout branches before and after the current layout branch in the ordered set where plid = ?.static LayoutBranch
findByPrimaryKey
(long layoutBranchId) Returns the layout branch with the primary key or throws aNoSuchLayoutBranchException
if it could not be found.static List<LayoutBranch>
findWithDynamicQuery
(DynamicQuery dynamicQuery) static List<LayoutBranch>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end) static List<LayoutBranch>
findWithDynamicQuery
(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) static LayoutBranchPersistence
static LayoutBranch
remove
(long layoutBranchId) Removes the layout branch with the primary key from the database.static void
Removes all the layout branches from the database.static void
removeByL_P
(long layoutSetBranchId, long plid) Removes all the layout branches where layoutSetBranchId = ? and plid = ? from the database.static void
removeByL_P_M
(long layoutSetBranchId, long plid, boolean master) Removes all the layout branches where layoutSetBranchId = ? and plid = ? and master = ? from the database.static LayoutBranch
removeByL_P_N
(long layoutSetBranchId, long plid, String name) Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database.static void
removeByLayoutSetBranchId
(long layoutSetBranchId) Removes all the layout branches where layoutSetBranchId = ? from the database.static void
removeByPlid
(long plid) Removes all the layout branches where plid = ? from the database.static void
setPersistence
(LayoutBranchPersistence persistence) static LayoutBranch
update
(LayoutBranch layoutBranch) static LayoutBranch
update
(LayoutBranch layoutBranch, ServiceContext serviceContext) static LayoutBranch
updateImpl
(LayoutBranch layoutBranch)
-
Constructor Details
-
LayoutBranchUtil
public LayoutBranchUtil()
-
-
Method Details
-
clearCache
public static void clearCache()- See Also:
-
clearCache
-
countWithDynamicQuery
-
fetchByPrimaryKeys
- See Also:
-
findWithDynamicQuery
-
findWithDynamicQuery
public static List<LayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end) -
findWithDynamicQuery
public static List<LayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) -
update
-
update
-
findByLayoutSetBranchId
Returns all the layout branches where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch ID- Returns:
- the matching layout branches
-
findByLayoutSetBranchId
public static List<LayoutBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end) Returns a range of all the layout branches where layoutSetBranchId = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)- Returns:
- the range of matching layout branches
-
findByLayoutSetBranchId
public static List<LayoutBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout branches
-
findByLayoutSetBranchId
public static List<LayoutBranch> findByLayoutSetBranchId(long layoutSetBranchId, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching layout branches
-
findByLayoutSetBranchId_First
public static LayoutBranch findByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the first layout branch in the ordered set where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByLayoutSetBranchId_First
public static LayoutBranch fetchByLayoutSetBranchId_First(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch, or
null
if a matching layout branch could not be found
-
findByLayoutSetBranchId_Last
public static LayoutBranch findByLayoutSetBranchId_Last(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the last layout branch in the ordered set where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByLayoutSetBranchId_Last
public static LayoutBranch fetchByLayoutSetBranchId_Last(long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch, or
null
if a matching layout branch could not be found
-
findByLayoutSetBranchId_PrevAndNext
public static LayoutBranch[] findByLayoutSetBranchId_PrevAndNext(long layoutBranchId, long layoutSetBranchId, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ?.- Parameters:
layoutBranchId
- the primary key of the current layout branchlayoutSetBranchId
- the layout set branch IDorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout branch
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
removeByLayoutSetBranchId
public static void removeByLayoutSetBranchId(long layoutSetBranchId) Removes all the layout branches where layoutSetBranchId = ? from the database.- Parameters:
layoutSetBranchId
- the layout set branch ID
-
countByLayoutSetBranchId
public static int countByLayoutSetBranchId(long layoutSetBranchId) Returns the number of layout branches where layoutSetBranchId = ?.- Parameters:
layoutSetBranchId
- the layout set branch ID- Returns:
- the number of matching layout branches
-
findByPlid
Returns all the layout branches where plid = ?.- Parameters:
plid
- the plid- Returns:
- the matching layout branches
-
findByPlid
Returns a range of all the layout branches where plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)- Returns:
- the range of matching layout branches
-
findByPlid
public static List<LayoutBranch> findByPlid(long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout branches
-
findByPlid
public static List<LayoutBranch> findByPlid(long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
plid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching layout branches
-
findByPlid_First
public static LayoutBranch findByPlid_First(long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the first layout branch in the ordered set where plid = ?.- Parameters:
plid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByPlid_First
public static LayoutBranch fetchByPlid_First(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where plid = ?.- Parameters:
plid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch, or
null
if a matching layout branch could not be found
-
findByPlid_Last
public static LayoutBranch findByPlid_Last(long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the last layout branch in the ordered set where plid = ?.- Parameters:
plid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByPlid_Last
public static LayoutBranch fetchByPlid_Last(long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where plid = ?.- Parameters:
plid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch, or
null
if a matching layout branch could not be found
-
findByPlid_PrevAndNext
public static LayoutBranch[] findByPlid_PrevAndNext(long layoutBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the layout branches before and after the current layout branch in the ordered set where plid = ?.- Parameters:
layoutBranchId
- the primary key of the current layout branchplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout branch
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
removeByPlid
public static void removeByPlid(long plid) Removes all the layout branches where plid = ? from the database.- Parameters:
plid
- the plid
-
countByPlid
public static int countByPlid(long plid) Returns the number of layout branches where plid = ?.- Parameters:
plid
- the plid- Returns:
- the number of matching layout branches
-
findByL_P
Returns all the layout branches where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the matching layout branches
-
findByL_P
Returns a range of all the layout branches where layoutSetBranchId = ? and plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)- Returns:
- the range of matching layout branches
-
findByL_P
public static List<LayoutBranch> findByL_P(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout branches
-
findByL_P
public static List<LayoutBranch> findByL_P(long layoutSetBranchId, long plid, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching layout branches
-
findByL_P_First
public static LayoutBranch findByL_P_First(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByL_P_First
public static LayoutBranch fetchByL_P_First(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch, or
null
if a matching layout branch could not be found
-
findByL_P_Last
public static LayoutBranch findByL_P_Last(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByL_P_Last
public static LayoutBranch fetchByL_P_Last(long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch, or
null
if a matching layout branch could not be found
-
findByL_P_PrevAndNext
public static LayoutBranch[] findByL_P_PrevAndNext(long layoutBranchId, long layoutSetBranchId, long plid, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutBranchId
- the primary key of the current layout branchlayoutSetBranchId
- the layout set branch IDplid
- the plidorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout branch
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
removeByL_P
public static void removeByL_P(long layoutSetBranchId, long plid) Removes all the layout branches where layoutSetBranchId = ? and plid = ? from the database.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plid
-
countByL_P
public static int countByL_P(long layoutSetBranchId, long plid) Returns the number of layout branches where layoutSetBranchId = ? and plid = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plid- Returns:
- the number of matching layout branches
-
findByL_P_N
public static LayoutBranch findByL_P_N(long layoutSetBranchId, long plid, String name) throws NoSuchLayoutBranchException Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or throws aNoSuchLayoutBranchException
if it could not be found.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidname
- the name- Returns:
- the matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByL_P_N
Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returnsnull
if it could not be found. Uses the finder cache.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidname
- the name- Returns:
- the matching layout branch, or
null
if a matching layout branch could not be found
-
fetchByL_P_N
public static LayoutBranch fetchByL_P_N(long layoutSetBranchId, long plid, String name, boolean useFinderCache) Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returnsnull
if it could not be found, optionally using the finder cache.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidname
- the nameuseFinderCache
- whether to use the finder cache- Returns:
- the matching layout branch, or
null
if a matching layout branch could not be found
-
removeByL_P_N
public static LayoutBranch removeByL_P_N(long layoutSetBranchId, long plid, String name) throws NoSuchLayoutBranchException Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidname
- the name- Returns:
- the layout branch that was removed
- Throws:
NoSuchLayoutBranchException
-
countByL_P_N
Returns the number of layout branches where layoutSetBranchId = ? and plid = ? and name = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidname
- the name- Returns:
- the number of matching layout branches
-
findByL_P_M
Returns all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the master- Returns:
- the matching layout branches
-
findByL_P_M
public static List<LayoutBranch> findByL_P_M(long layoutSetBranchId, long plid, boolean master, int start, int end) Returns a range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)- Returns:
- the range of matching layout branches
-
findByL_P_M
public static List<LayoutBranch> findByL_P_M(long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of matching layout branches
-
findByL_P_M
public static List<LayoutBranch> findByL_P_M(long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.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 fromLayoutBranchModelImpl
.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterstart
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of matching layout branches
-
findByL_P_M_First
public static LayoutBranch findByL_P_M_First(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByL_P_M_First
public static LayoutBranch fetchByL_P_M_First(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the first matching layout branch, or
null
if a matching layout branch could not be found
-
findByL_P_M_Last
public static LayoutBranch findByL_P_M_Last(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch
- Throws:
NoSuchLayoutBranchException
- if a matching layout branch could not be foundNoSuchLayoutBranchException
-
fetchByL_P_M_Last
public static LayoutBranch fetchByL_P_M_Last(long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the last matching layout branch, or
null
if a matching layout branch could not be found
-
findByL_P_M_PrevAndNext
public static LayoutBranch[] findByL_P_M_PrevAndNext(long layoutBranchId, long layoutSetBranchId, long plid, boolean master, OrderByComparator<LayoutBranch> orderByComparator) throws NoSuchLayoutBranchException Returns the layout branches before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutBranchId
- the primary key of the current layout branchlayoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the masterorderByComparator
- the comparator to order the set by (optionallynull
)- Returns:
- the previous, current, and next layout branch
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
removeByL_P_M
public static void removeByL_P_M(long layoutSetBranchId, long plid, boolean master) Removes all the layout branches where layoutSetBranchId = ? and plid = ? and master = ? from the database.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the master
-
countByL_P_M
public static int countByL_P_M(long layoutSetBranchId, long plid, boolean master) Returns the number of layout branches where layoutSetBranchId = ? and plid = ? and master = ?.- Parameters:
layoutSetBranchId
- the layout set branch IDplid
- the plidmaster
- the master- Returns:
- the number of matching layout branches
-
cacheResult
Caches the layout branch in the entity cache if it is enabled.- Parameters:
layoutBranch
- the layout branch
-
cacheResult
Caches the layout branches in the entity cache if it is enabled.- Parameters:
layoutBranchs
- the layout branches
-
create
Creates a new layout branch with the primary key. Does not add the layout branch to the database.- Parameters:
layoutBranchId
- the primary key for the new layout branch- Returns:
- the new layout branch
-
remove
Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners.- Parameters:
layoutBranchId
- the primary key of the layout branch- Returns:
- the layout branch that was removed
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
updateImpl
-
findByPrimaryKey
Returns the layout branch with the primary key or throws aNoSuchLayoutBranchException
if it could not be found.- Parameters:
layoutBranchId
- the primary key of the layout branch- Returns:
- the layout branch
- Throws:
NoSuchLayoutBranchException
- if a layout branch with the primary key could not be foundNoSuchLayoutBranchException
-
fetchByPrimaryKey
Returns the layout branch with the primary key or returnsnull
if it could not be found.- Parameters:
layoutBranchId
- the primary key of the layout branch- Returns:
- the layout branch, or
null
if a layout branch with the primary key could not be found
-
findAll
Returns all the layout branches.- Returns:
- the layout branches
-
findAll
Returns a range of all the layout branches.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 fromLayoutBranchModelImpl
.- Parameters:
start
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)- Returns:
- the range of layout branches
-
findAll
public static List<LayoutBranch> findAll(int start, int end, OrderByComparator<LayoutBranch> orderByComparator) Returns an ordered range of all the layout branches.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 fromLayoutBranchModelImpl
.- Parameters:
start
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)- Returns:
- the ordered range of layout branches
-
findAll
public static List<LayoutBranch> findAll(int start, int end, OrderByComparator<LayoutBranch> orderByComparator, boolean useFinderCache) Returns an ordered range of all the layout branches.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 fromLayoutBranchModelImpl
.- Parameters:
start
- the lower bound of the range of layout branchesend
- the upper bound of the range of layout branches (not inclusive)orderByComparator
- the comparator to order the results by (optionallynull
)useFinderCache
- whether to use the finder cache- Returns:
- the ordered range of layout branches
-
removeAll
public static void removeAll()Removes all the layout branches from the database. -
countAll
public static int countAll()Returns the number of layout branches.- Returns:
- the number of layout branches
-
getPersistence
-
setPersistence
-