com.sd.odbc
Class ODBCDriver

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

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

This is a wrapper for an ODBC driver. It contains a name and a HashMap of associated attributes.

See Also:
Serialized Form

Constructor Summary
ODBCDriver(java.lang.String name, java.util.HashMap attributes)
          Constructs an ODBCDriver object with the given name and attributes.
 
Method Summary
 void dump()
          Helper function that dumps the content of the ODBCDriver object to the standard output.
 boolean equals(java.lang.Object obj)
          Compares this ODBCDriver object to another one.
 java.util.Collection getAttributeKeys()
          Returns a collection of attribute keys.
 java.lang.String getAttributeValue(java.lang.String key)
          Returns a value for a specific attribute
 java.lang.String getName()
          Returns the name of the ODBCDriver.
 java.lang.String toString()
          Returns the name of the ODBCDriver.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ODBCDriver

public ODBCDriver(java.lang.String name,
                  java.util.HashMap attributes)
Constructs an ODBCDriver object with the given name and attributes.
Parameters:
name - the name of the ODBCDriver
attributes - associated attributes. Please, see the ODBC documentation for more information about the attributes for a specific driver.
Method Detail

getName

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

toString

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

getAttributeKeys

public java.util.Collection getAttributeKeys()
Returns a collection of attribute keys.
Returns:
a collection of the keys of the associated attributes

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String key)
Returns a value for a specific attribute
Parameters:
key - the key
Returns:
the associated value

equals

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

dump

public void dump()
Helper function that dumps the content of the ODBCDriver object to the standard output.