Class SegmentsEntryRoleUtil

java.lang.Object
com.liferay.segments.service.persistence.SegmentsEntryRoleUtil

public class SegmentsEntryRoleUtil extends Object
The persistence utility for the segments entry role service. This utility wraps com.liferay.segments.service.persistence.impl.SegmentsEntryRolePersistenceImpl 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

See Also:
Generated:
  • Constructor Details

    • SegmentsEntryRoleUtil

      public SegmentsEntryRoleUtil()
  • Method Details

    • clearCache

      public static void clearCache()
      See Also:
      • BasePersistence.clearCache()
    • clearCache

      public static void clearCache(SegmentsEntryRole segmentsEntryRole)
      See Also:
      • BasePersistence.clearCache(com.liferay.portal.kernel.model.BaseModel)
    • countWithDynamicQuery

      public static long countWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.countWithDynamicQuery(DynamicQuery)
    • fetchByPrimaryKeys

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

      public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery)
    • findWithDynamicQuery

      public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int)
    • findWithDynamicQuery

      public static List<SegmentsEntryRole> findWithDynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRole> orderByComparator)
      See Also:
      • BasePersistence.findWithDynamicQuery(DynamicQuery, int, int, OrderByComparator)
    • update

      public static SegmentsEntryRole update(SegmentsEntryRole segmentsEntryRole)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel)
    • update

      public static SegmentsEntryRole update(SegmentsEntryRole segmentsEntryRole, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findBySegmentsEntryId

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchEntryRoleException
    • fetchBySegmentsEntryId_First

      public static 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

      public static 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
      NoSuchEntryRoleException
    • fetchBySegmentsEntryId_Last

      public static 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

      public static 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
      NoSuchEntryRoleException
    • removeBySegmentsEntryId

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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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

      public static 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
      NoSuchEntryRoleException
    • fetchByRoleId_First

      public static 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

      public static 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
      NoSuchEntryRoleException
    • fetchByRoleId_Last

      public static 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

      public static 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
      NoSuchEntryRoleException
    • removeByRoleId

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

      public static 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

      public static 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
      NoSuchEntryRoleException
    • fetchByS_R

      public static 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

      public static 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

      public static 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

      public static 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

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

      public static 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

      public static 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

      public static 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
      NoSuchEntryRoleException
    • updateImpl

      public static SegmentsEntryRole updateImpl(SegmentsEntryRole segmentsEntryRole)
    • findByPrimaryKey

      public static 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
      NoSuchEntryRoleException
    • fetchByPrimaryKey

      public static 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

      public static List<SegmentsEntryRole> findAll()
      Returns all the segments entry roles.
      Returns:
      the segments entry roles
    • findAll

      public static 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

      public static 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

      public static 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

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

      public static int countAll()
      Returns the number of segments entry roles.
      Returns:
      the number of segments entry roles
    • getPersistence

      public static SegmentsEntryRolePersistence getPersistence()
    • setPersistence

      public static void setPersistence(SegmentsEntryRolePersistence persistence)