Class SegmentsExperimentRelUtil

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

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

    • SegmentsExperimentRelUtil

      public SegmentsExperimentRelUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static SegmentsExperimentRel update(SegmentsExperimentRel segmentsExperimentRel, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findBySegmentsExperimentId

      public static List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId)
      Returns all the segments experiment rels where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      Returns:
      the matching segments experiment rels
    • findBySegmentsExperimentId

      public static List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, int start, int end)
      Returns a range of all the segments experiment rels where segmentsExperimentId = ?.

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

      Parameters:
      segmentsExperimentId - the segments experiment ID
      start - the lower bound of the range of segments experiment rels
      end - the upper bound of the range of segments experiment rels (not inclusive)
      Returns:
      the range of matching segments experiment rels
    • findBySegmentsExperimentId

      public static List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.

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

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

      public static List<SegmentsExperimentRel> findBySegmentsExperimentId(long segmentsExperimentId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments experiment rels where segmentsExperimentId = ?.

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

      Parameters:
      segmentsExperimentId - the segments experiment ID
      start - the lower bound of the range of segments experiment rels
      end - the upper bound of the range of segments experiment 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 experiment rels
    • findBySegmentsExperimentId_First

      public static SegmentsExperimentRel findBySegmentsExperimentId_First(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
      Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a matching segments experiment rel could not be found
      NoSuchExperimentRelException
    • fetchBySegmentsExperimentId_First

      public static SegmentsExperimentRel fetchBySegmentsExperimentId_First(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns the first segments experiment rel in the ordered set where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • findBySegmentsExperimentId_Last

      public static SegmentsExperimentRel findBySegmentsExperimentId_Last(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
      Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a matching segments experiment rel could not be found
      NoSuchExperimentRelException
    • fetchBySegmentsExperimentId_Last

      public static SegmentsExperimentRel fetchBySegmentsExperimentId_Last(long segmentsExperimentId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns the last segments experiment rel in the ordered set where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • findBySegmentsExperimentId_PrevAndNext

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

      public static void removeBySegmentsExperimentId(long segmentsExperimentId)
      Removes all the segments experiment rels where segmentsExperimentId = ? from the database.
      Parameters:
      segmentsExperimentId - the segments experiment ID
    • countBySegmentsExperimentId

      public static int countBySegmentsExperimentId(long segmentsExperimentId)
      Returns the number of segments experiment rels where segmentsExperimentId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      Returns:
      the number of matching segments experiment rels
    • findBySegmentsExperienceId

      public static List<SegmentsExperimentRel> findBySegmentsExperienceId(long segmentsExperienceId)
      Returns all the segments experiment rels where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      Returns:
      the matching segments experiment rels
    • findBySegmentsExperienceId

      public static List<SegmentsExperimentRel> findBySegmentsExperienceId(long segmentsExperienceId, int start, int end)
      Returns a range of all the segments experiment rels where segmentsExperienceId = ?.

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

      Parameters:
      segmentsExperienceId - the segments experience ID
      start - the lower bound of the range of segments experiment rels
      end - the upper bound of the range of segments experiment rels (not inclusive)
      Returns:
      the range of matching segments experiment rels
    • findBySegmentsExperienceId

      public static List<SegmentsExperimentRel> findBySegmentsExperienceId(long segmentsExperienceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns an ordered range of all the segments experiment rels where segmentsExperienceId = ?.

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

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

      public static List<SegmentsExperimentRel> findBySegmentsExperienceId(long segmentsExperienceId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments experiment rels where segmentsExperienceId = ?.

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

      Parameters:
      segmentsExperienceId - the segments experience ID
      start - the lower bound of the range of segments experiment rels
      end - the upper bound of the range of segments experiment 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 experiment rels
    • findBySegmentsExperienceId_First

      public static SegmentsExperimentRel findBySegmentsExperienceId_First(long segmentsExperienceId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
      Returns the first segments experiment rel in the ordered set where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a matching segments experiment rel could not be found
      NoSuchExperimentRelException
    • fetchBySegmentsExperienceId_First

      public static SegmentsExperimentRel fetchBySegmentsExperienceId_First(long segmentsExperienceId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns the first segments experiment rel in the ordered set where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • findBySegmentsExperienceId_Last

      public static SegmentsExperimentRel findBySegmentsExperienceId_Last(long segmentsExperienceId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
      Returns the last segments experiment rel in the ordered set where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a matching segments experiment rel could not be found
      NoSuchExperimentRelException
    • fetchBySegmentsExperienceId_Last

      public static SegmentsExperimentRel fetchBySegmentsExperienceId_Last(long segmentsExperienceId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns the last segments experiment rel in the ordered set where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • findBySegmentsExperienceId_PrevAndNext

      public static SegmentsExperimentRel[] findBySegmentsExperienceId_PrevAndNext(long segmentsExperimentRelId, long segmentsExperienceId, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator) throws NoSuchExperimentRelException
      Returns the segments experiment rels before and after the current segments experiment rel in the ordered set where segmentsExperienceId = ?.
      Parameters:
      segmentsExperimentRelId - the primary key of the current segments experiment rel
      segmentsExperienceId - the segments experience ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a segments experiment rel with the primary key could not be found
      NoSuchExperimentRelException
    • removeBySegmentsExperienceId

      public static void removeBySegmentsExperienceId(long segmentsExperienceId)
      Removes all the segments experiment rels where segmentsExperienceId = ? from the database.
      Parameters:
      segmentsExperienceId - the segments experience ID
    • countBySegmentsExperienceId

      public static int countBySegmentsExperienceId(long segmentsExperienceId)
      Returns the number of segments experiment rels where segmentsExperienceId = ?.
      Parameters:
      segmentsExperienceId - the segments experience ID
      Returns:
      the number of matching segments experiment rels
    • findByS_S

      public static SegmentsExperimentRel findByS_S(long segmentsExperimentId, long segmentsExperienceId) throws NoSuchExperimentRelException
      Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or throws a NoSuchExperimentRelException if it could not be found.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      segmentsExperienceId - the segments experience ID
      Returns:
      the matching segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a matching segments experiment rel could not be found
      NoSuchExperimentRelException
    • fetchByS_S

      public static SegmentsExperimentRel fetchByS_S(long segmentsExperimentId, long segmentsExperienceId)
      Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns null if it could not be found. Uses the finder cache.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      segmentsExperienceId - the segments experience ID
      Returns:
      the matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • fetchByS_S

      public static SegmentsExperimentRel fetchByS_S(long segmentsExperimentId, long segmentsExperienceId, boolean useFinderCache)
      Returns the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? or returns null if it could not be found, optionally using the finder cache.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      segmentsExperienceId - the segments experience ID
      useFinderCache - whether to use the finder cache
      Returns:
      the matching segments experiment rel, or null if a matching segments experiment rel could not be found
    • removeByS_S

      public static SegmentsExperimentRel removeByS_S(long segmentsExperimentId, long segmentsExperienceId) throws NoSuchExperimentRelException
      Removes the segments experiment rel where segmentsExperimentId = ? and segmentsExperienceId = ? from the database.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      segmentsExperienceId - the segments experience ID
      Returns:
      the segments experiment rel that was removed
      Throws:
      NoSuchExperimentRelException
    • countByS_S

      public static int countByS_S(long segmentsExperimentId, long segmentsExperienceId)
      Returns the number of segments experiment rels where segmentsExperimentId = ? and segmentsExperienceId = ?.
      Parameters:
      segmentsExperimentId - the segments experiment ID
      segmentsExperienceId - the segments experience ID
      Returns:
      the number of matching segments experiment rels
    • cacheResult

      public static void cacheResult(SegmentsExperimentRel segmentsExperimentRel)
      Caches the segments experiment rel in the entity cache if it is enabled.
      Parameters:
      segmentsExperimentRel - the segments experiment rel
    • cacheResult

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

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

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

      public static SegmentsExperimentRel updateImpl(SegmentsExperimentRel segmentsExperimentRel)
    • findByPrimaryKey

      public static SegmentsExperimentRel findByPrimaryKey(long segmentsExperimentRelId) throws NoSuchExperimentRelException
      Returns the segments experiment rel with the primary key or throws a NoSuchExperimentRelException if it could not be found.
      Parameters:
      segmentsExperimentRelId - the primary key of the segments experiment rel
      Returns:
      the segments experiment rel
      Throws:
      NoSuchExperimentRelException - if a segments experiment rel with the primary key could not be found
      NoSuchExperimentRelException
    • fetchByPrimaryKey

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

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

      public static List<SegmentsExperimentRel> findAll(int start, int end)
      Returns a range of all the segments experiment 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 SegmentsExperimentRelModelImpl.

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

      public static List<SegmentsExperimentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator)
      Returns an ordered range of all the segments experiment 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 SegmentsExperimentRelModelImpl.

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

      public static List<SegmentsExperimentRel> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<SegmentsExperimentRel> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the segments experiment 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 SegmentsExperimentRelModelImpl.

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

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

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

      public static SegmentsExperimentRelPersistence getPersistence()
    • setPersistence

      public static void setPersistence(SegmentsExperimentRelPersistence persistence)