Interface AuditEventPersistence

All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AuditEvent>

@ProviderType public interface AuditEventPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AuditEvent>
The persistence interface for the audit event service.

Caching information and settings can be found in portal.properties

See Also:
Generated:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cacheResult(AuditEvent auditEvent)
    Caches the audit event in the entity cache if it is enabled.
    void
    cacheResult(List<AuditEvent> auditEvents)
    Caches the audit events in the entity cache if it is enabled.
    int
    Returns the number of audit events.
    int
    countByCompanyId(long companyId)
    Returns the number of audit events where companyId = ?.
    create(long auditEventId)
    Creates a new audit event with the primary key.
    fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns the first audit event in the ordered set where companyId = ?.
    fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns the last audit event in the ordered set where companyId = ?.
    fetchByPrimaryKey(long auditEventId)
    Returns the audit event with the primary key or returns null if it could not be found.
    Returns all the audit events.
    findAll(int start, int end)
    Returns a range of all the audit events.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns an ordered range of all the audit events.
    findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the audit events.
    findByCompanyId(long companyId)
    Returns all the audit events where companyId = ?.
    findByCompanyId(long companyId, int start, int end)
    Returns a range of all the audit events where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns an ordered range of all the audit events where companyId = ?.
    findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean useFinderCache)
    Returns an ordered range of all the audit events where companyId = ?.
    findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns the first audit event in the ordered set where companyId = ?.
    findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns the last audit event in the ordered set where companyId = ?.
    findByCompanyId_PrevAndNext(long auditEventId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
    Returns the audit events before and after the current audit event in the ordered set where companyId = ?.
    findByPrimaryKey(long auditEventId)
    Returns the audit event with the primary key or throws a NoSuchEventException if it could not be found.
    remove(long auditEventId)
    Removes the audit event with the primary key from the database.
    void
    Removes all the audit events from the database.
    void
    removeByCompanyId(long companyId)
    Removes all the audit events where companyId = ? from the database.
    updateImpl(AuditEvent auditEvent)
     

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

    clearCache, clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, dslQuery, dslQueryCount, fetchByPrimaryKey, fetchByPrimaryKeys, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getDB, getDialect, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, removeByFunction, setDataSource, unregisterListener, update, update
  • Method Details

    • findByCompanyId

      List<AuditEvent> findByCompanyId(long companyId)
      Returns all the audit events where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the matching audit events
    • findByCompanyId

      List<AuditEvent> findByCompanyId(long companyId, int start, int end)
      Returns a range of all the audit events 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 AuditEventModelImpl.

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

      List<AuditEvent> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
      Returns an ordered range of all the audit events 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 AuditEventModelImpl.

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

      List<AuditEvent> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the audit events 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 AuditEventModelImpl.

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

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

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

      AuditEvent findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator) throws NoSuchEventException
      Returns the last audit event 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 audit event
      Throws:
      NoSuchEventException - if a matching audit event could not be found
    • fetchByCompanyId_Last

      AuditEvent fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
      Returns the last audit event 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 audit event, or null if a matching audit event could not be found
    • findByCompanyId_PrevAndNext

      AuditEvent[] findByCompanyId_PrevAndNext(long auditEventId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator) throws NoSuchEventException
      Returns the audit events before and after the current audit event in the ordered set where companyId = ?.
      Parameters:
      auditEventId - the primary key of the current audit event
      companyId - the company ID
      orderByComparator - the comparator to order the set by (optionally null)
      Returns:
      the previous, current, and next audit event
      Throws:
      NoSuchEventException - if a audit event with the primary key could not be found
    • removeByCompanyId

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

      int countByCompanyId(long companyId)
      Returns the number of audit events where companyId = ?.
      Parameters:
      companyId - the company ID
      Returns:
      the number of matching audit events
    • cacheResult

      void cacheResult(AuditEvent auditEvent)
      Caches the audit event in the entity cache if it is enabled.
      Parameters:
      auditEvent - the audit event
    • cacheResult

      void cacheResult(List<AuditEvent> auditEvents)
      Caches the audit events in the entity cache if it is enabled.
      Parameters:
      auditEvents - the audit events
    • create

      AuditEvent create(long auditEventId)
      Creates a new audit event with the primary key. Does not add the audit event to the database.
      Parameters:
      auditEventId - the primary key for the new audit event
      Returns:
      the new audit event
    • remove

      AuditEvent remove(long auditEventId) throws NoSuchEventException
      Removes the audit event with the primary key from the database. Also notifies the appropriate model listeners.
      Parameters:
      auditEventId - the primary key of the audit event
      Returns:
      the audit event that was removed
      Throws:
      NoSuchEventException - if a audit event with the primary key could not be found
    • updateImpl

      AuditEvent updateImpl(AuditEvent auditEvent)
    • findByPrimaryKey

      AuditEvent findByPrimaryKey(long auditEventId) throws NoSuchEventException
      Returns the audit event with the primary key or throws a NoSuchEventException if it could not be found.
      Parameters:
      auditEventId - the primary key of the audit event
      Returns:
      the audit event
      Throws:
      NoSuchEventException - if a audit event with the primary key could not be found
    • fetchByPrimaryKey

      AuditEvent fetchByPrimaryKey(long auditEventId)
      Returns the audit event with the primary key or returns null if it could not be found.
      Parameters:
      auditEventId - the primary key of the audit event
      Returns:
      the audit event, or null if a audit event with the primary key could not be found
    • findAll

      List<AuditEvent> findAll()
      Returns all the audit events.
      Returns:
      the audit events
    • findAll

      List<AuditEvent> findAll(int start, int end)
      Returns a range of all the audit events.

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

      Parameters:
      start - the lower bound of the range of audit events
      end - the upper bound of the range of audit events (not inclusive)
      Returns:
      the range of audit events
    • findAll

      List<AuditEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
      Returns an ordered range of all the audit events.

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

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

      List<AuditEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean useFinderCache)
      Returns an ordered range of all the audit events.

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

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

      void removeAll()
      Removes all the audit events from the database.
    • countAll

      int countAll()
      Returns the number of audit events.
      Returns:
      the number of audit events