Changeset 24860
- Timestamp:
- 2011-12-06T12:43:38+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/JDBMWrapper.java
r24393 r24860 94 94 Properties props = new Properties(); 95 95 recman_ = RecordManagerFactory.createRecordManager(db_filename, props); 96 96 97 97 // load existing table (if exists) otherwise create new one 98 98 long recid = recman_.getNamedObject(TNAME); … … 100 100 if (recid != 0) 101 101 { 102 System.err.println("# Loading existing database table '" + TNAME + "' ...");102 logger.info("# Loading existing database table '" + TNAME + "' ..."); 103 103 hashtable_ = HTree.load(recman_, recid); 104 104 } … … 112 112 db_filename_ = null; 113 113 114 System.err.println("Database table '" + TNAME + "' does not exist.");114 logger.error("Database table '" + TNAME + "' does not exist."); 115 115 throw new IOException(); 116 116 } 117 117 else 118 118 { 119 System.err.println("# No database table '" + TNAME + "' to set. Creating new one");119 logger.info("# No database table '" + TNAME + "' to set. Creating new one"); 120 120 hashtable_ = HTree.createInstance(recman_); 121 121 recman_.setNamedObject(TNAME, hashtable_.getRecid());
Note:
See TracChangeset
for help on using the changeset viewer.