public class ConnectionFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.List<DriverFactory> |
registeredDrivers |
| Constructor and Description |
|---|
ConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Connection |
create(ConnectionInformation connectionInformation)
Find a driver and create a new connection
|
static Connection |
create(java.lang.String className,
ConnectionInformation connectionInformation)
Find a driver and create a new connection
|
static DriverInformation |
findDriver(ConnectionInformation connectionInformation) |
static void |
registerDriverFactory(DriverFactory driverFactory) |
protected static java.util.List<DriverFactory> registeredDrivers
public static void registerDriverFactory(DriverFactory driverFactory)
public static DriverInformation findDriver(ConnectionInformation connectionInformation)
public static Connection create(ConnectionInformation connectionInformation)
connectionInformation - The connection informationnull if no driver can be foundpublic static Connection create(java.lang.String className, ConnectionInformation connectionInformation) throws java.lang.ClassNotFoundException
className - the connection class name to pre-loadconnectionInformation - The connection informationnull if no driver can be foundjava.lang.ClassNotFoundException - the provided connection class cannot be found
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0