Examples of activationDepth()


Examples of com.db4o.config.Configuration.activationDepth()

//    });
//    config.messageLevel(3);

    config.automaticShutDown(false);
  config.callbacks(false);
    config.activationDepth(2);
    config.flushFileBuffers(false);
    config.callConstructors(true);
    config.exceptionsOnNotStorable(true);
    configureAbstractEntity(config);
    config.objectClass(BookMark.class).objectField("fFeedLink").indexed(true); //$NON-NLS-1$
View Full Code Here

Examples of com.db4o.config.Configuration.activationDepth()

//      public void onDiagnostic(Diagnostic d) {
//        System.out.println(d);
//      }
//    });
    globalConfig.messageLevel(0);
    globalConfig.activationDepth(1);
    globalConfig.flushFileBuffers(false);
    globalConfig.callConstructors(true);
    globalConfig.exceptionsOnNotStorable(true);
    globalConfig.objectClass(AbstractEntity.class).objectField("fId").indexed(true); //$NON-NLS-1$
    globalConfig.objectClass(AbstractEntity.class).objectField("fId").cascadeOnActivate(true); //$NON-NLS-1$
View Full Code Here

Examples of com.db4o.config.Configuration.activationDepth()

    config.lockDatabaseFile(false);
    config.queries().evaluationMode(forDefrag ? QueryEvaluationMode.LAZY : QueryEvaluationMode.IMMEDIATE);
    config.automaticShutDown(false);
    config.callbacks(false);
    config.activationDepth(2);
    config.callConstructors(true);
    config.exceptionsOnNotStorable(true);
    configureAbstractEntity(config);
    config.objectClass(BookMark.class).objectField("fFeedLink").indexed(true); //$NON-NLS-1$
    config.objectClass(ConditionalGet.class).objectField("fLink").indexed(true); //$NON-NLS-1$
View Full Code Here

Examples of com.db4o.config.Configuration.activationDepth()

    // LAZY appears to cause ClassCastException's relating to db4o objects inside db4o code. :(
    // Also it causes duplicates if we activate immediately.
    // And the performance gain for e.g. RegisterMeRunner isn't that great.
//    dbConfig.queries().evaluationMode(QueryEvaluationMode.LAZY);
    dbConfig.messageLevel(1);
    dbConfig.activationDepth(1);
    /* TURN OFF SHUTDOWN HOOK.
     * The shutdown hook does auto-commit. We do NOT want auto-commit: if a
     * transaction hasn't commit()ed, it's not safe to commit it. For example,
     * a splitfile is started, gets half way through, then we shut down.
     * The shutdown hook commits the half-finished transaction. When we start
View Full Code Here

Examples of com.db4o.config.Configuration.activationDepth()

    dbConfig.diagnostic().addListener(new DB4ODiagnosticListener());

    dbConfig.exceptionsOnNotStorable(false);

    System.err.println("Optimise native queries: "+dbConfig.optimizeNativeQueries());
    System.err.println("Query activation depth: "+dbConfig.activationDepth());

    // The database is encrypted.
    if(databaseKey != null) {
      IoAdapter baseAdapter = dbConfig.io();
      try {
View Full Code Here

Examples of com.db4o.config.Configuration.activationDepth()

    config.lockDatabaseFile(true);
    config.queries().evaluationMode(forDefrag ? QueryEvaluationMode.LAZY : QueryEvaluationMode.IMMEDIATE);
    config.automaticShutDown(false);
    config.callbacks(false);
    config.activationDepth(2);
    config.flushFileBuffers(false);
    config.callConstructors(true);
    config.exceptionsOnNotStorable(true);
    configureAbstractEntity(config);
    config.objectClass(BookMark.class).objectField("fFeedLink").indexed(true); //$NON-NLS-1$
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.