org.hsqldb
Class jdbcDataSource

java.lang.Object
  extended byorg.hsqldb.jdbcDataSource
All Implemented Interfaces:
javax.sql.DataSource, javax.naming.Referenceable, java.io.Serializable

public class jdbcDataSource
extends java.lang.Object
implements java.io.Serializable, javax.naming.Referenceable, javax.sql.DataSource

See Also:
Serialized Form

Constructor Summary
jdbcDataSource()
          Constructor
 
Method Summary
 java.sql.Connection getConnection()
          Forward with current user/password
 java.sql.Connection getConnection(java.lang.String user, java.lang.String password)
          getConnection method comment.
 java.lang.String getDatabase()
          Return database
 int getLoginTimeout()
          getLoginTimeout method comment.
 java.io.PrintWriter getLogWriter()
          getLogWriter method comment.
 javax.naming.Reference getReference()
          getReference method comment.
 java.lang.String getUser()
           
 void setDatabase(java.lang.String database)
          Set database location
 void setLoginTimeout(int ignore)
          Not yet implemented
 void setLogWriter(java.io.PrintWriter logWriter)
          setLogWriter method comment.
 void setPassword(java.lang.String password)
          Sets the password to use for connecting to the database
 void setUser(java.lang.String user)
          Sets the userid
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

jdbcDataSource

public jdbcDataSource()
Constructor

Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
Forward with current user/password

Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getConnection

public java.sql.Connection getConnection(java.lang.String user,
                                         java.lang.String password)
                                  throws java.sql.SQLException
getConnection method comment.

Specified by:
getConnection in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getDatabase

public java.lang.String getDatabase()
Return database


getLoginTimeout

public int getLoginTimeout()
                    throws java.sql.SQLException
getLoginTimeout method comment.

Specified by:
getLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getLogWriter

public java.io.PrintWriter getLogWriter()
                                 throws java.sql.SQLException
getLogWriter method comment.

Specified by:
getLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
getReference method comment.

Specified by:
getReference in interface javax.naming.Referenceable
Throws:
javax.naming.NamingException

getUser

public java.lang.String getUser()
Returns:
user ID for the connection

setDatabase

public void setDatabase(java.lang.String database)
Set database location


setLoginTimeout

public void setLoginTimeout(int ignore)
                     throws java.sql.SQLException
Not yet implemented

Specified by:
setLoginTimeout in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setLogWriter

public void setLogWriter(java.io.PrintWriter logWriter)
                  throws java.sql.SQLException
setLogWriter method comment.

Specified by:
setLogWriter in interface javax.sql.DataSource
Throws:
java.sql.SQLException

setPassword

public void setPassword(java.lang.String password)
Sets the password to use for connecting to the database

Parameters:
password - the password

setUser

public void setUser(java.lang.String user)
Sets the userid

Parameters:
user - the user id


Copyright © 2001 - 2002 HSQL Development Group. All Rights Reserved.