org.hsqldb
Class jdbcDataSource

org.hsqldb.jdbcDataSource
All Implemented Interfaces:
javax.naming.Referenceable, java.io.Serializable

public class jdbcDataSource
implements java.io.Serializable, javax.naming.Referenceable

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
 

Constructor Detail

jdbcDataSource

public jdbcDataSource()
Constructor
Method Detail

getConnection

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

getConnection

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

getDatabase

public java.lang.String getDatabase()
Return database

getLoginTimeout

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

getLogWriter

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

getReference

public javax.naming.Reference getReference()
                                    throws javax.naming.NamingException
getReference method comment.
Specified by:
getReference in interface javax.naming.Referenceable

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

setLogWriter

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

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.