borland Packages Class Hierarchy javax.sql Package
java.lang.Object +----com.borland.javax.sql.DataSourceProperties +----com.borland.javax.sql.JdbcDataSource
Constructors Properties Methods
Implements Designable, Serializable, Referenceable
JdbcDataSource
is a basic implementation of the JDBC 2.0 javax.sql.DataSource
interface. It provides a single connection to a data source via a JDBC driver. JdbcDataSource
can be registered with a JNDI naming service.
public JdbcDataSource()
public final Connection getConnection()A connection to a JDBC data source.
public javax.naming.Reference getReference()This property is needed to persist the
JdbcDataSource
in some JNDI implementations. You usually do not need to use this property.
public final synchronized Connection getConnection(String user, String password)Get a connection to the JDBC data source.