public final class BridgeDb extends Object
| Modifier and Type | Method and Description |
|---|---|
static IDMapper |
connect(String connectionString)
Finds the correct implementation of the
IDMapper interface and instantiates it. |
static void |
register(String protocol,
Driver driver)
Used by
Driver implementations to register themselves and make
themselves available to the world. |
public static IDMapper connect(String connectionString) throws IDMapperException
IDMapper interface and instantiates it.connectionString - used to configure a mapping resource. The connectionString
has the form "protocol:location", where protocol can be e.g. "idmapper-text" or
"idmapper-pgdb", and location is for example an url or a file, depending
on the protocol.IDMapperException - when the right IDMapper implementation could not
be instantiated, or when the connection string is not formatted correctlypublic static void register(String protocol, Driver driver)
Driver implementations to register themselves and make
themselves available to the world.protocol - The protocol (part before ":" in connection string) that this Driver is for.driver - An instance of the Driver.Copyright © 2006–2021 BridgeDb project. All rights reserved.