Changeset 106 for trunk/corelib/src/org/bridgedb/rdb/DBConnector.java
- Timestamp:
- 07/19/09 19:24:43 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/corelib/src/org/bridgedb/rdb/DBConnector.java
r105 r106 42 42 43 43 /** 44 * Type for gene database 44 * Type for gene database. 45 45 */ 46 46 public static final int TYPE_GDB = 0; 47 47 /** 48 * Type for expression database 48 * Type for expression database. 49 49 */ 50 50 public static final int TYPE_GEX = 1; … … 53 53 54 54 /** 55 * Close the given connection 55 * Close the given connection. 56 56 * @param con The connection to be closed 57 * @throws Exception57 * @throws IDMapperException when there was a database error 58 58 */ 59 59 public void closeConnection(Connection con) throws IDMapperException … … 63 63 64 64 /** 65 * Close the given connection, and optionally finalize it after creation (using {@link #PROP_FINALIZE}) 65 * Close the given connection, and optionally finalize it after creation (using {@link #PROP_FINALIZE}). 66 66 * @param con The connection to be closed 67 67 * @param props Close properties (one of {@link #PROP_NONE}, {@link #PROP_FINALIZE} or {@link #PROP_RECREATE}) 68 * @throws Exception68 * @throws IDMapperException when there was a database error 69 69 */ 70 70 public void closeConnection(Connection con, int props) throws IDMapperException … … 83 83 84 84 /** 85 * Set the database type (one of {@link #TYPE_GDB} or {@link #TYPE_GEX}) 85 * Set the database type (one of {@link #TYPE_GDB} or {@link #TYPE_GEX}). 86 86 * @param type The type of the database that will be used for this class 87 87 */ … … 89 89 90 90 /** 91 * Get the database type (one of {@link #TYPE_GDB} or {@link #TYPE_GEX}) 92 * return The type of the database that is used for this class91 * Get the database type (one of {@link #TYPE_GDB} or {@link #TYPE_GEX}). 92 * @return The type of the database that is used for this class 93 93 */ 94 94 public int getDbType() { return dbType; } 95 95 96 97 98 96 /** 99 97 * This method is called to finalize the given database after creation … … 103 101 * The database connection needs to be closed before running this method. 104 102 * @param dbName The name of the database to finalize 105 * @throws Exception106 103 * @return The name of the finalized database 104 * @throws IDMapperException when there was a database error 107 105 */ 108 106 public abstract String finalizeNewDatabase(String dbName) throws IDMapperException; … … 113 111 * after all data is added to the database. 114 112 * @param con A connection to the database 115 * @throws SQLException113 * @throws IDMapperException when there was a database error 116 114 */ 117 115 public void compact(Connection con) throws IDMapperException
