Class AnalyticsDeleteMessageUtil

java.lang.Object
com.liferay.analytics.message.storage.service.persistence.AnalyticsDeleteMessageUtil

public class AnalyticsDeleteMessageUtil extends Object
The persistence utility for the analytics delete message service. This utility wraps com.liferay.analytics.message.storage.service.persistence.impl.AnalyticsDeleteMessagePersistenceImpl 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

    • AnalyticsDeleteMessageUtil

      public AnalyticsDeleteMessageUtil()
  • Method Details

    • clearCache

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

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

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

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

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

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

      public static AnalyticsDeleteMessage update(AnalyticsDeleteMessage analyticsDeleteMessage, com.liferay.portal.kernel.service.ServiceContext serviceContext)
      See Also:
      • BasePersistence.update(com.liferay.portal.kernel.model.BaseModel, ServiceContext)
    • findByCompanyId

      public static List<AnalyticsDeleteMessage> findByCompanyId(long companyId)
      Returns all the analytics delete messages where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching analytics delete messages
    • findByCompanyId

      public static List<AnalyticsDeleteMessage> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the analytics delete messages where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (not inclusive)
      Returns:
      the range of matching analytics delete messages
    • findByCompanyId

      public static List<AnalyticsDeleteMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns an ordered range of all the analytics delete messages where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching analytics delete messages
    • findByCompanyId

      public static List<AnalyticsDeleteMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics delete messages where companyId = ?.

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

      Parameters:
      companyId - the company ID
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (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 analytics delete messages
    • findByCompanyId_First

      public static AnalyticsDeleteMessage findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the first analytics delete message in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a matching analytics delete message could not be found
      NoSuchDeleteMessageException
    • fetchByCompanyId_First

      public static AnalyticsDeleteMessage fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns the first analytics delete message in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics delete message, or null if a matching analytics delete message could not be found
    • findByCompanyId_Last

      public static AnalyticsDeleteMessage findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the last analytics delete message in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a matching analytics delete message could not be found
      NoSuchDeleteMessageException
    • fetchByCompanyId_Last

      public static AnalyticsDeleteMessage fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns the last analytics delete message in the ordered set where companyId = ?.
      Parameters:
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics delete message, or null if a matching analytics delete message could not be found
    • findByCompanyId_PrevAndNext

      public static AnalyticsDeleteMessage[] findByCompanyId_PrevAndNext(long analyticsDeleteMessageId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the analytics delete messages before and after the current analytics delete message in the ordered set where companyId = ?.
      Parameters:
      analyticsDeleteMessageId - the primary key of the current analytics delete message
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a analytics delete message with the primary key could not be found
      NoSuchDeleteMessageException
    • removeByCompanyId

      public static void removeByCompanyId(long companyId)
      Removes all the analytics delete messages where companyId = ? from the database.
      Parameters:
      companyId - the company ID
    • countByCompanyId

      public static int countByCompanyId(long companyId)
      Returns the number of analytics delete messages where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching analytics delete messages
    • findByC_GtM

      public static List<AnalyticsDeleteMessage> findByC_GtM(long companyId, Date modifiedDate)
      Returns all the analytics delete messages where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      Returns:
      the matching analytics delete messages
    • findByC_GtM

      public static List<AnalyticsDeleteMessage> findByC_GtM(long companyId, Date modifiedDate, int start, int end)
      Returns a range of all the analytics delete messages where companyId = ? and modifiedDate > ?.

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

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (not inclusive)
      Returns:
      the range of matching analytics delete messages
    • findByC_GtM

      public static List<AnalyticsDeleteMessage> findByC_GtM(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns an ordered range of all the analytics delete messages where companyId = ? and modifiedDate > ?.

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

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (not inclusive)
      orderByComparator - the comparator to order the results by (optionally null)
      Returns:
      the ordered range of matching analytics delete messages
    • findByC_GtM

      public static List<AnalyticsDeleteMessage> findByC_GtM(long companyId, Date modifiedDate, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics delete messages where companyId = ? and modifiedDate > ?.

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

      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (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 analytics delete messages
    • findByC_GtM_First

      public static AnalyticsDeleteMessage findByC_GtM_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the first analytics delete message in the ordered set where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a matching analytics delete message could not be found
      NoSuchDeleteMessageException
    • fetchByC_GtM_First

      public static AnalyticsDeleteMessage fetchByC_GtM_First(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns the first analytics delete message in the ordered set where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the first matching analytics delete message, or null if a matching analytics delete message could not be found
    • findByC_GtM_Last

      public static AnalyticsDeleteMessage findByC_GtM_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the last analytics delete message in the ordered set where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a matching analytics delete message could not be found
      NoSuchDeleteMessageException
    • fetchByC_GtM_Last

      public static AnalyticsDeleteMessage fetchByC_GtM_Last(long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns the last analytics delete message in the ordered set where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the last matching analytics delete message, or null if a matching analytics delete message could not be found
    • findByC_GtM_PrevAndNext

      public static AnalyticsDeleteMessage[] findByC_GtM_PrevAndNext(long analyticsDeleteMessageId, long companyId, Date modifiedDate, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator) throws NoSuchDeleteMessageException
      Returns the analytics delete messages before and after the current analytics delete message in the ordered set where companyId = ? and modifiedDate > ?.
      Parameters:
      analyticsDeleteMessageId - the primary key of the current analytics delete message
      companyId - the company ID
      modifiedDate - the modified date
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a analytics delete message with the primary key could not be found
      NoSuchDeleteMessageException
    • removeByC_GtM

      public static void removeByC_GtM(long companyId, Date modifiedDate)
      Removes all the analytics delete messages where companyId = ? and modifiedDate > ? from the database.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
    • countByC_GtM

      public static int countByC_GtM(long companyId, Date modifiedDate)
      Returns the number of analytics delete messages where companyId = ? and modifiedDate > ?.
      Parameters:
      companyId - the company ID
      modifiedDate - the modified date
      Returns:
      the number of matching analytics delete messages
    • cacheResult

      public static void cacheResult(AnalyticsDeleteMessage analyticsDeleteMessage)
      Caches the analytics delete message in the entity cache if it is enabled.
      Parameters:
      analyticsDeleteMessage - the analytics delete message
    • cacheResult

      public static void cacheResult(List<AnalyticsDeleteMessage> analyticsDeleteMessages)
      Caches the analytics delete messages in the entity cache if it is enabled.
      Parameters:
      analyticsDeleteMessages - the analytics delete messages
    • create

      public static AnalyticsDeleteMessage create(long analyticsDeleteMessageId)
      Creates a new analytics delete message with the primary key. Does not add the analytics delete message to the database.
      Parameters:
      analyticsDeleteMessageId - the primary key for the new analytics delete message
      Returns:
      the new analytics delete message
    • remove

      public static AnalyticsDeleteMessage remove(long analyticsDeleteMessageId) throws NoSuchDeleteMessageException
      Removes the analytics delete message with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      analyticsDeleteMessageId - the primary key of the analytics delete message
      Returns:
      the analytics delete message that was removed
      Throws:
      NoSuchDeleteMessageException - if a analytics delete message with the primary key could not be found
      NoSuchDeleteMessageException
    • updateImpl

      public static AnalyticsDeleteMessage updateImpl(AnalyticsDeleteMessage analyticsDeleteMessage)
    • findByPrimaryKey

      public static AnalyticsDeleteMessage findByPrimaryKey(long analyticsDeleteMessageId) throws NoSuchDeleteMessageException
      Returns the analytics delete message with the primary key or throws a NoSuchDeleteMessageException if it could not be found.
      Parameters:
      analyticsDeleteMessageId - the primary key of the analytics delete message
      Returns:
      the analytics delete message
      Throws:
      NoSuchDeleteMessageException - if a analytics delete message with the primary key could not be found
      NoSuchDeleteMessageException
    • fetchByPrimaryKey

      public static AnalyticsDeleteMessage fetchByPrimaryKey(long analyticsDeleteMessageId)
      Returns the analytics delete message with the primary key or returns null if it could not be found.
      Parameters:
      analyticsDeleteMessageId - the primary key of the analytics delete message
      Returns:
      the analytics delete message, or null if a analytics delete message with the primary key could not be found
    • findAll

      public static List<AnalyticsDeleteMessage> findAll()
      Returns all the analytics delete messages.
      Returns:
      the analytics delete messages
    • findAll

      public static List<AnalyticsDeleteMessage> findAll(int start, int end)
      Returns a range of all the analytics delete messages.

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

      Parameters:
      start - the lower bound of the range of analytics delete messages
      end - the upper bound of the range of analytics delete messages (not inclusive)
      Returns:
      the range of analytics delete messages
    • findAll

      public static List<AnalyticsDeleteMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator)
      Returns an ordered range of all the analytics delete messages.

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

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

      public static List<AnalyticsDeleteMessage> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsDeleteMessage> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics delete messages.

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

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

      public static void removeAll()
      Removes all the analytics delete messages from the database.
    • countAll

      public static int countAll()
      Returns the number of analytics delete messages.
      Returns:
      the number of analytics delete messages
    • getPersistence

      public static AnalyticsDeleteMessagePersistence getPersistence()
    • setPersistence

      public static void setPersistence(AnalyticsDeleteMessagePersistence persistence)