Interface AuditEventPersistence
- All Superinterfaces:
com.liferay.portal.kernel.service.persistence.BasePersistence<AuditEvent>
Caching information and settings can be found in portal.properties
- See Also:
- Generated:
-
Method Summary
Modifier and TypeMethodDescriptionintcountByCompanyId(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 = ?.fetchByPrimaryKey(long auditEventId) Returns the audit event with the primary key or returnsnullif it could not be found.default List<AuditEvent> findByCompanyId(long companyId) Returns all the audit events where companyId = ?.default List<AuditEvent> findByCompanyId(long companyId, int start, int end) Returns a range of all the audit events where companyId = ?.default 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 = ?.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 = ?.findByPrimaryKey(long auditEventId) Returns the audit event with the primary key or throws aNoSuchEventExceptionif it could not be found.remove(long auditEventId) Removes the audit event with the primary key from the database.voidremoveByCompanyId(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
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
-
Method Details
-
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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audit eventsend- the upper bound of the range of audit events (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)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 IDorderByComparator- the comparator to order the set by (optionallynull)- 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 IDorderByComparator- the comparator to order the set by (optionallynull)- Returns:
- the first matching audit event, or
nullif a matching audit event 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
-
create
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
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
-
findByPrimaryKey
Returns the audit event with the primary key or throws aNoSuchEventExceptionif 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
Returns the audit event with the primary key or returnsnullif it could not be found.- Parameters:
auditEventId- the primary key of the audit event- Returns:
- the audit event, or
nullif a audit event with the primary key could not be found
-
findByCompanyId
Returns all the audit events where companyId = ?.- Parameters:
companyId- the company ID- Returns:
- the matching audit events
-
findByCompanyId
Returns a range of all the audit events where companyId = ?.Useful when paginating results. Returns a maximum of
end - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audit eventsend- the upper bound of the range of audit events (not inclusive)- Returns:
- the range of matching audit events
-
findByCompanyId
default 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 - startinstances.startandendare not primary keys, they are indexes in the result set. Thus,0refers to the first result in the set. Setting bothstartandendtocom.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POSwill return the full result set. IforderByComparatoris specified, then the query will include the given ORDER BY logic. IforderByComparatoris absent, then the query will include the default ORDER BY logic fromcom.liferay.portal.security.audit.storage.model.impl.AuditEventModelImpl.- Parameters:
companyId- the company IDstart- the lower bound of the range of audit eventsend- the upper bound of the range of audit events (not inclusive)orderByComparator- the comparator to order the results by (optionallynull)- Returns:
- the ordered range of matching audit events
-