Changeset 147 for trunk/corelib/src/org/bridgedb/rdb/IDMapperRdb.java
- Timestamp:
- 08/07/09 12:16:13 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/corelib/src/org/bridgedb/rdb/IDMapperRdb.java
r105 r147 36 36 static 37 37 { 38 BridgeDb.register ("idmapper-pgdb", new Driver()); 38 BridgeDb.register ("idmapper-pgdb", new DriverPgdb()); 39 BridgeDb.register ("idmapper-derbyclient", new DriverClient()); 39 40 } 40 41 41 private static final class Driver implements org.bridgedb.Driver42 private static final class DriverPgdb implements org.bridgedb.Driver 42 43 { 43 44 /** private constructor to prevent instantiation. */ 44 private Driver () { }45 private DriverPgdb() { } 45 46 46 47 /** {@inheritDoc} */ … … 48 49 { 49 50 return SimpleGdbFactory.createInstance(location, new DataDerby(), 0); 51 } 52 } 53 54 private static final class DriverClient implements org.bridgedb.Driver 55 { 56 /** private constructor to prevent instantiation. */ 57 private DriverClient() { } 58 59 /** {@inheritDoc} */ 60 public IDMapper connect(String location) throws IDMapperException 61 { 62 return SimpleGdbFactory.createInstance(location, new DBConnectorDerbyServer(), 0); 50 63 } 51 64 }
