nz.ac.waikato.mcennis.rat.graph.persistence
Class DerbyPersistance
java.lang.Object
nz.ac.waikato.mcennis.rat.graph.persistence.DerbyPersistance
- All Implemented Interfaces:
- GraphPersistance
public class DerbyPersistance
- extends java.lang.Object
- implements GraphPersistance
Constructor Summary |
DerbyPersistance()
Creates a new instance of DerbyPersistance |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DerbyPersistance
public DerbyPersistance()
- Creates a new instance of DerbyPersistance
storeGraph
public void storeGraph(Graph g)
throws java.sql.SQLException
- Specified by:
storeGraph
in interface GraphPersistance
- Throws:
java.sql.SQLException
loadGraph
public void loadGraph(Graph g)
- Specified by:
loadGraph
in interface GraphPersistance
start
public void start()
throws java.sql.SQLException
- Specified by:
start
in interface GraphPersistance
- Throws:
java.sql.SQLException
stop
public void stop()
throws java.sql.SQLException
- Specified by:
stop
in interface GraphPersistance
- Throws:
java.sql.SQLException
initializeDatabase
public void initializeDatabase()
storeActors
protected void storeActors()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
storeActorProperties
protected void storeActorProperties()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
storeLinks
protected void storeLinks()
throws java.sql.SQLException
- Throws:
java.sql.SQLException
storeGraphProperties
protected void storeGraphProperties()
throws java.sql.SQLException
- Throws:
java.sql.SQLException