Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.hsql
Class jdbcDataSource  view jdbcDataSource download jdbcDataSource.java

java.lang.Object
  extended byorg.hsql.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

Insert the type's description here. Creation date: (10/19/2000 2:26:43 PM)


Field Summary
private  java.lang.String database
          Database location
private  int loginTimeout
          Login timeout
private  java.io.PrintWriter logWriter
          Log writer
private  java.lang.String password
          Default password to use for connections
private static java.lang.String sStartURL
          Signature
private  java.lang.String user
          Default user to use for connections
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loginTimeout

private int loginTimeout
Login timeout


logWriter

private transient java.io.PrintWriter logWriter
Log writer


password

private java.lang.String password
Default password to use for connections


user

private java.lang.String user
Default user to use for connections


sStartURL

private static final java.lang.String sStartURL
Signature

See Also:
Constant Field Values

database

private java.lang.String database
Database location

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

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

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

getLogWriter

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

Specified by:
getLogWriter in interface javax.sql.DataSource

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()

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

setLogWriter

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

Specified by:
setLogWriter in interface javax.sql.DataSource

setPassword

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


setUser

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