public final class InstalledDriver extends Object
| Constructor and Description |
|---|
InstalledDriver(String driverName,
org.jboss.modules.ModuleIdentifier moduleName,
String driverClassName,
String dataSourceClassName,
String xaDataSourceClassName,
int majorVersion,
int minorVersion,
boolean jdbcCompliant,
String profile)
Creates a new InstalledDriver for a driver that was loaded from the
module path.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDataSourceClassName() |
String |
getDeploymentUnitName()
Gets the name of the deployment unit from which the driver was loaded, if
it was loaded from a deployment.
|
String |
getDriverClassName()
Gets the fully qualified class name of the driver's implementation of
Driver |
String |
getDriverName() |
int |
getMajorVersion()
Gets the driver's major version number.
|
int |
getMinorVersion()
Gets the driver's minor version number.
|
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.
|
String |
getProfile() |
String |
getXaDataSourceClassName() |
int |
hashCode() |
boolean |
isFromDeployment()
Gets whether the driver was loaded from a deployment unit.
|
boolean |
isJdbcCompliant()
Gets whether the driver is JDBC compliant.
|
String |
toString() |
public InstalledDriver(String driverName, org.jboss.modules.ModuleIdentifier moduleName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant, String profile)
driverName - the symbolic name of the driver was loadedmoduleName - the name of the module from which the driver was loadeddriverClassName - the name of the Driver
implementation classdataSourceClassName - the name of the DataSource
implementation classxaDataSourceClassName - the name of the XADataSource
implementation classmajorVersion - the driver major versionminorVersion - the driver minor versionjdbcCompliant - whether the driver is JDBC compliantpublic InstalledDriver(String deploymentUnitName, String driverClassName, String dataSourceClassName, String xaDataSourceClassName, int majorVersion, int minorVersion, boolean jdbcCompliant)
deploymentUnitName - the name of the deployment unit from which the
driver was installeddriverClassName - the name of the Driver
implementation classdataSourceClassName - the name of the DataSource
implementation classxaDataSourceClassName - the name of the XADataSource
implementation classmajorVersion - the driver major versionminorVersion - the driver minor versionjdbcCompliant - whether the driver is JDBC compliantpublic org.jboss.modules.ModuleIdentifier getModuleName()
null if isFromDeployment()
returns truepublic String getDeploymentUnitName()
null if
isFromDeployment() returns falsepublic String getDriverClassName()
Drivernullpublic int getMajorVersion()
public int getMinorVersion()
public boolean isJdbcCompliant()
true if the driver is JDBC compliant; false if
notpublic boolean isFromDeployment()
true if the driver was loaded from a deployment unit;
false if it was loaded from a module on the module pathpublic String getDriverName()
public String getDataSourceClassName()
public String getXaDataSourceClassName()
public String getProfile()
Copyright © 2015 JBoss by Red Hat. All rights reserved.