- Timestamp:
- 02/25/10 20:57:43 (2 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/org.bridgedb.rdb/src/org/bridgedb/rdb/IDMapperRdb.java
r317 r318 56 56 public IDMapper connect(String location) throws IDMapperException 57 57 { 58 try 59 { 60 String url = "jdbc:derby:jar:(" + location + ")database"; 61 Connection con = DriverManager.getConnection(url); 62 return SimpleGdbFactory.createInstance(location, con); 63 } 64 catch (SQLException ex) 65 { 66 throw new IDMapperException(ex); 67 } 58 String url = "jdbc:derby:jar:(" + location + ")database"; 59 return SimpleGdbFactory.createInstance(location, url); 68 60 } 69 61 } … … 77 69 public IDMapper connect(String location) throws IDMapperException 78 70 { 79 try 80 { 81 String url = "jdbc:" + location; 82 Connection con = DriverManager.getConnection(url); 83 return SimpleGdbFactory.createInstance(location, con); 84 } 85 catch (SQLException ex) 86 { 87 throw new IDMapperException(ex); 88 } 71 String url = "jdbc:" + location; 72 return SimpleGdbFactory.createInstance(location, url); 89 73 } 90 74 } … … 115 99 116 100 String url = "jdbc:derby://" + host + ":" + port + "/" + args.get("BASE"); 117 Connection con = DriverManager.getConnection(url); 118 return SimpleGdbFactory.createInstance(location, con); 119 } 120 catch (SQLException f) 121 { 122 throw new IDMapperException (f); 101 return SimpleGdbFactory.createInstance(location, url); 123 102 } 124 103 catch (IOException e)
