agentland.resource.connect
Class SQLGraph

java.lang.Object
  |
  +--util.graph.Graph
        |
        +--util.graph.PermGraph
              |
              +--agentland.resource.connect.SQLGraph

public class SQLGraph
extends PermGraph

See Also:
Serialized Form

Fields inherited from class util.graph.Graph
edges, nodes
 
Method Summary
protected  int execSQL(String s)
           
protected  int execSQL(String s, boolean loud)
           
protected  Edge loadEdge()
          Return the next edge in a table.
 void openTable(String table)
          Open the table for read/write to save/load graph.
protected  ResultSet queryDB(String qry)
           
protected  void saveEdge(Edge e)
          Save an edge to the table.
 void saveEdge(String from, String outPort, String to, String inPort)
           
 
Methods inherited from class util.graph.PermGraph
addEdge, loadGraph, saveGraph
 
Methods inherited from class util.graph.Graph
changeNode, commitPath, getEdges, getEdgesFrom, getNodes, getPath, removeEdge, removeEdges, removeNode, removeOwner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

queryDB

protected ResultSet queryDB(String qry)

openTable

public void openTable(String table)
Description copied from class: PermGraph
Open the table for read/write to save/load graph.
Overrides:
openTable in class PermGraph

saveEdge

public void saveEdge(String from,
                     String outPort,
                     String to,
                     String inPort)

saveEdge

protected void saveEdge(Edge e)
Description copied from class: PermGraph
Save an edge to the table.
Overrides:
saveEdge in class PermGraph

loadEdge

protected Edge loadEdge()
Description copied from class: PermGraph
Return the next edge in a table. Return null if no edges remaining, otherwise return an Edge object.
Overrides:
loadEdge in class PermGraph

execSQL

protected int execSQL(String s)

execSQL

protected int execSQL(String s,
                      boolean loud)