150 likes | 505 Views
MySQL Database Server. Popular open source database server JDBC Connector Allows connectivity to a number of databases through java programs JDBC API used to connect to MySQL server Example classes: DriverManager Connection Statement. Mission Map Editor -Architecture. XML.
E N D
MySQL Database Server • Popular open source database server • JDBC Connector • Allows connectivity to a number of databases through java programs • JDBC API used to connect to MySQL server • Example classes: • DriverManager • Connection • Statement
Mission Map Editor-Architecture XML Mission Map Model VT Model DB
DB Connectivity In MMEditor Provide high level functions Provide query level functions Encapsulate JDBC constructs: Driver, Connection, Statement
Database Interaction in MissionMapEditor • Three classes involved: • MissionDbManager • Methods • saveMaptoDB() – save a copy of the missionmapto database • loadMapFromDb() – load a missionmap from database • MissionMapDbUtility • Methods • getStatement() – creates a statement object from JDBC connection • MissionDAO • Methods • insertMission- overloaded, inserts mission data into database • getMissions() – returns a list object containing the missions currently stored in database
Current Tasks • Refine database interaction functionality of Mission Map Editor • Add high level updateMapToDb() method to MissionDbManagerclass • Add query level methods to MissionDAOclass • updateMission() – query level method to execute update commands on database • deleteMission() – query level method to delete a mission from the current database • Initial design of the Vulnerability Tracker tool