Changeset 106 for trunk/corelib/src/org/bridgedb/rdb/SimpleGdbImpl2.java
- Timestamp:
- 07/19/09 19:24:43 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/corelib/src/org/bridgedb/rdb/SimpleGdbImpl2.java
r105 r106 103 103 "id = ? AND code = ?" 104 104 ); 105 private final LazyPst pstGeneSymbol = new LazyPst(106 "SELECT attrvalue FROM attribute WHERE " +107 "attrname = 'Symbol' AND id = ? " +108 "AND code = ?"109 );110 105 private final LazyPst pstBackpage = new LazyPst( 111 106 "SELECT backpageText FROM datanode " + … … 165 160 * get Backpage info. In Schema v2, this was not stored in 166 161 * the attribute table but as a separate column, so this is treated 167 * as a special case. 162 * as a special case. This method is called by <pre>getAttribute (ref, "Backpage")</pre> 163 * @param ref the entity to get backpage info for. 164 * @return Backpage info as string 165 * @throws IDMapperException when database is unavailable 168 166 */ 169 167 private String getBpInfo(Xref ref) throws IDMapperException … … 245 243 /** 246 244 * Opens a connection to the Gene Database located in the given file. 245 * A new instance of this class is created automatically. 247 246 * @param dbName The file containing the Gene Database. 248 * @param connector An instance of DBConnector, to determine the type of database (e.g. DataDerby). 249 * A new instance of this class is created automatically. 247 * @param newDbConnector An instance of DBConnector, to determine the type of database (e.g. DataDerby). 248 * @param props PROP_RECREATE if you want to create a new database (possibly overwriting an existing one) 249 * or PROP_NONE if you want to connect read-only 250 * @throws IDMapperException when the database could not be created or connected to 250 251 */ 251 252 public SimpleGdbImpl2(String dbName, DBConnector newDbConnector, int props) throws IDMapperException … … 539 540 /** 540 541 * @return a list of data sources present in this database. 542 @throws IDMapperException when the database is unavailable 541 543 */ 542 544 private Set<DataSource> getDataSources() throws IDMapperException
