com.sd.odbc
Class DataSource

java.lang.Object
  |
  +--com.sd.odbc.DataSource

public class DataSource
extends java.lang.Object
implements java.io.Serializable

This is a wrapper for an ODBC DataSource. It contains a name and an ODBCDriver object.

See Also:
Serialized Form

Constructor Summary
DataSource(java.lang.String name, ODBCDriver driver)
          Constructs a DataSource object.
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this DataSource object to another one.
 ODBCDriver getDriver()
          Returns the ODBC driver for that DataSource.
 java.lang.String getName()
          Returns the name of the DataSource.
 java.lang.String toString()
          Returns the name of the DataSource.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataSource

public DataSource(java.lang.String name,
                  ODBCDriver driver)
Constructs a DataSource object.
Parameters:
name - the name of the DataSource
driver - ODBCDriver object that represents the ODBC driver for that DataSource.
Method Detail

getName

public java.lang.String getName()
Returns the name of the DataSource.
Returns:
the name of the DataSource

toString

public java.lang.String toString()
Returns the name of the DataSource.
Overrides:
toString in class java.lang.Object
Returns:
the name of the DataSource

getDriver

public ODBCDriver getDriver()
Returns the ODBC driver for that DataSource.
Returns:
ODBCDriver object that represents the ODBC driver for that DataSource

equals

public boolean equals(java.lang.Object obj)
Compares this DataSource object to another one.
Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare against.
Returns:
true, if obj is of type DataSource and represents the same DataSource; false otherwise