org.silverpeas.mydb.control
Class DriverManager

java.lang.Object
  extended by org.silverpeas.mydb.control.DriverManager

public class DriverManager
extends Object

Database driver manager. All available drivers are described in MyDB setting file.

Author:
Antoine HEDIN

Constructor Summary
DriverManager()
           
 
Method Summary
 Collection<String> getAvailableDriversDisplayNames()
           
 Collection<String> getAvailableDriversNames()
           
 ArrayList<String> getDatabaseKeywordsListForDriver(String driverName)
           
 DataTypeList getDataTypeListForDriver(String driverName)
           
 String getDescriptionForDriver(String driverName)
           
 Driver getDriver(String driverName)
           
 String getDriverClassName(String driverName)
           
 Collection<String> getDriversDescriptions()
           
 Collection<String> getJdbcUrlsForDriver(String driverName)
           
 void resetDriver()
          Reset the current driver.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DriverManager

public DriverManager()
Method Detail

getDriver

public Driver getDriver(String driverName)
Parameters:
driverName - The name of searched driver.
Returns:
The driver corresponding to the name given as parameter.

resetDriver

public void resetDriver()
Reset the current driver.


getDriversDescriptions

public Collection<String> getDriversDescriptions()
Returns:
the descriptions of the available drivers.

getAvailableDriversNames

public Collection<String> getAvailableDriversNames()
Returns:
the names of the available drivers.

getAvailableDriversDisplayNames

public Collection<String> getAvailableDriversDisplayNames()
Returns:
the display names of the available drivers.

getJdbcUrlsForDriver

public Collection<String> getJdbcUrlsForDriver(String driverName)
Parameters:
driverName - The name of the driver.
Returns:
the JDBC URLs corresponding to the name given as parameter.

getDescriptionForDriver

public String getDescriptionForDriver(String driverName)
Parameters:
driverName - The name of the driver.
Returns:
the description of the driver corresponding to the name given as parameter.

getDriverClassName

public String getDriverClassName(String driverName)
Parameters:
driverName - The name of the driver.
Returns:
the driver class name of the driver corresponding to the name given as parameter.

getDatabaseKeywordsListForDriver

public ArrayList<String> getDatabaseKeywordsListForDriver(String driverName)
Parameters:
driverName - The name of the driver.
Returns:
the list of keywords of the driver corresponding to the name given as parameter.

getDataTypeListForDriver

public DataTypeList getDataTypeListForDriver(String driverName)
Parameters:
driverName - The name of the driver.
Returns:
the list of data types of the driver corresponding to the name given as parameter.


Copyright © 2016 Silverpeas. All Rights Reserved.