Package com.assemblyrobot.shared.db.dao
Class RunDAO
java.lang.Object
com.assemblyrobot.shared.db.dao.RunDAO
- All Implemented Interfaces:
DAO
public class RunDAO extends java.lang.Object implements DAO
DAO for accessing the simulator run history database.
-
Method Summary
Modifier and Type Method Description booleandeleteRun(long id)Deletes a run from the database based on its ID.voidfinalize()RunDTO[]getAllRuns()Returns an array of all runs in the database.RunDTOgetRun(long id)Gets a simulator run by ID.booleanlogRun(RunDTO run, EngineDTO engine, StageControllerDTO stageController, StationDTO[] stations, MaterialDTO[] materials)Logs a simulator run.Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getRun
Gets a simulator run by ID. -
getAllRuns
Returns an array of all runs in the database.- Specified by:
getAllRunsin interfaceDAO- Returns:
RunDTO[]
-
deleteRun
public boolean deleteRun(long id)Deletes a run from the database based on its ID. -
finalize
public void finalize()- Overrides:
finalizein classjava.lang.Object
-