Examples of common()


Examples of com.db4o.config.EmbeddedConfiguration.common()

    this.xstreamFile = xstreamFile;
  }

  public void toXML() {
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(Integer.MAX_VALUE);
    ObjectContainer db4o = Db4oEmbedded.openFile(config, databaseFile);
    new XStreamFile(xstreamFile).write(db4o.queryByExample(null));
    db4o.close();
  }
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

    db = Db4oEmbedded.openFile(newConfiguration(), filename);
  }

  protected EmbeddedConfiguration newConfiguration() {
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(0);
    config.common().allowVersionUpdates(true);
    config.common().callConstructors(true);
    config.common().callbacks(false);
    config.common().weakReferences(false);
    config.file().freespace().useRamSystem();
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  }

  protected EmbeddedConfiguration newConfiguration() {
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(0);
    config.common().allowVersionUpdates(true);
    config.common().callConstructors(true);
    config.common().callbacks(false);
    config.common().weakReferences(false);
    config.file().freespace().useRamSystem();
    config.file().storage(new NonFlushingStorage(new FileStorage()));
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  protected EmbeddedConfiguration newConfiguration() {
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(0);
    config.common().allowVersionUpdates(true);
    config.common().callConstructors(true);
    config.common().callbacks(false);
    config.common().weakReferences(false);
    config.file().freespace().useRamSystem();
    config.file().storage(new NonFlushingStorage(new FileStorage()));
    return config;
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  protected EmbeddedConfiguration newConfiguration() {
    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(0);
    config.common().allowVersionUpdates(true);
    config.common().callConstructors(true);
    config.common().callbacks(false);
    config.common().weakReferences(false);
    config.file().freespace().useRamSystem();
    config.file().storage(new NonFlushingStorage(new FileStorage()));
    return config;
  }
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

    EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
    config.common().activationDepth(0);
    config.common().allowVersionUpdates(true);
    config.common().callConstructors(true);
    config.common().callbacks(false);
    config.common().weakReferences(false);
    config.file().freespace().useRamSystem();
    config.file().storage(new NonFlushingStorage(new FileStorage()));
    return config;
  }
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

     * Constructor.
     */
    public Application() {
        /** Open and keep the db4o object container. */
        EmbeddedConfiguration config = Db4oEmbedded.newConfiguration();
        config.common().updateDepth(2);
        this.container = Db4oEmbedded.openFile(config, System
                .getProperty("user.home")
                + File.separator + "restbook.dbo");
    }

View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  final private static boolean DEBUG_OUTPUT_ENABLED = false;
  final private static int DEBUG_OUTPUT_LEVEL = 4;

  public EmbeddedConfiguration createDefaultConfiguration() {
    EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
    configuration.common().reflectWith(new JdkReflector(this.getClass().getClassLoader()));
    configuration.common().add(new TransparentPersistenceSupport());
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestId").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestOrigin").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("hostname").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestMethod").indexed(true);
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  final private static int DEBUG_OUTPUT_LEVEL = 4;

  public EmbeddedConfiguration createDefaultConfiguration() {
    EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
    configuration.common().reflectWith(new JdkReflector(this.getClass().getClassLoader()));
    configuration.common().add(new TransparentPersistenceSupport());
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestId").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestOrigin").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("hostname").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestMethod").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("responseCode").indexed(true);
View Full Code Here

Examples of com.db4o.config.EmbeddedConfiguration.common()

  public EmbeddedConfiguration createDefaultConfiguration() {
    EmbeddedConfiguration configuration = Db4oEmbedded.newConfiguration();
    configuration.common().reflectWith(new JdkReflector(this.getClass().getClassLoader()));
    configuration.common().add(new TransparentPersistenceSupport());
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestId").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestOrigin").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("hostname").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("requestMethod").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("responseCode").indexed(true);
    configuration.common().objectClass(RequestLogRecord.class).objectField("responseLength").indexed(true);
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.