SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

com.solarmetric.kodo.impl.jdbc.runtime
Class DataSourceConnector

java.lang.Object
  |
  +--com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector
All Implemented Interfaces:
Connector
Direct Known Subclasses:
ConfigurationConnector, PersistenceManagerConnector

public class DataSourceConnector
extends Object
implements Connector

A Connector is a provider for Connection instances, backed by a DataSource object.

Since:
2.4

Constructor Summary
DataSourceConnector(DataSource source, String username, String password)
           
 
Method Summary
 boolean equals(Object other)
          Two DataSourceConnectors are equal if their constituent username, password, and DataSource are equals.
 Connection getConnection()
          Obtain a Connection instance.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceConnector

public DataSourceConnector(DataSource source,
                           String username,
                           String password)
Method Detail

getConnection

public Connection getConnection()
                         throws SQLException
Obtain a Connection instance. Authenitcation information must be provided by this object, rather than by the requestor.
Specified by:
getConnection in interface Connector

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Two DataSourceConnectors are equal if their constituent username, password, and DataSource are equals.
Overrides:
equals in class Object

SolarMetric Kodo JDO 2.4.3 generated on March 27 2003

Copyright 2001,2002 SolarMetric, Inc. All Rights Reserved.