Class InstalledDriver
java.lang.Object
org.jboss.as.connector.services.driver.InstalledDriver
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
ConstructorsConstructorDescriptionInstalledDriver(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, String 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
Modifier and TypeMethodDescriptionbooleanGets the name of the deployment unit from which the driver was loaded, if it was loaded from a deployment.Gets the fully qualified class name of the driver's implementation ofDriverintGets the driver's major version number.intGets the driver's minor version number.Gets the name of the module from which the driver was loaded, if it was loaded from the module path.inthashCode()booleanGets whether the driver was loaded from a deployment unit.booleanGets whether the driver is JDBC compliant.toString()
-
Constructor Details
-
InstalledDriver
public InstalledDriver(String driverName, String 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 Details
-
getModuleName
Gets the name of the module from which the driver was loaded, if it was loaded from the module path.- Returns:
- the canonical module name, or
nullifisFromDeployment()returnstrue
-
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
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
-
equals
-
hashCode
public int hashCode() -
toString
-
getDriverName
-
getDataSourceClassName
-
getXaDataSourceClassName
-