Interface IISDObjectDBConnector
-
public interface IISDObjectDBConnector
This is the public interface for classes used to connect to the ISD object storage database within this project.- Author:
- Dustin Kempton, Data Mining Lab, Georgia State University
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkReportInDB(EventType type, String sdb_id)
Checks if the object report is already stored in the object storage database of the ISD project.boolean
insertEventReport(IISDEventReport eventReport)
Inserts the event report into the appropriate table based on the "event_type" that was reported in the HEK.
-
-
-
Method Detail
-
checkReportInDB
boolean checkReportInDB(EventType type, String sdb_id) throws SQLException
Checks if the object report is already stored in the object storage database of the ISD project.- Parameters:
type
- The type of event report that is to be checked for.sdb_id
- The identifier that is unique to that event report (for sdb_solardb).- Returns:
- True if the object event report is in the database, False otherwise.
- Throws:
SQLException
- If there was an SQLException that occurred while attempting to execute.
-
insertEventReport
boolean insertEventReport(IISDEventReport eventReport) throws SQLException, InvalidAttributeException
Inserts the event report into the appropriate table based on the "event_type" that was reported in the HEK.- Parameters:
eventReport
- The event report to store into the appropriate table.- Returns:
- True when successful, False if not.
- Throws:
SQLException
- If there was an SQLException that occurred while attempting to execute.InvalidAttributeException
-
-