Examples of objectField()


Examples of com.db4o.config.ObjectClass.objectField()

    oc.objectField("fGuidValue").indexed(true); //$NON-NLS-1$
   
    oc.objectField("fAttachments").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fSource").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fLabel").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  private void configureFeed() {
    ObjectClass oc = Db4o.configure().objectClass(Feed.class);
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

   
    oc.objectField("fAttachments").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fSource").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fLabel").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  private void configureFeed() {
    ObjectClass oc = Db4o.configure().objectClass(Feed.class);
//    oc.maximumActivationDepth(1);
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

  private void configureFeed() {
    ObjectClass oc = Db4o.configure().objectClass(Feed.class);
//    oc.maximumActivationDepth(1);
//    oc.minimumActivationDepth(1);
   
    ObjectField linkText = oc.objectField("fLinkText"); //$NON-NLS-1$
    linkText.indexed(true);
    linkText.cascadeOnActivate(true);
   
    oc.objectField("fTitle").cascadeOnActivate(true); //$NON-NLS-1$
   
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

   
    ObjectField linkText = oc.objectField("fLinkText"); //$NON-NLS-1$
    linkText.indexed(true);
    linkText.cascadeOnActivate(true);
   
    oc.objectField("fTitle").cascadeOnActivate(true); //$NON-NLS-1$
   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fImage").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

    linkText.cascadeOnActivate(true);
   
    oc.objectField("fTitle").cascadeOnActivate(true); //$NON-NLS-1$
   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fImage").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
  }

View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

   
    oc.objectField("fTitle").cascadeOnActivate(true); //$NON-NLS-1$
   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fImage").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  /**
 
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

    oc.objectField("fTitle").cascadeOnActivate(true); //$NON-NLS-1$
   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fImage").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  /**
   * Shutdown the contributed Database.
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fImage").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
    oc.objectField("fCategories").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  /**
   * Shutdown the contributed Database.
   *
 
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

    return javaVendor != null && javaVendor.contains("IBM") && javaVersion != null && javaVersion.contains("1.6"); //$NON-NLS-1$ //$NON-NLS-2$
  }

  private static void configureAbstractEntity(Configuration config) {
    ObjectClass abstractEntityClass = config.objectClass(AbstractEntity.class);
    ObjectField idField = abstractEntityClass.objectField("fId"); //$NON-NLS-1$
    idField.indexed(true);
    idField.cascadeOnActivate(true);
    abstractEntityClass.objectField("fProperties").cascadeOnUpdate(true); //$NON-NLS-1$
  }
View Full Code Here

Examples of com.db4o.config.ObjectClass.objectField()

  private static void configureAbstractEntity(Configuration config) {
    ObjectClass abstractEntityClass = config.objectClass(AbstractEntity.class);
    ObjectField idField = abstractEntityClass.objectField("fId"); //$NON-NLS-1$
    idField.indexed(true);
    idField.cascadeOnActivate(true);
    abstractEntityClass.objectField("fProperties").cascadeOnUpdate(true); //$NON-NLS-1$
  }

  private static void configureFolder(Configuration config) {
    ObjectClass oc = config.objectClass(Folder.class);
    oc.objectField("fChildren").cascadeOnUpdate(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.