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

com.liferay.segments.service.persistence.SegmentsEntryRolePersistence Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

package com.liferay.segments.service.persistence;

import com.liferay.portal.kernel.service.persistence.BasePersistence;
import com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence;
import com.liferay.segments.exception.NoSuchEntryRoleException;
import com.liferay.segments.model.SegmentsEntryRole;

import org.osgi.annotation.versioning.ProviderType;

/**
 * The persistence interface for the segments entry role service.
 *
 * 

* Caching information and settings can be found in portal.properties *

* * @author Eduardo Garcia * @see SegmentsEntryRoleUtil * @generated */ @ProviderType public interface SegmentsEntryRolePersistence extends BasePersistence, CTPersistence { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. Always use {@link SegmentsEntryRoleUtil} to access the segments entry role persistence. Modify service.xml and rerun ServiceBuilder to regenerate this interface. */ /** * Returns all the segments entry roles where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @return the matching segments entry roles */ public java.util.List findBySegmentsEntryId( long segmentsEntryId); /** * Returns a range of all the segments entry roles where segmentsEntryId = ?. * *

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

* * @param segmentsEntryId the segments entry ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @return the range of matching segments entry roles */ public java.util.List findBySegmentsEntryId( long segmentsEntryId, int start, int end); /** * Returns an ordered range of all the segments entry roles where segmentsEntryId = ?. * *

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

* * @param segmentsEntryId the segments entry ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching segments entry roles */ public java.util.List findBySegmentsEntryId( long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the segments entry roles where segmentsEntryId = ?. * *

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

* * @param segmentsEntryId the segments entry ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching segments entry roles */ public java.util.List findBySegmentsEntryId( long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first segments entry role in the ordered set where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching segments entry role * @throws NoSuchEntryRoleException if a matching segments entry role could not be found */ public SegmentsEntryRole findBySegmentsEntryId_First( long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Returns the first segments entry role in the ordered set where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchBySegmentsEntryId_First( long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last segments entry role in the ordered set where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching segments entry role * @throws NoSuchEntryRoleException if a matching segments entry role could not be found */ public SegmentsEntryRole findBySegmentsEntryId_Last( long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Returns the last segments entry role in the ordered set where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchBySegmentsEntryId_Last( long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the segments entry roles before and after the current segments entry role in the ordered set where segmentsEntryId = ?. * * @param segmentsEntryRoleId the primary key of the current segments entry role * @param segmentsEntryId the segments entry ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next segments entry role * @throws NoSuchEntryRoleException if a segments entry role with the primary key could not be found */ public SegmentsEntryRole[] findBySegmentsEntryId_PrevAndNext( long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Removes all the segments entry roles where segmentsEntryId = ? from the database. * * @param segmentsEntryId the segments entry ID */ public void removeBySegmentsEntryId(long segmentsEntryId); /** * Returns the number of segments entry roles where segmentsEntryId = ?. * * @param segmentsEntryId the segments entry ID * @return the number of matching segments entry roles */ public int countBySegmentsEntryId(long segmentsEntryId); /** * Returns all the segments entry roles where roleId = ?. * * @param roleId the role ID * @return the matching segments entry roles */ public java.util.List findByRoleId(long roleId); /** * Returns a range of all the segments entry roles where roleId = ?. * *

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

* * @param roleId the role ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @return the range of matching segments entry roles */ public java.util.List findByRoleId( long roleId, int start, int end); /** * Returns an ordered range of all the segments entry roles where roleId = ?. * *

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

* * @param roleId the role ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of matching segments entry roles */ public java.util.List findByRoleId( long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the segments entry roles where roleId = ?. * *

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

* * @param roleId the role ID * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of matching segments entry roles */ public java.util.List findByRoleId( long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Returns the first segments entry role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching segments entry role * @throws NoSuchEntryRoleException if a matching segments entry role could not be found */ public SegmentsEntryRole findByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Returns the first segments entry role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the first matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchByRoleId_First( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the last segments entry role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching segments entry role * @throws NoSuchEntryRoleException if a matching segments entry role could not be found */ public SegmentsEntryRole findByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Returns the last segments entry role in the ordered set where roleId = ?. * * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the last matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchByRoleId_Last( long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns the segments entry roles before and after the current segments entry role in the ordered set where roleId = ?. * * @param segmentsEntryRoleId the primary key of the current segments entry role * @param roleId the role ID * @param orderByComparator the comparator to order the set by (optionally null) * @return the previous, current, and next segments entry role * @throws NoSuchEntryRoleException if a segments entry role with the primary key could not be found */ public SegmentsEntryRole[] findByRoleId_PrevAndNext( long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws NoSuchEntryRoleException; /** * Removes all the segments entry roles where roleId = ? from the database. * * @param roleId the role ID */ public void removeByRoleId(long roleId); /** * Returns the number of segments entry roles where roleId = ?. * * @param roleId the role ID * @return the number of matching segments entry roles */ public int countByRoleId(long roleId); /** * Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws a NoSuchEntryRoleException if it could not be found. * * @param segmentsEntryId the segments entry ID * @param roleId the role ID * @return the matching segments entry role * @throws NoSuchEntryRoleException if a matching segments entry role could not be found */ public SegmentsEntryRole findByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException; /** * Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns null if it could not be found. Uses the finder cache. * * @param segmentsEntryId the segments entry ID * @param roleId the role ID * @return the matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchByS_R(long segmentsEntryId, long roleId); /** * Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns null if it could not be found, optionally using the finder cache. * * @param segmentsEntryId the segments entry ID * @param roleId the role ID * @param useFinderCache whether to use the finder cache * @return the matching segments entry role, or null if a matching segments entry role could not be found */ public SegmentsEntryRole fetchByS_R( long segmentsEntryId, long roleId, boolean useFinderCache); /** * Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database. * * @param segmentsEntryId the segments entry ID * @param roleId the role ID * @return the segments entry role that was removed */ public SegmentsEntryRole removeByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException; /** * Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?. * * @param segmentsEntryId the segments entry ID * @param roleId the role ID * @return the number of matching segments entry roles */ public int countByS_R(long segmentsEntryId, long roleId); /** * Caches the segments entry role in the entity cache if it is enabled. * * @param segmentsEntryRole the segments entry role */ public void cacheResult(SegmentsEntryRole segmentsEntryRole); /** * Caches the segments entry roles in the entity cache if it is enabled. * * @param segmentsEntryRoles the segments entry roles */ public void cacheResult( java.util.List segmentsEntryRoles); /** * Creates a new segments entry role with the primary key. Does not add the segments entry role to the database. * * @param segmentsEntryRoleId the primary key for the new segments entry role * @return the new segments entry role */ public SegmentsEntryRole create(long segmentsEntryRoleId); /** * Removes the segments entry role with the primary key from the database. Also notifies the appropriate model listeners. * * @param segmentsEntryRoleId the primary key of the segments entry role * @return the segments entry role that was removed * @throws NoSuchEntryRoleException if a segments entry role with the primary key could not be found */ public SegmentsEntryRole remove(long segmentsEntryRoleId) throws NoSuchEntryRoleException; public SegmentsEntryRole updateImpl(SegmentsEntryRole segmentsEntryRole); /** * Returns the segments entry role with the primary key or throws a NoSuchEntryRoleException if it could not be found. * * @param segmentsEntryRoleId the primary key of the segments entry role * @return the segments entry role * @throws NoSuchEntryRoleException if a segments entry role with the primary key could not be found */ public SegmentsEntryRole findByPrimaryKey(long segmentsEntryRoleId) throws NoSuchEntryRoleException; /** * Returns the segments entry role with the primary key or returns null if it could not be found. * * @param segmentsEntryRoleId the primary key of the segments entry role * @return the segments entry role, or null if a segments entry role with the primary key could not be found */ public SegmentsEntryRole fetchByPrimaryKey(long segmentsEntryRoleId); /** * Returns all the segments entry roles. * * @return the segments entry roles */ public java.util.List findAll(); /** * Returns a range of all the segments entry roles. * *

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

* * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @return the range of segments entry roles */ public java.util.List findAll(int start, int end); /** * Returns an ordered range of all the segments entry roles. * *

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

* * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @return the ordered range of segments entry roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator); /** * Returns an ordered range of all the segments entry roles. * *

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

* * @param start the lower bound of the range of segments entry roles * @param end the upper bound of the range of segments entry roles (not inclusive) * @param orderByComparator the comparator to order the results by (optionally null) * @param useFinderCache whether to use the finder cache * @return the ordered range of segments entry roles */ public java.util.List findAll( int start, int end, com.liferay.portal.kernel.util.OrderByComparator orderByComparator, boolean useFinderCache); /** * Removes all the segments entry roles from the database. */ public void removeAll(); /** * Returns the number of segments entry roles. * * @return the number of segments entry roles */ public int countAll(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy