Show
Ignore:
Timestamp:
08/07/09 12:16:13 (3 years ago)
Author:
martijn
Message:

Added Driver for connecting to remote derby server

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/corelib/src/org/bridgedb/rdb/IDMapperRdb.java

    r105 r147  
    3636        static 
    3737        { 
    38                 BridgeDb.register ("idmapper-pgdb", new Driver()); 
     38                BridgeDb.register ("idmapper-pgdb", new DriverPgdb()); 
     39                BridgeDb.register ("idmapper-derbyclient", new DriverClient()); 
    3940        } 
    4041         
    41         private static final class Driver implements org.bridgedb.Driver 
     42        private static final class DriverPgdb implements org.bridgedb.Driver 
    4243        { 
    4344                /** private constructor to prevent instantiation. */ 
    44                 private Driver() { }  
     45                private DriverPgdb() { }  
    4546                 
    4647                /** {@inheritDoc} */ 
     
    4849                { 
    4950                        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); 
    5063                } 
    5164        }