nz.ac.waikato.mcennis.rat.graph
Class PostgresqlGraph

java.lang.Object
  extended by nz.ac.waikato.mcennis.rat.graph.model.ModelShell
      extended by nz.ac.waikato.mcennis.rat.graph.DerbyGraph
          extended by nz.ac.waikato.mcennis.rat.graph.PostgresqlGraph
All Implemented Interfaces:
java.io.Serializable, Graph, Listener, Model, ParsedObject

public class PostgresqlGraph
extends DerbyGraph

Sub-class of the DerbyGraph Object to work with postgresql databases

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class nz.ac.waikato.mcennis.rat.graph.DerbyGraph
DerbyGraph.ActorIterator
 
Field Summary
 
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.DerbyGraph
serialVersionUID
 
Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell
listener
 
Constructor Summary
PostgresqlGraph()
          Creates a new instance of PostgresqlGraph
 
Method Summary
 Parameter[] getParameters()
          Obtain a computer-readable description of the parameters and options this graph supports
 java.lang.String getUser()
          Returns the username that is used or will be used by the graph
 void init(java.util.Properties map)
          Set the parameters of this graph from the following property object.
 void initializeDatabase()
          Performs Postgresql specific database initialization
 void setUser(java.lang.String u)
          Sets the username for the postgresql database
 void startup()
          Performs postgresql initialization rather than DerbyGraph FIXME: initActor for postgresql is needed
 
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.DerbyGraph
add, add, add, add, add, addChild, anonymize, clear, close, commit, deleteDatabase, finalize, getActor, getActor, getActor, getActorClass, getActorCount, getActorIterator, getActorTypes, getChildren, getChildren, getDirectory, getGraphs, getID, getLink, getLink, getLink, getLinkByDestination, getLinkBySource, getLinkTypes, getParent, getPathSet, getPathSet, getProperty, getProperty, getSubGraph, getSubGraph, initActor, isInitialized, prepareStatement, publishChange, remove, remove, retrieveActor, setActorClass, setActorProperties, setDirectory, setID, setSubGraph
 
Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell
addListener, fireChange
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model
addListener
 

Constructor Detail

PostgresqlGraph

public PostgresqlGraph()
Creates a new instance of PostgresqlGraph

Method Detail

startup

public void startup()
             throws java.sql.SQLException
Performs postgresql initialization rather than DerbyGraph FIXME: initActor for postgresql is needed

Overrides:
startup in class DerbyGraph
Throws:
java.sql.SQLException

initializeDatabase

public void initializeDatabase()
                        throws java.sql.SQLException
Performs Postgresql specific database initialization

Overrides:
initializeDatabase in class DerbyGraph
Throws:
java.sql.SQLException

setUser

public void setUser(java.lang.String u)
Sets the username for the postgresql database

Parameters:
u - username to be used for the database

getUser

public java.lang.String getUser()
Returns the username that is used or will be used by the graph

Returns:
username

getParameters

public Parameter[] getParameters()
Description copied from interface: Graph
Obtain a computer-readable description of the parameters and options this graph supports

Specified by:
getParameters in interface Graph
Overrides:
getParameters in class DerbyGraph
Returns:
Description of all parameters this graph object supports.

init

public void init(java.util.Properties map)
Description copied from interface: Graph
Set the parameters of this graph from the following property object.

Specified by:
init in interface Graph
Overrides:
init in class DerbyGraph
Parameters:
map - properties to be set