foundry-0.9.1

foundry.sql
Class SQLStatementSet

java.lang.Object
  |
  +--foundry.sql.SQLStatementSet

public class SQLStatementSet
extends Object


Field Summary
private  Connection c
           
private  HashSet statements
           
 
Constructor Summary
SQLStatementSet(Properties p)
           
 
Method Summary
 boolean addStatement(String statement)
           
 boolean containsStatement(String statement)
           
 void execute()
           
 Connection getConnection()
           
 int getNumberOfStatements()
           
 Set getStatements()
           
private  void init(Properties p)
           
 void load(File file)
           
 void load(String filenameOrUrl)
           
 void load(URL url)
           
static void main(String[] args)
           
 boolean removeStatement(String statement)
           
private  void setConnection(Properties p)
           
 void store(File file)
           
 void store(String filename)
           
static void usage()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

c

private transient Connection c

statements

private final HashSet statements
Constructor Detail

SQLStatementSet

public SQLStatementSet(Properties p)
                throws SQLException
Method Detail

init

private void init(Properties p)
           throws SQLException

getConnection

public Connection getConnection()
                         throws SQLException

setConnection

private void setConnection(Properties p)
                    throws SQLException

addStatement

public boolean addStatement(String statement)

containsStatement

public boolean containsStatement(String statement)

removeStatement

public boolean removeStatement(String statement)

getStatements

public Set getStatements()

getNumberOfStatements

public int getNumberOfStatements()

store

public void store(String filename)
           throws IOException

store

public void store(File file)
           throws IOException

load

public void load(String filenameOrUrl)
          throws IOException

load

public void load(File file)
          throws IOException,
                 MalformedURLException

load

public void load(URL url)
          throws IOException

execute

public void execute()
             throws SQLException

main

public static void main(String[] args)
                 throws Exception

usage

public static void usage()

foundry-0.9.1

Copyright © 2000 - Laird Jarrett Nelson