public final class DriverFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static ScriptellaDriver |
getDriver(Class drvClass)
Creates a Scriptella Driver using specified class.
|
static ScriptellaDriver |
getDriver(String driverName,
ClassLoader loader)
Loads a driver specified by a full or a short name.
|
public static ScriptellaDriver getDriver(String driverName, ClassLoader loader) throws ClassNotFoundException
The looking up procedure is the following:
driverName is looked up.
driverName - driver class short or full name.loader - class loader to use when loading driver classes.ClassNotFoundException - if no drivers satisfy specified name.public static ScriptellaDriver getDriver(Class drvClass)
If class is a Driver JDBC Bridge is used.
To be successfully instantiated the driver class must implement ScriptellaDriver class
and has no-arg public constructor.
drvClass - driver class.Copyright © 2006-2012. All Rights Reserved.