All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.liferay.portal.kernel.service.persistence.LayoutBranchUtil Maven / Gradle / Ivy

There is a newer version: 7.4.3.112-ga112
Show newest version
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.liferay.portal.kernel.service.persistence;

import aQute.bnd.annotation.ProviderType;

import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
import com.liferay.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.model.LayoutBranch;
import com.liferay.portal.kernel.service.ServiceContext;
import com.liferay.portal.kernel.util.OrderByComparator;

import java.io.Serializable;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 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 LayoutBranchPersistence * @generated */ @ProviderType public class LayoutBranchUtil { /* * NOTE FOR DEVELOPERS: * * Never modify this class directly. Modify service.xml and rerun ServiceBuilder to regenerate this class. */ /** * @see BasePersistence#clearCache() */ public static void clearCache() { getPersistence().clearCache(); } /** * @see BasePersistence#clearCache(com.liferay.portal.kernel.model.BaseModel) */ public static void clearCache(LayoutBranch layoutBranch) { getPersistence().clearCache(layoutBranch); } /** * @see BasePersistence#countWithDynamicQuery(DynamicQuery) */ public static long countWithDynamicQuery(DynamicQuery dynamicQuery) { return getPersistence().countWithDynamicQuery(dynamicQuery); } /** * @see BasePersistence#fetchByPrimaryKeys(Set) */ public static Map fetchByPrimaryKeys( Set primaryKeys) { return getPersistence().fetchByPrimaryKeys(primaryKeys); } /** * @see BasePersistence#findWithDynamicQuery(DynamicQuery) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery) { return getPersistence().findWithDynamicQuery(dynamicQuery); } /** * @see BasePersistence#findWithDynamicQuery(DynamicQuery, int, int) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end) { return getPersistence().findWithDynamicQuery(dynamicQuery, start, end); } /** * @see BasePersistence#findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator) */ public static List findWithDynamicQuery( DynamicQuery dynamicQuery, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findWithDynamicQuery( dynamicQuery, start, end, orderByComparator); } /** * @see BasePersistence#update(com.liferay.portal.kernel.model.BaseModel) */ public static LayoutBranch update(LayoutBranch layoutBranch) { return getPersistence().update(layoutBranch); } /** * @see BasePersistence#update(com.liferay.portal.kernel.model.BaseModel, ServiceContext) */ public static LayoutBranch update( LayoutBranch layoutBranch, ServiceContext serviceContext) { return getPersistence().update(layoutBranch, serviceContext); } /** * Returns all the layout branchs where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @return the matching layout branchs */ public static List findByLayoutSetBranchId( long layoutSetBranchId) { return getPersistence().findByLayoutSetBranchId(layoutSetBranchId); } /** * Returns a range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @return the range of matching layout branchs */ public static List findByLayoutSetBranchId( long layoutSetBranchId, int start, int end) { return getPersistence().findByLayoutSetBranchId( layoutSetBranchId, start, end); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layout branchs */ public static List findByLayoutSetBranchId( long layoutSetBranchId, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByLayoutSetBranchId( layoutSetBranchId, start, end, orderByComparator); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching layout branchs */ public static List findByLayoutSetBranchId( long layoutSetBranchId, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByLayoutSetBranchId( layoutSetBranchId, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByLayoutSetBranchId_First( long layoutSetBranchId, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByLayoutSetBranchId_First( layoutSetBranchId, orderByComparator); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByLayoutSetBranchId_First( long layoutSetBranchId, OrderByComparator orderByComparator) { return getPersistence().fetchByLayoutSetBranchId_First( layoutSetBranchId, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByLayoutSetBranchId_Last( long layoutSetBranchId, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByLayoutSetBranchId_Last( layoutSetBranchId, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByLayoutSetBranchId_Last( long layoutSetBranchId, OrderByComparator orderByComparator) { return getPersistence().fetchByLayoutSetBranchId_Last( layoutSetBranchId, orderByComparator); } /** * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ?. * * @param layoutBranchId the primary key of the current layout branch * @param layoutSetBranchId the layout set branch ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout branch * @throws NoSuchLayoutBranchException if a layout branch with the primary key could not be found */ public static LayoutBranch[] findByLayoutSetBranchId_PrevAndNext( long layoutBranchId, long layoutSetBranchId, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByLayoutSetBranchId_PrevAndNext( layoutBranchId, layoutSetBranchId, orderByComparator); } /** * Removes all the layout branchs where layoutSetBranchId = ? from the database. * * @param layoutSetBranchId the layout set branch ID */ public static void removeByLayoutSetBranchId(long layoutSetBranchId) { getPersistence().removeByLayoutSetBranchId(layoutSetBranchId); } /** * Returns the number of layout branchs where layoutSetBranchId = ?. * * @param layoutSetBranchId the layout set branch ID * @return the number of matching layout branchs */ public static int countByLayoutSetBranchId(long layoutSetBranchId) { return getPersistence().countByLayoutSetBranchId(layoutSetBranchId); } /** * Returns all the layout branchs where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @return the matching layout branchs */ public static List findByL_P( long layoutSetBranchId, long plid) { return getPersistence().findByL_P(layoutSetBranchId, plid); } /** * Returns a range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @return the range of matching layout branchs */ public static List findByL_P( long layoutSetBranchId, long plid, int start, int end) { return getPersistence().findByL_P(layoutSetBranchId, plid, start, end); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layout branchs */ public static List findByL_P( long layoutSetBranchId, long plid, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByL_P( layoutSetBranchId, plid, start, end, orderByComparator); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching layout branchs */ public static List findByL_P( long layoutSetBranchId, long plid, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByL_P( layoutSetBranchId, plid, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByL_P_First( long layoutSetBranchId, long plid, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_First( layoutSetBranchId, plid, orderByComparator); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_First( long layoutSetBranchId, long plid, OrderByComparator orderByComparator) { return getPersistence().fetchByL_P_First( layoutSetBranchId, plid, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByL_P_Last( long layoutSetBranchId, long plid, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_Last( layoutSetBranchId, plid, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_Last( long layoutSetBranchId, long plid, OrderByComparator orderByComparator) { return getPersistence().fetchByL_P_Last( layoutSetBranchId, plid, orderByComparator); } /** * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ?. * * @param layoutBranchId the primary key of the current layout branch * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout branch * @throws NoSuchLayoutBranchException if a layout branch with the primary key could not be found */ public static LayoutBranch[] findByL_P_PrevAndNext( long layoutBranchId, long layoutSetBranchId, long plid, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_PrevAndNext( layoutBranchId, layoutSetBranchId, plid, orderByComparator); } /** * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? from the database. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid */ public static void removeByL_P(long layoutSetBranchId, long plid) { getPersistence().removeByL_P(layoutSetBranchId, plid); } /** * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @return the number of matching layout branchs */ public static int countByL_P(long layoutSetBranchId, long plid) { return getPersistence().countByL_P(layoutSetBranchId, plid); } /** * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or throws a NoSuchLayoutBranchException if it could not be found. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param name the name * @return the matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByL_P_N( long layoutSetBranchId, long plid, String name) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_N(layoutSetBranchId, plid, name); } /** * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returns null if it could not be found. Uses the finder cache. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param name the name * @return the matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_N( long layoutSetBranchId, long plid, String name) { return getPersistence().fetchByL_P_N(layoutSetBranchId, plid, name); } /** * Returns the layout branch where layoutSetBranchId = ? and plid = ? and name = ? or returns null if it could not be found, optionally using the finder cache. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param name the name * @param retrieveFromCache whether to retrieve from the finder cache * @return the matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_N( long layoutSetBranchId, long plid, String name, boolean retrieveFromCache) { return getPersistence().fetchByL_P_N( layoutSetBranchId, plid, name, retrieveFromCache); } /** * Removes the layout branch where layoutSetBranchId = ? and plid = ? and name = ? from the database. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param name the name * @return the layout branch that was removed */ public static LayoutBranch removeByL_P_N( long layoutSetBranchId, long plid, String name) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().removeByL_P_N(layoutSetBranchId, plid, name); } /** * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and name = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param name the name * @return the number of matching layout branchs */ public static int countByL_P_N( long layoutSetBranchId, long plid, String name) { return getPersistence().countByL_P_N(layoutSetBranchId, plid, name); } /** * Returns all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @return the matching layout branchs */ public static List findByL_P_M( long layoutSetBranchId, long plid, boolean master) { return getPersistence().findByL_P_M(layoutSetBranchId, plid, master); } /** * Returns a range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @return the range of matching layout branchs */ public static List findByL_P_M( long layoutSetBranchId, long plid, boolean master, int start, int end) { return getPersistence().findByL_P_M( layoutSetBranchId, plid, master, start, end); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching layout branchs */ public static List findByL_P_M( long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator orderByComparator) { return getPersistence().findByL_P_M( layoutSetBranchId, plid, master, start, end, orderByComparator); } /** * Returns an ordered range of all the layout branchs 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 and pagination is required (start and end are not QueryUtil#ALL_POS), then the query will include the default ORDER BY logic from LayoutBranchModelImpl. 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. *

* * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of matching layout branchs */ public static List findByL_P_M( long layoutSetBranchId, long plid, boolean master, int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findByL_P_M( layoutSetBranchId, plid, master, start, end, orderByComparator, retrieveFromCache); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByL_P_M_First( long layoutSetBranchId, long plid, boolean master, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_M_First( layoutSetBranchId, plid, master, orderByComparator); } /** * Returns the first layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_M_First( long layoutSetBranchId, long plid, boolean master, OrderByComparator orderByComparator) { return getPersistence().fetchByL_P_M_First( layoutSetBranchId, plid, master, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch * @throws NoSuchLayoutBranchException if a matching layout branch could not be found */ public static LayoutBranch findByL_P_M_Last( long layoutSetBranchId, long plid, boolean master, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_M_Last( layoutSetBranchId, plid, master, orderByComparator); } /** * Returns the last layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching layout branch, or null if a matching layout branch could not be found */ public static LayoutBranch fetchByL_P_M_Last( long layoutSetBranchId, long plid, boolean master, OrderByComparator orderByComparator) { return getPersistence().fetchByL_P_M_Last( layoutSetBranchId, plid, master, orderByComparator); } /** * Returns the layout branchs before and after the current layout branch in the ordered set where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutBranchId the primary key of the current layout branch * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next layout branch * @throws NoSuchLayoutBranchException if a layout branch with the primary key could not be found */ public static LayoutBranch[] findByL_P_M_PrevAndNext( long layoutBranchId, long layoutSetBranchId, long plid, boolean master, OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByL_P_M_PrevAndNext( layoutBranchId, layoutSetBranchId, plid, master, orderByComparator); } /** * Removes all the layout branchs where layoutSetBranchId = ? and plid = ? and master = ? from the database. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master */ public static void removeByL_P_M( long layoutSetBranchId, long plid, boolean master) { getPersistence().removeByL_P_M(layoutSetBranchId, plid, master); } /** * Returns the number of layout branchs where layoutSetBranchId = ? and plid = ? and master = ?. * * @param layoutSetBranchId the layout set branch ID * @param plid the plid * @param master the master * @return the number of matching layout branchs */ public static int countByL_P_M( long layoutSetBranchId, long plid, boolean master) { return getPersistence().countByL_P_M(layoutSetBranchId, plid, master); } /** * Caches the layout branch in the entity cache if it is enabled. * * @param layoutBranch the layout branch */ public static void cacheResult(LayoutBranch layoutBranch) { getPersistence().cacheResult(layoutBranch); } /** * Caches the layout branchs in the entity cache if it is enabled. * * @param layoutBranchs the layout branchs */ public static void cacheResult(List layoutBranchs) { getPersistence().cacheResult(layoutBranchs); } /** * Creates a new layout branch with the primary key. Does not add the layout branch to the database. * * @param layoutBranchId the primary key for the new layout branch * @return the new layout branch */ public static LayoutBranch create(long layoutBranchId) { return getPersistence().create(layoutBranchId); } /** * Removes the layout branch with the primary key from the database. Also notifies the appropriate model listeners. * * @param layoutBranchId the primary key of the layout branch * @return the layout branch that was removed * @throws NoSuchLayoutBranchException if a layout branch with the primary key could not be found */ public static LayoutBranch remove(long layoutBranchId) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().remove(layoutBranchId); } public static LayoutBranch updateImpl(LayoutBranch layoutBranch) { return getPersistence().updateImpl(layoutBranch); } /** * Returns the layout branch with the primary key or throws a NoSuchLayoutBranchException if it could not be found. * * @param layoutBranchId the primary key of the layout branch * @return the layout branch * @throws NoSuchLayoutBranchException if a layout branch with the primary key could not be found */ public static LayoutBranch findByPrimaryKey(long layoutBranchId) throws com.liferay.portal.kernel.exception.NoSuchLayoutBranchException { return getPersistence().findByPrimaryKey(layoutBranchId); } /** * Returns the layout branch with the primary key or returns null if it could not be found. * * @param layoutBranchId the primary key of the layout branch * @return the layout branch, or null if a layout branch with the primary key could not be found */ public static LayoutBranch fetchByPrimaryKey(long layoutBranchId) { return getPersistence().fetchByPrimaryKey(layoutBranchId); } /** * Returns all the layout branchs. * * @return the layout branchs */ public static List findAll() { return getPersistence().findAll(); } /** * Returns a range of all the layout branchs. * *

* 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 LayoutBranchModelImpl. 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. *

* * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @return the range of layout branchs */ public static List findAll(int start, int end) { return getPersistence().findAll(start, end); } /** * Returns an ordered range of all the layout branchs. * *

* 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 LayoutBranchModelImpl. 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. *

* * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of layout branchs */ public static List findAll( int start, int end, OrderByComparator orderByComparator) { return getPersistence().findAll(start, end, orderByComparator); } /** * Returns an ordered range of all the layout branchs. * *

* 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 LayoutBranchModelImpl. 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. *

* * @param start the lower bound of the range of layout branchs * @param end the upper bound of the range of layout branchs (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param retrieveFromCache whether to retrieve from the finder cache * @return the ordered range of layout branchs */ public static List findAll( int start, int end, OrderByComparator orderByComparator, boolean retrieveFromCache) { return getPersistence().findAll( start, end, orderByComparator, retrieveFromCache); } /** * Removes all the layout branchs from the database. */ public static void removeAll() { getPersistence().removeAll(); } /** * Returns the number of layout branchs. * * @return the number of layout branchs */ public static int countAll() { return getPersistence().countAll(); } public static LayoutBranchPersistence getPersistence() { if (_persistence == null) { _persistence = (LayoutBranchPersistence)PortalBeanLocatorUtil.locate( LayoutBranchPersistence.class.getName()); } return _persistence; } private static LayoutBranchPersistence _persistence; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy