org.sourceforge.jxdbcon
Class XAbstractDataSource
java.lang.Object
|
+--org.sourceforge.jxdbcon.XAbstractDataSource
- All Implemented Interfaces:
- DataSource, InfoKeys, Serializable
- Direct Known Subclasses:
- PGDataSource
- public abstract class XAbstractDataSource
- extends Object
- implements DataSource, InfoKeys, Serializable
XAbstractDataSource implements generics of the DataSource interface.
- Version:
- $Revision: 1.4 $, $Date: 2002/03/16 01:26:07 $
- Author:
- Keve Müller
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
info
protected Properties info
- The properties to use when creating the connection.
loginTimeout
protected int loginTimeout
logWriter
protected PrintWriter logWriter
XAbstractDataSource
protected XAbstractDataSource()
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection
in interface DataSource
SQLException
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection
in interface DataSource
SQLException
getLoginTimeout
public final int getLoginTimeout()
- Specified by:
getLoginTimeout
in interface DataSource
getLogWriter
public final PrintWriter getLogWriter()
- Specified by:
getLogWriter
in interface DataSource
internalGet
protected abstract AbstractConnection internalGet(Properties info)
throws SQLException
- Return a Connection, use the supplied properties as a hint.
The properties passed to the AbstractConnection.open will be the same.
SQLException
setCatalog
public final void setCatalog(String catalog)
setDescription
public final void setDescription(String description)
setHost
public final void setHost(String host)
setLoginTimeout
public final void setLoginTimeout(int seconds)
- Specified by:
setLoginTimeout
in interface DataSource
setLogWriter
public final void setLogWriter(PrintWriter out)
- Specified by:
setLogWriter
in interface DataSource
setPassword
public final void setPassword(String password)
setPort
public final void setPort(int port)
setUser
public final void setUser(String user)
Copyright © 2001,2002 Keve Müller; see LICENSE file for details.