pt.moredata.connection
Class JdbcDriverInformation

java.lang.Object
  extended bypt.moredata.connection.JdbcDriverInformation

public class JdbcDriverInformation
extends java.lang.Object

JdbcDriverInformation.java Classe que providencia informacao acerca dos drivers de jdbc conhecidos. Company MoreData

Version:
$Revision: 1.6 $
Author:
psfbc

Constructor Summary
JdbcDriverInformation()
          Instantiates a new JdbcDriverInformation object.
JdbcDriverInformation(java.lang.String bundle)
          Instantiates a new JdbcDriverInformation object.
 
Method Summary
 pt.moredata.connection.DriverInformation getInfoForDescription(java.lang.String description)
          Gives information about a driver with a specific description.
 pt.moredata.connection.DriverInformation[] getInfoForDriverClassName(java.lang.String className)
          Gives information about all driver that have a specific class name.
 java.util.Iterator iterator()
          A list of DriverInformation objects with information of each driver as it was read from the bundle proprity file.
static void main(java.lang.String[] args)
          Runs JdbcDriverInformation class, for test propose only.
 void setShowKnownOnly(boolean showKnownOnly)
          Setter for property showKnownOnly.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcDriverInformation

public JdbcDriverInformation(java.lang.String bundle)
Instantiates a new JdbcDriverInformation object.

Parameters:
bundle - Proprity file name where to read JDBC driver information.

JdbcDriverInformation

public JdbcDriverInformation()
Instantiates a new JdbcDriverInformation object. The default proprity file is used to read information about JDBC drivers.

Method Detail

iterator

public java.util.Iterator iterator()
A list of DriverInformation objects with information of each driver as it was read from the bundle proprity file.

Returns:
A iterator for a list of DriverInformation objects

getInfoForDriverClassName

public pt.moredata.connection.DriverInformation[] getInfoForDriverClassName(java.lang.String className)
Gives information about all driver that have a specific class name.

Parameters:
className - The name of the class that implements the driver.
Returns:
A array of DriverInformation objects with driver information.

getInfoForDescription

public pt.moredata.connection.DriverInformation getInfoForDescription(java.lang.String description)
Gives information about a driver with a specific description.

Parameters:
description - The decription of the driver.
Returns:
A DriverInformation object with information about a driver.

main

public static void main(java.lang.String[] args)
Runs JdbcDriverInformation class, for test propose only.


setShowKnownOnly

public void setShowKnownOnly(boolean showKnownOnly)
Setter for property showKnownOnly.

Parameters:
showKnownOnly - New value of property showKnownOnly.