Class InstalledDriver
- java.lang.Object
-
- org.jboss.as.connector.services.driver.InstalledDriver
-
public final class InstalledDriver extends Object
Metadata describing a JDBC driver that has been installed as a service in the runtime.- Author:
- Brian Stansberry (c) 2011 Red Hat Inc.
-
-
Constructor Summary
Constructors Constructor Description InstalledDriver(String deploymentUnitName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant)Creates a new InstalledDriver for a driver that was installed from a deployment.InstalledDriver(String driverName, org.jboss.modules.ModuleIdentifier moduleName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant)Creates a new InstalledDriver for a driver that was loaded from the module path.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDataSourceClassName()StringgetDeploymentUnitName()Gets the name of the deployment unit from which the driver was loaded, if it was loaded from a deployment.StringgetDriverClassName()Gets the fully qualified class name of the driver's implementation ofDriverStringgetDriverName()intgetMajorVersion()Gets the driver's major version number.intgetMinorVersion()Gets the driver's minor version number.org.jboss.modules.ModuleIdentifiergetModuleName()Gets the name of the module from which the driver was loaded, if it was loaded from the module path.StringgetXaDataSourceClassName()inthashCode()booleanisFromDeployment()Gets whether the driver was loaded from a deployment unit.booleanisJdbcCompliant()Gets whether the driver is JDBC compliant.StringtoString()
-
-
-
Constructor Detail
-
InstalledDriver
public InstalledDriver(String driverName, org.jboss.modules.ModuleIdentifier moduleName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant)
Creates a new InstalledDriver for a driver that was loaded from the module path.- Parameters:
driverName- the symbolic name of the driver was loadedmoduleName- the name of the module from which the driver was loadeddriverClassName- the name of theDriverimplementation classdataSourceClassName- the name of theDataSourceimplementation classxaDataSourceClassName- the name of theXADataSourceimplementation classmajorVersion- the driver major versionminorVersion- the driver minor versionjdbcCompliant- whether the driver is JDBC compliant
-
InstalledDriver
public InstalledDriver(String deploymentUnitName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant)
Creates a new InstalledDriver for a driver that was installed from a deployment.- Parameters:
deploymentUnitName- the name of the deployment unit from which the driver was installeddriverClassName- the name of theDriverimplementation classdataSourceClassName- the name of theDataSourceimplementation classxaDataSourceClassName- the name of theXADataSourceimplementation classmajorVersion- the driver major versionminorVersion- the driver minor versionjdbcCompliant- whether the driver is JDBC compliant
-
-
Method Detail
-
getModuleName
public org.jboss.modules.ModuleIdentifier getModuleName()
Gets the name of the module from which the driver was loaded, if it was loaded from the module path.- Returns:
- the module name, or
nullifisFromDeployment()returnstrue
-
getDeploymentUnitName
public String getDeploymentUnitName()
Gets the name of the deployment unit from which the driver was loaded, if it was loaded from a deployment.- Returns:
- the deployment unit name, or
nullifisFromDeployment()returnsfalse
-
getDriverClassName
public String getDriverClassName()
Gets the fully qualified class name of the driver's implementation ofDriver- Returns:
- the class name. Will not be
null
-
getMajorVersion
public int getMajorVersion()
Gets the driver's major version number.- Returns:
- the major version number
-
getMinorVersion
public int getMinorVersion()
Gets the driver's minor version number.- Returns:
- the minor version number
-
isJdbcCompliant
public boolean isJdbcCompliant()
Gets whether the driver is JDBC compliant.- Returns:
trueif the driver is JDBC compliant;falseif not
-
isFromDeployment
public boolean isFromDeployment()
Gets whether the driver was loaded from a deployment unit.- Returns:
trueif the driver was loaded from a deployment unit;falseif it was loaded from a module on the module path
-
getDriverName
public String getDriverName()
-
getDataSourceClassName
public String getDataSourceClassName()
-
getXaDataSourceClassName
public String getXaDataSourceClassName()
-
-