private Configuration baseConfig(boolean useLogFile) { Config4Impl config = (Config4Impl) Db4o.newConfiguration(); config.objectClass(CrashData.class).objectField("_name").indexed(true); config.reflectWith(Platform4.reflectorForType(CrashSimulatingTestCase.class)); config.bTreeNodeSize(4); config.lockDatabaseFile(false); config.fileBasedTransactionLog(useLogFile); ID_SYSTEM.value().configure(config); FREESPACE_MANAGER.value().configure(config); return config; }
public void recoveryMode(boolean flag) { _config.recoveryMode(flag); }
public void asynchronousSync(boolean flag) { _config.asynchronousSync(flag); }
public void blobPath(String path) throws IOException { _config.setBlobPath(path); }
public void readOnly(boolean flag) { _config.readOnly(flag); }
public void lockDatabaseFile(boolean flag) { _config.lockDatabaseFile(flag); }
public void reserveStorageSpace(long byteCount) throws DatabaseReadOnlyException, NotSupportedException { _config.reserveStorageSpace(byteCount); }
public void storage(Storage factory) throws GlobalOnlyConfigException { _config.storage(factory); }
public Storage storage() { return _config.storage(); }
@Deprecated public void generateVersionNumbers(ConfigScope setting) { _config.generateVersionNumbers(setting); }
public void generateCommitTimestamps(boolean setting) { _config.generateCommitTimestamps(setting); }
public void generateUUIDs(ConfigScope setting) { _config.generateUUIDs(setting); }
public FreespaceConfiguration freespace() { return _config.freespace(); }
public void disableCommitRecovery() { _config.disableCommitRecovery(); }
public void databaseGrowthSize(int bytes) { _config.databaseGrowthSize(bytes); }
public void blockSize(int bytes) { _config.blockSize(bytes); }