Пример #1
0
 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();
 }
Пример #10
0
 @Deprecated
 public void generateVersionNumbers(ConfigScope setting) {
   _config.generateVersionNumbers(setting);
 }
Пример #11
0
 public void generateCommitTimestamps(boolean setting) {
   _config.generateCommitTimestamps(setting);
 }
Пример #12
0
 public void generateUUIDs(ConfigScope setting) {
   _config.generateUUIDs(setting);
 }
Пример #13
0
 public FreespaceConfiguration freespace() {
   return _config.freespace();
 }
Пример #14
0
 public void disableCommitRecovery() {
   _config.disableCommitRecovery();
 }
Пример #15
0
 public void databaseGrowthSize(int bytes) {
   _config.databaseGrowthSize(bytes);
 }
Пример #16
0
 public void blockSize(int bytes) {
   _config.blockSize(bytes);
 }