org.silverpeas.mydb.control
Class DriverManager
java.lang.Object
   org.silverpeas.mydb.control.DriverManager
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
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DriverManager
public DriverManager()
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.