Interface SegmentsEntryRolePersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<SegmentsEntryRole>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SegmentsEntryRole>

@ProviderType public interface SegmentsEntryRolePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<SegmentsEntryRole>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<SegmentsEntryRole>
The persistence interface for the segments entry role service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(SegmentsEntryRole segmentsEntryRole)
    Caches the segments entry role in the entity cache if it is enabled.
    void
    cacheResult(List<SegmentsEntryRole> segmentsEntryRoles)
    Caches the segments entry roles in the entity cache if it is enabled.
    int
    Returns the number of segments entry roles.
    int
    countByRoleId(long roleId)
    Returns the number of segments entry roles where roleId = ?.
    int
    countByS_R(long segmentsEntryId, long roleId)
    Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?.
    int
    countBySegmentsEntryId(long segmentsEntryId)
    Returns the number of segments entry roles where segmentsEntryId = ?.
    create(long segmentsEntryRoleId)
    Creates a new segments entry role with the primary key.
    fetchByPrimaryKey(long segmentsEntryRoleId)
    Returns the segments entry role with the primary key or returns null if it could not be found.
    fetchByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the first segments entry role in the ordered set where roleId = ?.
    fetchByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the last segments entry role in the ordered set where roleId = ?.
    fetchByS_R(long segmentsEntryId, long roleId)
    Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns null if it could not be found.
    fetchByS_R(long segmentsEntryId, long roleId, boolean useFinderCache)
    Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns null if it could not be found, optionally using the finder cache.
    fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the first segments entry role in the ordered set where segmentsEntryId = ?.
    fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the last segments entry role in the ordered set where segmentsEntryId = ?.
    Returns all the segments entry roles.
    findAll(int start, int end)
    Returns a range of all the segments entry roles.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns an ordered range of all the segments entry roles.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the segments entry roles.
    findByPrimaryKey(long segmentsEntryRoleId)
    Returns the segments entry role with the primary key or throws a NoSuchEntryRoleException if it could not be found.
    findByRoleId(long roleId)
    Returns all the segments entry roles where roleId = ?.
    findByRoleId(long roleId, int start, int end)
    Returns a range of all the segments entry roles where roleId = ?.
    findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns an ordered range of all the segments entry roles where roleId = ?.
    findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the segments entry roles where roleId = ?.
    findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the first segments entry role in the ordered set where roleId = ?.
    findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the last segments entry role in the ordered set where roleId = ?.
    findByRoleId_PrevAndNext(long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the segments entry roles before and after the current segments entry role in the ordered set where roleId = ?.
    findByS_R(long segmentsEntryId, long roleId)
    Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws a NoSuchEntryRoleException if it could not be found.
    findBySegmentsEntryId(long segmentsEntryId)
    Returns all the segments entry roles where segmentsEntryId = ?.
    findBySegmentsEntryId(long segmentsEntryId, int start, int end)
    Returns a range of all the segments entry roles where segmentsEntryId = ?.
    findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.
    findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the segments entry roles where segmentsEntryId = ?.
    findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the first segments entry role in the ordered set where segmentsEntryId = ?.
    findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the last segments entry role in the ordered set where segmentsEntryId = ?.
    findBySegmentsEntryId_PrevAndNext(long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
    Returns the segments entry roles before and after the current segments entry role in the ordered set where segmentsEntryId = ?.
    remove(long segmentsEntryRoleId)
    Removes the segments entry role with the primary key from the database.
    void
    Removes all the segments entry roles from the database.
    void
    removeByRoleId(long roleId)
    Removes all the segments entry roles where roleId = ? from the database.
    removeByS_R(long segmentsEntryId, long roleId)
    Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database.
    void
    removeBySegmentsEntryId(long segmentsEntryId)
    Removes all the segments entry roles where segmentsEntryId = ? from the database.
    updateImpl(SegmentsEntryRole segmentsEntryRole)
     

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.BasePersistence

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update

    Methods inherited from interface com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence

    getCTColumnNames, getMappingTableNames, getTableColumnsMap, getTableName, getUniqueIndexColumnNames
  • Method Details

    • findBySegmentsEntryId

      List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId)
      Returns all the segments entry roles where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      Returns:
      the matching segments entry roles
    • findBySegmentsEntryId

      List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end)
      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.

      Parameters:
      segmentsEntryId - the segments entry ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      Returns:
      the range of matching segments entry roles
    • findBySegmentsEntryId

      List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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.

      Parameters:
      segmentsEntryId - the segments entry ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching segments entry roles
    • findBySegmentsEntryId

      List<SegmentsEntryRole> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      segmentsEntryId - the segments entry ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (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 segments entry roles
    • findBySegmentsEntryId_First

      SegmentsEntryRole findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the first segments entry role in the ordered set where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry role
      Throws:
      NoSuchEntryRoleException - if a matching segments entry role could not be found
    • fetchBySegmentsEntryId_First

      SegmentsEntryRole fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
      Returns the first segments entry role in the ordered set where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry role, or null if a matching segments entry role could not be found
    • findBySegmentsEntryId_Last

      SegmentsEntryRole findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the last segments entry role in the ordered set where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry role
      Throws:
      NoSuchEntryRoleException - if a matching segments entry role could not be found
    • fetchBySegmentsEntryId_Last

      SegmentsEntryRole fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
      Returns the last segments entry role in the ordered set where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry role, or null if a matching segments entry role could not be found
    • findBySegmentsEntryId_PrevAndNext

      SegmentsEntryRole[] findBySegmentsEntryId_PrevAndNext(long segmentsEntryRoleId, long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the segments entry roles before and after the current segments entry role in the ordered set where segmentsEntryId = ?.
      Parameters:
      segmentsEntryRoleId - the primary key of the current segments entry role
      segmentsEntryId - the segments entry ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next segments entry role
      Throws:
      NoSuchEntryRoleException - if a segments entry role with the primary key could not be found
    • removeBySegmentsEntryId

      void removeBySegmentsEntryId(long segmentsEntryId)
      Removes all the segments entry roles where segmentsEntryId = ? from the database.
      Parameters:
      segmentsEntryId - the segments entry ID
    • countBySegmentsEntryId

      int countBySegmentsEntryId(long segmentsEntryId)
      Returns the number of segments entry roles where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      Returns:
      the number of matching segments entry roles
    • findByRoleId

      List<SegmentsEntryRole> findByRoleId(long roleId)
      Returns all the segments entry roles where roleId = ?.
      Parameters:
      roleId - the role ID
      Returns:
      the matching segments entry roles
    • findByRoleId

      List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end)
      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.

      Parameters:
      roleId - the role ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      Returns:
      the range of matching segments entry roles
    • findByRoleId

      List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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.

      Parameters:
      roleId - the role ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching segments entry roles
    • findByRoleId

      List<SegmentsEntryRole> findByRoleId(long roleId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      roleId - the role ID
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (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 segments entry roles
    • findByRoleId_First

      SegmentsEntryRole findByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the first segments entry role in the ordered set where roleId = ?.
      Parameters:
      roleId - the role ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry role
      Throws:
      NoSuchEntryRoleException - if a matching segments entry role could not be found
    • fetchByRoleId_First

      SegmentsEntryRole fetchByRoleId_First(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
      Returns the first segments entry role in the ordered set where roleId = ?.
      Parameters:
      roleId - the role ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry role, or null if a matching segments entry role could not be found
    • findByRoleId_Last

      SegmentsEntryRole findByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the last segments entry role in the ordered set where roleId = ?.
      Parameters:
      roleId - the role ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry role
      Throws:
      NoSuchEntryRoleException - if a matching segments entry role could not be found
    • fetchByRoleId_Last

      SegmentsEntryRole fetchByRoleId_Last(long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
      Returns the last segments entry role in the ordered set where roleId = ?.
      Parameters:
      roleId - the role ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry role, or null if a matching segments entry role could not be found
    • findByRoleId_PrevAndNext

      SegmentsEntryRole[] findByRoleId_PrevAndNext(long segmentsEntryRoleId, long roleId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator) throws NoSuchEntryRoleException
      Returns the segments entry roles before and after the current segments entry role in the ordered set where roleId = ?.
      Parameters:
      segmentsEntryRoleId - the primary key of the current segments entry role
      roleId - the role ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next segments entry role
      Throws:
      NoSuchEntryRoleException - if a segments entry role with the primary key could not be found
    • removeByRoleId

      void removeByRoleId(long roleId)
      Removes all the segments entry roles where roleId = ? from the database.
      Parameters:
      roleId - the role ID
    • countByRoleId

      int countByRoleId(long roleId)
      Returns the number of segments entry roles where roleId = ?.
      Parameters:
      roleId - the role ID
      Returns:
      the number of matching segments entry roles
    • findByS_R

      SegmentsEntryRole findByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException
      Returns the segments entry role where segmentsEntryId = ? and roleId = ? or throws a NoSuchEntryRoleException if it could not be found.
      Parameters:
      segmentsEntryId - the segments entry ID
      roleId - the role ID
      Returns:
      the matching segments entry role
      Throws:
      NoSuchEntryRoleException - if a matching segments entry role could not be found
    • fetchByS_R

      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. Uses the finder cache.
      Parameters:
      segmentsEntryId - the segments entry ID
      roleId - the role ID
      Returns:
      the matching segments entry role, or null if a matching segments entry role could not be found
    • fetchByS_R

      SegmentsEntryRole fetchByS_R(long segmentsEntryId, long roleId, boolean useFinderCache)
      Returns the segments entry role where segmentsEntryId = ? and roleId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      segmentsEntryId - the segments entry ID
      roleId - the role ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching segments entry role, or null if a matching segments entry role could not be found
    • removeByS_R

      SegmentsEntryRole removeByS_R(long segmentsEntryId, long roleId) throws NoSuchEntryRoleException
      Removes the segments entry role where segmentsEntryId = ? and roleId = ? from the database.
      Parameters:
      segmentsEntryId - the segments entry ID
      roleId - the role ID
      Returns:
      the segments entry role that was removed
      Throws:
      NoSuchEntryRoleException
    • countByS_R

      int countByS_R(long segmentsEntryId, long roleId)
      Returns the number of segments entry roles where segmentsEntryId = ? and roleId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      roleId - the role ID
      Returns:
      the number of matching segments entry roles
    • cacheResult

      void cacheResult(SegmentsEntryRole segmentsEntryRole)
      Caches the segments entry role in the entity cache if it is enabled.
      Parameters:
      segmentsEntryRole - the segments entry role
    • cacheResult

      void cacheResult(List<SegmentsEntryRole> segmentsEntryRoles)
      Caches the segments entry roles in the entity cache if it is enabled.
      Parameters:
      segmentsEntryRoles - the segments entry roles
    • create

      SegmentsEntryRole create(long segmentsEntryRoleId)
      Creates a new segments entry role with the primary key. Does not add the segments entry role to the database.
      Parameters:
      segmentsEntryRoleId - the primary key for the new segments entry role
      Returns:
      the new segments entry role
    • remove

      SegmentsEntryRole remove(long segmentsEntryRoleId) throws NoSuchEntryRoleException
      Removes the segments entry role with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      segmentsEntryRoleId - the primary key of the segments entry role
      Returns:
      the segments entry role that was removed
      Throws:
      NoSuchEntryRoleException - if a segments entry role with the primary key could not be found
    • updateImpl

      SegmentsEntryRole updateImpl(SegmentsEntryRole segmentsEntryRole)
    • findByPrimaryKey

      SegmentsEntryRole findByPrimaryKey(long segmentsEntryRoleId) throws NoSuchEntryRoleException
      Returns the segments entry role with the primary key or throws a NoSuchEntryRoleException if it could not be found.
      Parameters:
      segmentsEntryRoleId - the primary key of the segments entry role
      Returns:
      the segments entry role
      Throws:
      NoSuchEntryRoleException - if a segments entry role with the primary key could not be found
    • fetchByPrimaryKey

      SegmentsEntryRole fetchByPrimaryKey(long segmentsEntryRoleId)
      Returns the segments entry role with the primary key or returns null if it could not be found.
      Parameters:
      segmentsEntryRoleId - the primary key of the segments entry role
      Returns:
      the segments entry role, or null if a segments entry role with the primary key could not be found
    • findAll

      Returns all the segments entry roles.
      Returns:
      the segments entry roles
    • findAll

      List<SegmentsEntryRole> findAll(int start, int end)
      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.

      Parameters:
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      Returns:
      the range of segments entry roles
    • findAll

      List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> 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.

      Parameters:
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of segments entry roles
    • findAll

      List<SegmentsEntryRole> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator, boolean useFinderCache)
      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.

      Parameters:
      start - the lower bound of the range of segments entry roles
      end - the upper bound of the range of segments entry roles (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      useFinderCache - whether to use the finder cache
      Returns:
      the ordered range of segments entry roles
    • removeAll

      void removeAll()
      Removes all the segments entry roles from the database.
    • countAll

      int countAll()
      Returns the number of segments entry roles.
      Returns:
      the number of segments entry roles