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 boolean
deleteRun(long id)
Deletes a run from the database based on its ID.void
finalize()
RunDTO[]
getAllRuns()
Returns an array of all runs in the database.RunDTO
getRun(long id)
Gets a simulator run by ID.boolean
logRun(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:
getAllRuns
in interfaceDAO
- Returns:
RunDTO
[]
-
deleteRun
public boolean deleteRun(long id)Deletes a run from the database based on its ID. -
finalize
public void finalize()- Overrides:
finalize
in classjava.lang.Object
-