rdbms
Class DatabaseWriter
java.lang.Object
rdbms.DatabaseWriter
public class DatabaseWriter
- extends java.lang.Object
Method Summary |
static boolean |
batchExecute(ConnectionBean c,
java.lang.String[] sql)
|
static boolean |
batchExecute(java.lang.String[] sql)
|
void |
execute(java.lang.String[] sql)
Run an atomic (i.e., threadsafe) list of sql statements
and then closes all connections to the data base system. |
void |
execute(java.util.Vector v)
We ASSUME that the vector contains and array of strings
of SQL commands |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DatabaseWriter
public DatabaseWriter(ConnectionManager cm)
DatabaseWriter
public DatabaseWriter(ConnectionBean c)
throws java.lang.ClassNotFoundException
- Throws:
java.lang.ClassNotFoundException
batchExecute
public static boolean batchExecute(ConnectionBean c,
java.lang.String[] sql)
batchExecute
public static boolean batchExecute(java.lang.String[] sql)
execute
public void execute(java.lang.String[] sql)
throws java.sql.SQLException
- Run an atomic (i.e., threadsafe) list of sql statements
and then closes all connections to the data base system.
Returns are ignored!
- Parameters:
sql
- - array of sql statements to be executed
- Throws:
java.sql.SQLException
execute
public void execute(java.util.Vector v)
throws java.sql.SQLException
- We ASSUME that the vector contains and array of strings
of SQL commands
- Parameters:
v
- of commands
- Throws:
java.sql.SQLException