Interface AnalyticsMessagePersistence

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

@ProviderType public interface AnalyticsMessagePersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AnalyticsMessage>, com.liferay.portal.kernel.service.persistence.change.tracking.CTPersistence<AnalyticsMessage>
The persistence interface for the analytics message service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    countByCompanyId(long companyId)
    Returns the number of analytics messages where companyId = ?.
    create(long analyticsMessageId)
    Creates a new analytics message with the primary key.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
    Returns the first analytics message in the ordered set where companyId = ?.
    fetchByPrimaryKey(long analyticsMessageId)
    Returns the analytics message with the primary key or returns null if it could not be found.
    findByCompanyId(long companyId)
    Returns all the analytics messages where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the analytics messages where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
    Returns an ordered range of all the analytics messages where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the analytics messages where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
    Returns the first analytics message in the ordered set where companyId = ?.
    findByPrimaryKey(long analyticsMessageId)
    Returns the analytics message with the primary key or throws a NoSuchMessageException if it could not be found.
    remove(long analyticsMessageId)
    Removes the analytics message with the primary key from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the analytics messages where companyId = ? from the database.
    updateImpl(AnalyticsMessage analyticsMessage)
     

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

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

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

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

    • findByCompanyId

      List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the analytics 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.

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

      AnalyticsMessage findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator) throws NoSuchMessageException
      Returns the first analytics 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 message
      Throws:
      NoSuchMessageException - if a matching analytics message could not be found
    • fetchByCompanyId_First

      AnalyticsMessage fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
      Returns the first analytics 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 message, or null if a matching analytics message could not be found
    • removeByCompanyId

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

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

      AnalyticsMessage create(long analyticsMessageId)
      Creates a new analytics message with the primary key. Does not add the analytics message to the database.
      Parameters:
      analyticsMessageId - the primary key for the new analytics message
      Returns:
      the new analytics message
    • remove

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

      AnalyticsMessage updateImpl(AnalyticsMessage analyticsMessage)
    • findByPrimaryKey

      AnalyticsMessage findByPrimaryKey(long analyticsMessageId) throws NoSuchMessageException
      Returns the analytics message with the primary key or throws a NoSuchMessageException if it could not be found.
      Parameters:
      analyticsMessageId - the primary key of the analytics message
      Returns:
      the analytics message
      Throws:
      NoSuchMessageException - if a analytics message with the primary key could not be found
    • fetchByPrimaryKey

      AnalyticsMessage fetchByPrimaryKey(long analyticsMessageId)
      Returns the analytics message with the primary key or returns null if it could not be found.
      Parameters:
      analyticsMessageId - the primary key of the analytics message
      Returns:
      the analytics message, or null if a analytics message with the primary key could not be found
    • findByCompanyId

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

      default List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the analytics 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.

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

      default List<AnalyticsMessage> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AnalyticsMessage> orderByComparator)
      Returns an ordered range of all the analytics 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 com.liferay.portal.kernel.dao.orm.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 com.liferay.analytics.message.storage.model.impl.AnalyticsMessageModelImpl.

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