biz.hammurapi.sql.hsqldb
Class HsqldbResourceDataSource
java.lang.Object
biz.hammurapi.sql.ConnectionPerThreadDataSource
biz.hammurapi.sql.hsqldb.HsqldbDataSource
biz.hammurapi.sql.hsqldb.HsqldbResourceDataSource
- All Implemented Interfaces:
- Component, javax.sql.DataSource
public class HsqldbResourceDataSource
- extends HsqldbDataSource
HSQLDB class loader resource data source.
- Author:
- Pavel Vlasov
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 |
HsqldbResourceDataSource
public HsqldbResourceDataSource(java.lang.String dbName,
Transaction connectionInitTransaction)
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. /com/mycompany/myproject/myDB.user
- Database userpassword
- Database passwordconnectionInitTransaction
- Connection initialization transaction
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
HsqldbResourceDataSource
public HsqldbResourceDataSource(java.lang.String dbName,
java.lang.String user,
java.lang.String password,
Transaction connectionInitTransaction)
throws java.lang.ClassNotFoundException,
java.sql.SQLException
- Constructor. Creates a database if one doesn't exist.
- Parameters:
dbName
- - Database name. E.g. /com/mycompany/myproject/myDB.user
- Database userpassword
- Database passwordconnectionInitTransaction
- Connection initialization transaction
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
java.sql.SQLException
Copyright © 2003 Hammurapi Group. All Rights Reserved.