Class SQLDatabaseTypeManager
- java.lang.Object
-
- org.ametys.core.datasource.dbtype.SQLDatabaseTypeManager
-
- All Implemented Interfaces:
Component
,Serviceable
public class SQLDatabaseTypeManager extends Object implements Component, Serviceable
Manager handling the handled SQL database types
-
-
Field Summary
Fields Modifier and Type Field Description private I18nUtils
_i18nUtils
Component containing i18n utility methodsprivate SQLDatabaseTypeExtensionPoint
_sqlDatabaseTypeExtensionPoint
The extension point for SQL database typesstatic String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description SQLDatabaseTypeManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description I18nizableText
getClassNotFoundMessage(String driver)
Get the class not found message corresponding to a driverMap<String,Object>
getSQLDatabaseTypes()
Retrieve the available sql drivers and the associated templatesvoid
service(ServiceManager serviceManager)
-
-
-
Field Detail
-
_sqlDatabaseTypeExtensionPoint
private SQLDatabaseTypeExtensionPoint _sqlDatabaseTypeExtensionPoint
The extension point for SQL database types
-
_i18nUtils
private I18nUtils _i18nUtils
Component containing i18n utility methods
-
-
Constructor Detail
-
SQLDatabaseTypeManager
public SQLDatabaseTypeManager()
-
-
Method Detail
-
service
public void service(ServiceManager serviceManager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
getSQLDatabaseTypes
public Map<String,Object> getSQLDatabaseTypes()
Retrieve the available sql drivers and the associated templates- Returns:
- the available drivers in JSON
-
getClassNotFoundMessage
public I18nizableText getClassNotFoundMessage(String driver)
Get the class not found message corresponding to a driver- Parameters:
driver
- the driver- Returns:
- the message to use in case the class of the driver was not found
-
-