biz.hammurapi.sql.hypersonic
Class HypersonicStandaloneDataSource

java.lang.Object
  extended by biz.hammurapi.sql.ConnectionPerThreadDataSource
      extended by biz.hammurapi.sql.hypersonic.HypersonicDataSource
          extended by biz.hammurapi.sql.hypersonic.HypersonicStandaloneDataSource
All Implemented Interfaces:
javax.sql.DataSource

public class HypersonicStandaloneDataSource
extends HypersonicDataSource

Hypersonic standalone data source.

Version:
$Revision: 1.5 $
Author:
Pavel Vlasov

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

Constructor Detail

HypersonicStandaloneDataSource

public HypersonicStandaloneDataSource(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

HypersonicStandaloneDataSource

public HypersonicStandaloneDataSource(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.