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 readOnly(boolean flag) { _config.readOnly(flag); }
public void blobPath(String path) throws IOException { _config.setBlobPath(path); }
public void reserveStorageSpace(long byteCount) throws DatabaseReadOnlyException, NotSupportedException { _config.reserveStorageSpace(byteCount); }
public void lockDatabaseFile(boolean flag) { _config.lockDatabaseFile(flag); }
public Storage storage() { return _config.storage(); }
public void blockSize(int bytes) { _config.blockSize(bytes); }
public void generateCommitTimestamps(boolean setting) { _config.generateCommitTimestamps(setting); }
@Deprecated public void generateVersionNumbers(ConfigScope setting) { _config.generateVersionNumbers(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 asynchronousSync(boolean flag) { _config.asynchronousSync(flag); }
public void storage(Storage factory) throws GlobalOnlyConfigException { _config.storage(factory); }
public void captureQueryResultConfig() { final Config4Impl config = _trans.container().config(); _evaluationMode = config.evaluationMode(); _prefetchDepth = config.prefetchDepth(); _prefetchCount = config.prefetchObjectCount(); }