nz.ac.waikato.mcennis.rat.graph.persistence
Class DerbyPersistance

java.lang.Object
  extended by 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
 
Method Summary
 void initializeDatabase()
           
 void loadGraph(Graph g)
           
 void start()
           
 void stop()
           
protected  void storeActorProperties()
           
protected  void storeActors()
           
 void storeGraph(Graph g)
           
protected  void storeGraphProperties()
           
protected  void storeLinks()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DerbyPersistance

public DerbyPersistance()
Creates a new instance of DerbyPersistance

Method Detail

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