com.knowledgebooks.db
Class DbManager

java.lang.Object
  extended by com.knowledgebooks.db.DbManager

public class DbManager
extends java.lang.Object

A wrapper class for using the JavaDB relational database libraires.

Copyright 2002-2008 by Mark Watson. All rights reserved.

This software is not public domain. It can be legally used under either of the following licenses:

1. KnowledgeBooks.com Non Commercial Royality Free License
2. KnowledgeBooks.com Commercial Use License

see www.knowledgebooks.com for details


Constructor Summary
DbManager()
           
 
Method Summary
 void closeDbConnection()
           
 void commit()
           
 void doQuery(java.lang.String query)
           
 void doQuery(java.lang.String query, IResultSetHandler handler)
           
 void execute(java.lang.String sql)
           
static void printSQLException(java.sql.SQLException e)
           
 void setAutoCommit(boolean c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbManager

public DbManager()
          throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

doQuery

public void doQuery(java.lang.String query)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

doQuery

public void doQuery(java.lang.String query,
                    IResultSetHandler handler)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

execute

public void execute(java.lang.String sql)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

closeDbConnection

public void closeDbConnection()

setAutoCommit

public void setAutoCommit(boolean c)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

commit

public void commit()
            throws java.sql.SQLException
Throws:
java.sql.SQLException

printSQLException

public static void printSQLException(java.sql.SQLException e)