{
private final Map<Database<?, ?>, Entity[]> m_dbFiles = new HashMap<Database<?, ?>, Entity[]>();
private ShadowCopyTransactionalDatabase<String, String, Long> createDatabaseUsingFile(Directory dir, EFile f, EFile indf)
{
LogAdapterHolder lah = new LogAdapterHolder(new StdOutLogAdapter());
BPlusTreeIndexBackendFileBackedNodeRepositoryBuilder<Long> nrb = new BPlusTreeIndexBackendFileBackedNodeRepositoryBuilder<Long>();
nrb.setKeySerializer(LongNullSerializer.INSTANCE);
nrb.setLogAdapterHolder(lah);
ShadowCopyTransactionalDatabase<String, String, Long> res = new ShadowCopyTransactionalDatabase<String, String, Long>(new BPlusTreeIndexFileManager(new HeapBackendFileManager(f, dir), indf, dir), new BPlusTreeIndexBackendFactory<String, String, Long, Long>(new HeapBackendFactory<String, String>(StringSerializer.INSTANCE, StringSerializer.INSTANCE, lah), new LruCacheNodeRepositoryBuilder<Long, Long>().setProxiedBuilder(nrb), new StringToLongHasher(), lah), false, lah);
m_dbFiles.put(res, new Entity[] { dir, f, indf });