try {
if (m_databaseFile.exists()) {
if (getLogger().isDebugEnabled()) {
getLogger().debug("initialize(): Datafile exists");
}
m_Database = new IndexedObjectDatabase(m_databaseFile.toString(), false);
m_Index = new BTreeIndex(m_indexFile.toString());
m_Database.attachIndex(m_Index);
} else {
if (getLogger().isDebugEnabled()) {
getLogger().debug("initialize(): Datafile does not exist");
}
m_Database = new IndexedObjectDatabase(m_databaseFile.toString(), false);
m_Index = new BTreeIndex(m_indexFile.toString(),
m_Order, new JispStringKey(), false);
m_Database.attachIndex(m_Index);
}
} catch (KeyNotFound ignore) {