public class SqlTableAlert extends SqlAbstractTable implements TableAlert
Constructor and Description |
---|
SqlTableAlert() |
Modifier and Type | Method and Description |
---|---|
void |
deleteAlert(int alertId) |
int |
deleteAllAlerts() |
Vector<Integer> |
getAlertList() |
Vector<Integer> |
getAlertListBySession(long sessionId) |
List<RecordAlert> |
getAlertsBySourceHistoryId(int historyId) |
RecordAlert |
read(int alertId) |
protected void |
reconnect(Connection conn) |
void |
update(int alertId,
String alert,
int risk,
int confidence,
String description,
String uri,
String param,
String attack,
String otherInfo,
String solution,
String reference,
String evidence,
int cweId,
int wascId,
int sourceHistoryId) |
void |
updateHistoryIds(int alertId,
int historyId,
int sourceHistoryId) |
RecordAlert |
write(int scanId,
int pluginId,
String alert,
int risk,
int confidence,
String description,
String uri,
String param,
String attack,
String otherInfo,
String solution,
String reference,
String evidence,
int cweId,
int wascId,
int historyId,
int sourceHistoryId,
int sourceId) |
databaseOpen, getConnection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
databaseOpen
protected void reconnect(Connection conn) throws DatabaseException
reconnect
in class SqlAbstractTable
DatabaseException
public RecordAlert read(int alertId) throws DatabaseException
read
in interface TableAlert
DatabaseException
public RecordAlert write(int scanId, int pluginId, String alert, int risk, int confidence, String description, String uri, String param, String attack, String otherInfo, String solution, String reference, String evidence, int cweId, int wascId, int historyId, int sourceHistoryId, int sourceId) throws DatabaseException
write
in interface TableAlert
DatabaseException
public void deleteAlert(int alertId) throws DatabaseException
deleteAlert
in interface TableAlert
DatabaseException
public int deleteAllAlerts() throws DatabaseException
deleteAllAlerts
in interface TableAlert
DatabaseException
public void update(int alertId, String alert, int risk, int confidence, String description, String uri, String param, String attack, String otherInfo, String solution, String reference, String evidence, int cweId, int wascId, int sourceHistoryId) throws DatabaseException
update
in interface TableAlert
DatabaseException
public void updateHistoryIds(int alertId, int historyId, int sourceHistoryId) throws DatabaseException
updateHistoryIds
in interface TableAlert
DatabaseException
public List<RecordAlert> getAlertsBySourceHistoryId(int historyId) throws DatabaseException
getAlertsBySourceHistoryId
in interface TableAlert
DatabaseException
public Vector<Integer> getAlertListBySession(long sessionId) throws DatabaseException
getAlertListBySession
in interface TableAlert
DatabaseException
public Vector<Integer> getAlertList() throws DatabaseException
getAlertList
in interface TableAlert
DatabaseException