Class LayoutBranchUtil

Object
com.liferay.portal.kernel.service.persistence.LayoutBranchUtil

public class LayoutBranchUtil extends Object
The persistence utility for the layout branch service. This utility wraps 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 Details

    • LayoutBranchUtil

      public LayoutBranchUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
    • clearCache

      public static void clearCache(LayoutBranch layoutBranch)
      See Also:
    • countWithDynamicQuery

      public static long countWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • fetchByPrimaryKeys

      public static Map<Serializable,LayoutBranch> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
    • findWithDynamicQuery

      public static List<LayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery)
      See Also:
    • findWithDynamicQuery

      public static List<LayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end)
      See Also:
    • findWithDynamicQuery

      public static List<LayoutBranch> findWithDynamicQuery(DynamicQuery dynamicQuery, int start, int end, OrderByComparator<LayoutBranch> orderByComparator)
      See Also:
    • update

      public static LayoutBranch update(LayoutBranch layoutBranch)
      See Also:
    • update

      public static LayoutBranch update(LayoutBranch layoutBranch, ServiceContext serviceContext)
      See Also:
    • findByLayoutSetBranchId

      public static List<LayoutBranch> findByLayoutSetBranchId(long layoutSetBranchId)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      start - the lower bound of the range of layout branches
      end - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      orderByComparator - the comparator to order the set by (optionally null)
      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 branch
      layoutSetBranchId - the layout set branch ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout branch
      Throws:
      NoSuchLayoutBranchException - if a layout branch with the primary key could not be found
      NoSuchLayoutBranchException
    • 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

      public static List<LayoutBranch> findByPlid(long plid)
      Returns all the layout branches where plid = ?.
      Parameters:
      plid - the plid
      Returns:
      the matching layout branches
    • findByPlid

      public static List<LayoutBranch> findByPlid(long plid, int start, int end)
      Returns a range of all the layout branches where plid = ?.

      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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout branches
      end - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      plid - the plid
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 plid
      orderByComparator - the comparator to order the set by (optionally null)
      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 plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 plid
      orderByComparator - the comparator to order the set by (optionally null)
      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 branch
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout branch
      Throws:
      NoSuchLayoutBranchException - if a layout branch with the primary key could not be found
      NoSuchLayoutBranchException
    • 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

      public static List<LayoutBranch> findByL_P(long layoutSetBranchId, long plid)
      Returns all the layout branches where layoutSetBranchId = ? and plid = ?.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      Returns:
      the matching layout branches
    • findByL_P

      public 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 = ?.

      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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      start - the lower bound of the range of layout branches
      end - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      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 branch
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout branch
      Throws:
      NoSuchLayoutBranchException - if a layout branch with the primary key could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - 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 ID
      plid - 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 a NoSuchLayoutBranchException if it could not be found.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      name - the name
      Returns:
      the matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • fetchByL_P_N

      public static LayoutBranch fetchByL_P_N(long layoutSetBranchId, long plid, String name)
      Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      name - 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 returns null if it could not be found, optionally using the finder cache.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      name - the name
      useFinderCache - 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 ID
      plid - the plid
      name - the name
      Returns:
      the layout branch that was removed
      Throws:
      NoSuchLayoutBranchException
    • countByL_P_N

      public static int countByL_P_N(long layoutSetBranchId, long plid, String name)
      Returns the number of layout branches where layoutSetBranchId = ? and plid = ? and name = ?.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      name - the name
      Returns:
      the number of matching layout branches
    • findByL_P_M

      public static List<LayoutBranch> findByL_P_M(long layoutSetBranchId, long plid, boolean master)
      Returns all the layout branches where layoutSetBranchId = ? and plid = ? and master = ?.
      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      master - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      master - the master
      start - the lower bound of the range of layout branches
      end - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      master - the master
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      master - the master
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 ID
      plid - the plid
      master - the master
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - the plid
      master - the master
      orderByComparator - the comparator to order the set by (optionally null)
      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 ID
      plid - the plid
      master - the master
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching layout branch
      Throws:
      NoSuchLayoutBranchException - if a matching layout branch could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - the plid
      master - the master
      orderByComparator - the comparator to order the set by (optionally null)
      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 branch
      layoutSetBranchId - the layout set branch ID
      plid - the plid
      master - the master
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next layout branch
      Throws:
      NoSuchLayoutBranchException - if a layout branch with the primary key could not be found
      NoSuchLayoutBranchException
    • 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 ID
      plid - the plid
      master - 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 ID
      plid - the plid
      master - the master
      Returns:
      the number of matching layout branches
    • cacheResult

      public static void cacheResult(LayoutBranch layoutBranch)
      Caches the layout branch in the entity cache if it is enabled.
      Parameters:
      layoutBranch - the layout branch
    • cacheResult

      public static void cacheResult(List<LayoutBranch> layoutBranchs)
      Caches the layout branches in the entity cache if it is enabled.
      Parameters:
      layoutBranchs - the layout branches
    • create

      public static LayoutBranch create(long layoutBranchId)
      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

      public static LayoutBranch remove(long layoutBranchId) throws NoSuchLayoutBranchException
      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 found
      NoSuchLayoutBranchException
    • updateImpl

      public static LayoutBranch updateImpl(LayoutBranch layoutBranch)
    • findByPrimaryKey

      public static LayoutBranch findByPrimaryKey(long layoutBranchId) throws NoSuchLayoutBranchException
      Returns the layout branch with the primary key or throws a NoSuchLayoutBranchException 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 found
      NoSuchLayoutBranchException
    • fetchByPrimaryKey

      public static LayoutBranch fetchByPrimaryKey(long layoutBranchId)
      Returns the layout branch with the primary key or returns null 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

      public static List<LayoutBranch> findAll()
      Returns all the layout branches.
      Returns:
      the layout branches
    • findAll

      public static List<LayoutBranch> findAll(int start, int end)
      Returns a range of all the layout branches.

      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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      start - the lower bound of the range of layout branches
      end - 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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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 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, then the query will include the default ORDER BY logic from LayoutBranchModelImpl.

      Parameters:
      start - the lower bound of the range of layout branches
      end - the upper bound of the range of layout branches (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      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

      public static LayoutBranchPersistence getPersistence()
    • setPersistence

      public static void setPersistence(LayoutBranchPersistence persistence)