biz.hammurapi.sql.hsqldb
Class HsqldbStandaloneDataSource

java.lang.Object
  extended by biz.hammurapi.sql.ConnectionPerThreadDataSource
      extended by biz.hammurapi.sql.hsqldb.HsqldbDataSource
          extended by biz.hammurapi.sql.hsqldb.HsqldbStandaloneDataSource
All Implemented Interfaces:
Component, javax.sql.DataSource

public class HsqldbStandaloneDataSource
extends HsqldbDataSource

Hypersonic standalone data source.

Version:
$Revision: 1.5 $
Author:
Pavel Vlasov

Constructor Summary
HsqldbStandaloneDataSource(java.lang.String dbName, java.lang.String user, java.lang.String password, Transaction databaseInitTransaction, Transaction connectionInitTransaction)
          Constructor.
HsqldbStandaloneDataSource(java.lang.String dbName, Transaction databaseInitTransaction)
          Constructor.
 
Method Summary
 
Methods inherited from class biz.hammurapi.sql.hsqldb.HsqldbDataSource
initDB
 
Methods inherited from class biz.hammurapi.sql.ConnectionPerThreadDataSource
finalize, getConnection, getConnection, getInitConnectionTransaction, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter, setOwner, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HsqldbStandaloneDataSource

public HsqldbStandaloneDataSource(java.lang.String dbName,
                                  Transaction databaseInitTransaction)
                           throws java.lang.ClassNotFoundException,
                                  java.sql.SQLException
Constructor. Uses "sa" as user name and blank password. Creates a database if one doesn't exist.

Parameters:
dbName - - Database name. E.g. C:\myproject\myDB.
Throws:
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException

HsqldbStandaloneDataSource

public HsqldbStandaloneDataSource(java.lang.String dbName,
                                  java.lang.String user,
                                  java.lang.String password,
                                  Transaction databaseInitTransaction,
                                  Transaction connectionInitTransaction)
                           throws java.lang.ClassNotFoundException,
                                  java.sql.SQLException
Constructor. Creates a database if one doesn't exist.

Parameters:
dbName - - Database name. E.g. C:\myproject\myDB.
initTransaction - - Transaction to initialize database if it doesn't exist
Throws:
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException


Copyright © 2003 Hammurapi Group. All Rights Reserved.