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, setTemplate
public AuditLog get(long id)
AuditLogDAO
get
in interface AuditLogDAO
id
- the entry idpublic List<AuditLog> getAllAfterDate(Date cutoff)
AuditLogDAO
getAllAfterDate
in interface AuditLogDAO
cutoff
- the cutoff datepublic List<AuditLog> getAllWithQuery(String query)
AuditLogDAO
getAllWithQuery
in interface AuditLogDAO
query
- the querypublic List<AuditLog> getAll()
AuditLogDAO
getAll
in interface AuditLogDAO
public void save(AuditLog event)
AuditLogDAO
save
in interface AuditLogDAO
event
- the entrypublic void update(AuditLog event)
AuditLogDAO
update
in interface AuditLogDAO
event
- the entrypublic void remove(long id)
AuditLogDAO
remove
in interface AuditLogDAO
id
- the entry idpublic void removeAllBeforeDate(Date cutoff)
AuditLogDAO
removeAllBeforeDate
in interface AuditLogDAO
cutoff
- the cutoff datepublic void removeAllForVds(Guid id, boolean removeConfigAlerts)
AuditLogDAO
removeAllForVds
in interface AuditLogDAO
id
- the vds idremoveConfigAlerts
- if true
then include config alertspublic void removeAllOfTypeForVds(Guid id, int type)
AuditLogDAO
removeAllOfTypeForVds
in interface AuditLogDAO
id
- the VDS idtype
- the entry typepublic int getTimeToWaitForNextPmOp(String vdsName, String event)
AuditLogDAO
getTimeToWaitForNextPmOp
in interface AuditLogDAO
vdsName
- Host nameevent
- [USER_VDS_STOP | USER_VDS_START | USER_VDS_RESTART]Copyright © 2012. All Rights Reserved.