public class AuditLogDAODbFacadeImpl extends BaseDAODbFacade implements AuditLogDAO
AuditLogDAO. It uses code
refactored from DbFacade.dbFacade, dialect, jdbcTemplate, RETURN_VALUE_PARAMETER| Constructor and Description |
|---|
AuditLogDAODbFacadeImpl() |
| Modifier and Type | Method and Description |
|---|---|
AuditLog |
get(long id)
Retrieves the entry with the given id.
|
List<AuditLog> |
getAll()
Retrieves all audit log entries.
|
List<AuditLog> |
getAllAfterDate(Date cutoff)
Finds all entries created after the specified cutoff date
|
List<AuditLog> |
getAllWithQuery(String query)
Finds all entries using a supplied SQL query.
|
int |
getTimeToWaitForNextPmOp(String vdsName,
String event)
Get time to wait in seconds before another PM operation is allowed on the given Host
|
void |
remove(long id)
Removes the entry with the given id.
|
void |
removeAllBeforeDate(Date cutoff)
Removes all entries before the specified cutoff date
|
void |
removeAllForVds(Guid id,
boolean removeConfigAlerts)
Removes all entries for the given VDS id.
|
void |
removeAllOfTypeForVds(Guid id,
int type)
Removes entries of the specified type for the given VDS id.
|
void |
save(AuditLog event)
Saves the provided audit log
|
void |
update(AuditLog event)
Updates the provided audit log entry.
|
getCallsHandler, getCustomMapSqlParameterSource, setDbFacade, setDialect, setTemplatepublic AuditLog get(long id)
AuditLogDAOget in interface AuditLogDAOid - the entry idpublic List<AuditLog> getAllAfterDate(Date cutoff)
AuditLogDAOgetAllAfterDate in interface AuditLogDAOcutoff - the cutoff datepublic List<AuditLog> getAllWithQuery(String query)
AuditLogDAOgetAllWithQuery in interface AuditLogDAOquery - the querypublic List<AuditLog> getAll()
AuditLogDAOgetAll in interface AuditLogDAOpublic void save(AuditLog event)
AuditLogDAOsave in interface AuditLogDAOevent - the entrypublic void update(AuditLog event)
AuditLogDAOupdate in interface AuditLogDAOevent - the entrypublic void remove(long id)
AuditLogDAOremove in interface AuditLogDAOid - the entry idpublic void removeAllBeforeDate(Date cutoff)
AuditLogDAOremoveAllBeforeDate in interface AuditLogDAOcutoff - the cutoff datepublic void removeAllForVds(Guid id, boolean removeConfigAlerts)
AuditLogDAOremoveAllForVds in interface AuditLogDAOid - the vds idremoveConfigAlerts - if true then include config alertspublic void removeAllOfTypeForVds(Guid id, int type)
AuditLogDAOremoveAllOfTypeForVds in interface AuditLogDAOid - the VDS idtype - the entry typepublic int getTimeToWaitForNextPmOp(String vdsName, String event)
AuditLogDAOgetTimeToWaitForNextPmOp in interface AuditLogDAOvdsName - Host nameevent - [USER_VDS_STOP | USER_VDS_START | USER_VDS_RESTART]Copyright © 2012. All Rights Reserved.