예제 #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 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);
 }
예제 #10
0
 @Deprecated
 public void generateVersionNumbers(ConfigScope setting) {
   _config.generateVersionNumbers(setting);
 }
예제 #11
0
 public void generateUUIDs(ConfigScope setting) {
   _config.generateUUIDs(setting);
 }
예제 #12
0
 public FreespaceConfiguration freespace() {
   return _config.freespace();
 }
예제 #13
0
 public void disableCommitRecovery() {
   _config.disableCommitRecovery();
 }
예제 #14
0
 public void databaseGrowthSize(int bytes) {
   _config.databaseGrowthSize(bytes);
 }
예제 #15
0
 public void asynchronousSync(boolean flag) {
   _config.asynchronousSync(flag);
 }
예제 #16
0
 public void storage(Storage factory) throws GlobalOnlyConfigException {
   _config.storage(factory);
 }
예제 #17
0
 public void captureQueryResultConfig() {
   final Config4Impl config = _trans.container().config();
   _evaluationMode = config.evaluationMode();
   _prefetchDepth = config.prefetchDepth();
   _prefetchCount = config.prefetchObjectCount();
 }