Class SegmentsEntryRelUtil

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

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

    • SegmentsEntryRelUtil

      public SegmentsEntryRelUtil()
  • Method Details

    • clearCache

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

      public static void clearCache(SegmentsEntryRel segmentsEntryRel)
      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,SegmentsEntryRel> fetchByPrimaryKeys(Set<Serializable> primaryKeys)
      See Also:
      • BasePersistence.fetchByPrimaryKeys(Set)
    • findWithDynamicQuery

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

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

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

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

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

      public static List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId)
      Returns all the segments entry rels where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      Returns:
      the matching segments entry rels
    • findBySegmentsEntryId

      public static List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end)
      Returns a range of all the segments entry rels 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 SegmentsEntryRelModelImpl.

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

      public static List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns an ordered range of all the segments entry rels 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 SegmentsEntryRelModelImpl.

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

      public static List<SegmentsEntryRel> findBySegmentsEntryId(long segmentsEntryId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments entry rels 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 SegmentsEntryRelModelImpl.

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

      public static SegmentsEntryRel findBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the first segments entry rel 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 rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchBySegmentsEntryId_First

      public static SegmentsEntryRel fetchBySegmentsEntryId_First(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the first segments entry rel 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 rel, or null if a matching segments entry rel could not be found
    • findBySegmentsEntryId_Last

      public static SegmentsEntryRel findBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the last segments entry rel 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 rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchBySegmentsEntryId_Last

      public static SegmentsEntryRel fetchBySegmentsEntryId_Last(long segmentsEntryId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the last segments entry rel 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 rel, or null if a matching segments entry rel could not be found
    • findBySegmentsEntryId_PrevAndNext

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

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

      public static int countBySegmentsEntryId(long segmentsEntryId)
      Returns the number of segments entry rels where segmentsEntryId = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      Returns:
      the number of matching segments entry rels
    • findByCN_CPK

      public static List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK)
      Returns all the segments entry rels where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching segments entry rels
    • findByCN_CPK

      public static List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, int start, int end)
      Returns a range of all the segments entry rels where classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (not inclusive)
      Returns:
      the range of matching segments entry rels
    • findByCN_CPK

      public static List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns an ordered range of all the segments entry rels where classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching segments entry rels
    • findByCN_CPK

      public static List<SegmentsEntryRel> findByCN_CPK(long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments entry rels where classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (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 rels
    • findByCN_CPK_First

      public static SegmentsEntryRel findByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchByCN_CPK_First

      public static SegmentsEntryRel fetchByCN_CPK_First(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the first segments entry rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry rel, or null if a matching segments entry rel could not be found
    • findByCN_CPK_Last

      public static SegmentsEntryRel findByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchByCN_CPK_Last

      public static SegmentsEntryRel fetchByCN_CPK_Last(long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the last segments entry rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry rel, or null if a matching segments entry rel could not be found
    • findByCN_CPK_PrevAndNext

      public static SegmentsEntryRel[] findByCN_CPK_PrevAndNext(long segmentsEntryRelId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the segments entry rels before and after the current segments entry rel in the ordered set where classNameId = ? and classPK = ?.
      Parameters:
      segmentsEntryRelId - the primary key of the current segments entry rel
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next segments entry rel
      Throws:
      NoSuchEntryRelException - if a segments entry rel with the primary key could not be found
      NoSuchEntryRelException
    • removeByCN_CPK

      public static void removeByCN_CPK(long classNameId, long classPK)
      Removes all the segments entry rels where classNameId = ? and classPK = ? from the database.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
    • countByCN_CPK

      public static int countByCN_CPK(long classNameId, long classPK)
      Returns the number of segments entry rels where classNameId = ? and classPK = ?.
      Parameters:
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching segments entry rels
    • findByG_CN_CPK

      public static List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK)
      Returns all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching segments entry rels
    • findByG_CN_CPK

      public static List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, int start, int end)
      Returns a range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (not inclusive)
      Returns:
      the range of matching segments entry rels
    • findByG_CN_CPK

      public static List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns an ordered range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching segments entry rels
    • findByG_CN_CPK

      public static List<SegmentsEntryRel> findByG_CN_CPK(long groupId, long classNameId, long classPK, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments entry rels where groupId = ? and classNameId = ? and classPK = ?.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (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 rels
    • findByG_CN_CPK_First

      public static SegmentsEntryRel findByG_CN_CPK_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchByG_CN_CPK_First

      public static SegmentsEntryRel fetchByG_CN_CPK_First(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the first segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments entry rel, or null if a matching segments entry rel could not be found
    • findByG_CN_CPK_Last

      public static SegmentsEntryRel findByG_CN_CPK_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchByG_CN_CPK_Last

      public static SegmentsEntryRel fetchByG_CN_CPK_Last(long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns the last segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments entry rel, or null if a matching segments entry rel could not be found
    • findByG_CN_CPK_PrevAndNext

      public static SegmentsEntryRel[] findByG_CN_CPK_PrevAndNext(long segmentsEntryRelId, long groupId, long classNameId, long classPK, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator) throws NoSuchEntryRelException
      Returns the segments entry rels before and after the current segments entry rel in the ordered set where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      segmentsEntryRelId - the primary key of the current segments entry rel
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next segments entry rel
      Throws:
      NoSuchEntryRelException - if a segments entry rel with the primary key could not be found
      NoSuchEntryRelException
    • removeByG_CN_CPK

      public static void removeByG_CN_CPK(long groupId, long classNameId, long classPK)
      Removes all the segments entry rels where groupId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
    • countByG_CN_CPK

      public static int countByG_CN_CPK(long groupId, long classNameId, long classPK)
      Returns the number of segments entry rels where groupId = ? and classNameId = ? and classPK = ?.
      Parameters:
      groupId - the group ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching segments entry rels
    • findByS_CN_CPK

      public static SegmentsEntryRel findByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException
      Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or throws a NoSuchEntryRelException if it could not be found.
      Parameters:
      segmentsEntryId - the segments entry ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching segments entry rel
      Throws:
      NoSuchEntryRelException - if a matching segments entry rel could not be found
      NoSuchEntryRelException
    • fetchByS_CN_CPK

      public static SegmentsEntryRel fetchByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK)
      Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      segmentsEntryId - the segments entry ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the matching segments entry rel, or null if a matching segments entry rel could not be found
    • fetchByS_CN_CPK

      public static SegmentsEntryRel fetchByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK, boolean useFinderCache)
      Returns the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      segmentsEntryId - the segments entry ID
      classNameId - the class name ID
      classPK - the class pk
      useFinderCache - whether to use the finder cache
      Returns:
      the matching segments entry rel, or null if a matching segments entry rel could not be found
    • removeByS_CN_CPK

      public static SegmentsEntryRel removeByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK) throws NoSuchEntryRelException
      Removes the segments entry rel where segmentsEntryId = ? and classNameId = ? and classPK = ? from the database.
      Parameters:
      segmentsEntryId - the segments entry ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the segments entry rel that was removed
      Throws:
      NoSuchEntryRelException
    • countByS_CN_CPK

      public static int countByS_CN_CPK(long segmentsEntryId, long classNameId, long classPK)
      Returns the number of segments entry rels where segmentsEntryId = ? and classNameId = ? and classPK = ?.
      Parameters:
      segmentsEntryId - the segments entry ID
      classNameId - the class name ID
      classPK - the class pk
      Returns:
      the number of matching segments entry rels
    • cacheResult

      public static void cacheResult(SegmentsEntryRel segmentsEntryRel)
      Caches the segments entry rel in the entity cache if it is enabled.
      Parameters:
      segmentsEntryRel - the segments entry rel
    • cacheResult

      public static void cacheResult(List<SegmentsEntryRel> segmentsEntryRels)
      Caches the segments entry rels in the entity cache if it is enabled.
      Parameters:
      segmentsEntryRels - the segments entry rels
    • create

      public static SegmentsEntryRel create(long segmentsEntryRelId)
      Creates a new segments entry rel with the primary key. Does not add the segments entry rel to the database.
      Parameters:
      segmentsEntryRelId - the primary key for the new segments entry rel
      Returns:
      the new segments entry rel
    • remove

      public static SegmentsEntryRel remove(long segmentsEntryRelId) throws NoSuchEntryRelException
      Removes the segments entry rel with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      segmentsEntryRelId - the primary key of the segments entry rel
      Returns:
      the segments entry rel that was removed
      Throws:
      NoSuchEntryRelException - if a segments entry rel with the primary key could not be found
      NoSuchEntryRelException
    • updateImpl

      public static SegmentsEntryRel updateImpl(SegmentsEntryRel segmentsEntryRel)
    • findByPrimaryKey

      public static SegmentsEntryRel findByPrimaryKey(long segmentsEntryRelId) throws NoSuchEntryRelException
      Returns the segments entry rel with the primary key or throws a NoSuchEntryRelException if it could not be found.
      Parameters:
      segmentsEntryRelId - the primary key of the segments entry rel
      Returns:
      the segments entry rel
      Throws:
      NoSuchEntryRelException - if a segments entry rel with the primary key could not be found
      NoSuchEntryRelException
    • fetchByPrimaryKey

      public static SegmentsEntryRel fetchByPrimaryKey(long segmentsEntryRelId)
      Returns the segments entry rel with the primary key or returns null if it could not be found.
      Parameters:
      segmentsEntryRelId - the primary key of the segments entry rel
      Returns:
      the segments entry rel, or null if a segments entry rel with the primary key could not be found
    • findAll

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

      public static List<SegmentsEntryRel> findAll(int start, int end)
      Returns a range of all the segments entry rels.

      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 SegmentsEntryRelModelImpl.

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

      public static List<SegmentsEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator)
      Returns an ordered range of all the segments entry rels.

      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 SegmentsEntryRelModelImpl.

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

      public static List<SegmentsEntryRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsEntryRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments entry rels.

      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 SegmentsEntryRelModelImpl.

      Parameters:
      start - the lower bound of the range of segments entry rels
      end - the upper bound of the range of segments entry rels (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 rels
    • removeAll

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

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

      public static SegmentsEntryRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SegmentsEntryRelPersistence persistence)