@ProviderType public interface AuditEventPersistence extends com.liferay.portal.kernel.service.persistence.BasePersistence<AuditEvent>
Caching information and settings can be found in portal.properties
com.liferay.portal.security.audit.storage.service.persistence.impl.AuditEventPersistenceImpl
,
AuditEventUtil
Modifier and Type | Method and Description |
---|---|
void |
cacheResult(AuditEvent auditEvent)
Caches the audit event in the entity cache if it is enabled.
|
void |
cacheResult(java.util.List<AuditEvent> auditEvents)
Caches the audit events in the entity cache if it is enabled.
|
int |
countAll()
Returns the number of audit events.
|
int |
countByCompanyId(long companyId)
Returns the number of audit events where companyId = ?.
|
AuditEvent |
create(long auditEventId)
Creates a new audit event with the primary key.
|
AuditEvent |
fetchByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
Returns the first audit event in the ordered set where companyId = ?.
|
AuditEvent |
fetchByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
Returns the last audit event in the ordered set where companyId = ?.
|
AuditEvent |
fetchByPrimaryKey(long auditEventId)
Returns the audit event with the primary key or returns
null if it could not be found. |
java.util.Map<java.io.Serializable,AuditEvent> |
fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys) |
java.util.List<AuditEvent> |
findAll()
Returns all the audit events.
|
java.util.List<AuditEvent> |
findAll(int start,
int end)
Returns a range of all the audit events.
|
java.util.List<AuditEvent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
Returns an ordered range of all the audit events.
|
java.util.List<AuditEvent> |
findAll(int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the audit events.
|
AuditEvent |
findByCompanyId_First(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
Returns the first audit event in the ordered set where companyId = ?.
|
AuditEvent |
findByCompanyId_Last(long companyId,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
Returns the last audit event in the ordered set where companyId = ?.
|
AuditEvent[] |
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 = ?.
|
java.util.List<AuditEvent> |
findByCompanyId(long companyId)
Returns all the audit events where companyId = ?.
|
java.util.List<AuditEvent> |
findByCompanyId(long companyId,
int start,
int end)
Returns a range of all the audit events where companyId = ?.
|
java.util.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 = ?.
|
java.util.List<AuditEvent> |
findByCompanyId(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator,
boolean retrieveFromCache)
Returns an ordered range of all the audit events where companyId = ?.
|
AuditEvent |
findByPrimaryKey(long auditEventId)
Returns the audit event with the primary key or throws a
NoSuchEventException if it could not be found. |
AuditEvent |
remove(long auditEventId)
Removes the audit event with the primary key from the database.
|
void |
removeAll()
Removes all the audit events from the database.
|
void |
removeByCompanyId(long companyId)
Removes all the audit events where companyId = ? from the database.
|
AuditEvent |
updateImpl(AuditEvent auditEvent) |
clearCache, clearCache, clearCache, closeSession, countWithDynamicQuery, countWithDynamicQuery, fetchByPrimaryKey, findByPrimaryKey, findWithDynamicQuery, findWithDynamicQuery, findWithDynamicQuery, flush, getBadColumnNames, getCurrentSession, getDataSource, getListeners, getModelClass, openSession, processException, registerListener, remove, remove, setDataSource, unregisterListener, update, update
java.util.List<AuditEvent> findByCompanyId(long companyId)
companyId
- the company IDjava.util.List<AuditEvent> findByCompanyId(long companyId, int start, int end)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
companyId
- the company IDstart
- the lower bound of the range of audit eventsend
- the upper bound of the range of audit events (not inclusive)java.util.List<AuditEvent> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)java.util.List<AuditEvent> findByCompanyId(long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cacheAuditEvent findByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator) throws NoSuchEventException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a matching audit event could not be foundAuditEvent fetchByCompanyId_First(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching audit event could not be foundAuditEvent findByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator) throws NoSuchEventException
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a matching audit event could not be foundAuditEvent fetchByCompanyId_Last(long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
companyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)null
if a matching audit event could not be foundAuditEvent[] findByCompanyId_PrevAndNext(long auditEventId, long companyId, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator) throws NoSuchEventException
auditEventId
- the primary key of the current audit eventcompanyId
- the company IDorderByComparator
- the comparator to order the set by (optionally null
)NoSuchEventException
- if a audit event with the primary key could not be foundvoid removeByCompanyId(long companyId)
companyId
- the company IDint countByCompanyId(long companyId)
companyId
- the company IDvoid cacheResult(AuditEvent auditEvent)
auditEvent
- the audit eventvoid cacheResult(java.util.List<AuditEvent> auditEvents)
auditEvents
- the audit eventsAuditEvent create(long auditEventId)
auditEventId
- the primary key for the new audit eventAuditEvent remove(long auditEventId) throws NoSuchEventException
auditEventId
- the primary key of the audit eventNoSuchEventException
- if a audit event with the primary key could not be foundAuditEvent updateImpl(AuditEvent auditEvent)
AuditEvent findByPrimaryKey(long auditEventId) throws NoSuchEventException
NoSuchEventException
if it could not be found.auditEventId
- the primary key of the audit eventNoSuchEventException
- if a audit event with the primary key could not be foundAuditEvent fetchByPrimaryKey(long auditEventId)
null
if it could not be found.auditEventId
- the primary key of the audit eventnull
if a audit event with the primary key could not be foundjava.util.Map<java.io.Serializable,AuditEvent> fetchByPrimaryKeys(java.util.Set<java.io.Serializable> primaryKeys)
fetchByPrimaryKeys
in interface com.liferay.portal.kernel.service.persistence.BasePersistence<AuditEvent>
java.util.List<AuditEvent> findAll()
java.util.List<AuditEvent> findAll(int start, int end)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- the lower bound of the range of audit eventsend
- the upper bound of the range of audit events (not inclusive)java.util.List<AuditEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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 (optionally null
)java.util.List<AuditEvent> findAll(int start, int end, com.liferay.portal.kernel.util.OrderByComparator<AuditEvent> orderByComparator, boolean retrieveFromCache)
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 and pagination is required (start
and end
are not QueryUtil#ALL_POS
), then the query will include the default ORDER BY logic from AuditEventModelImpl
. If both orderByComparator
and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
start
- 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 (optionally null
)retrieveFromCache
- whether to retrieve from the finder cachevoid removeAll()
int countAll()