Examples of ObjectField


Examples of com.db4o.config.ObjectField

    return config;
  }

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

Examples of com.db4o.config.ObjectField

  }

  private void configureFeed(Configuration config)  {
    ObjectClass oc = config.objectClass(Feed.class);

    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.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$
   
    /* Cascade on update */
    oc.objectField("fAuthor").cascadeOnUpdate(true); //$NON-NLS-1$
View Full Code Here

Examples of com.db4o.config.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.ObjectField

  }

  private static void configureFeed(Configuration config) {
    ObjectClass oc = config.objectClass(Feed.class);

    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.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.ObjectField

  }

  private static void configureFeed(Configuration config) {
    ObjectClass oc = config.objectClass(Feed.class);

    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.esotericsoftware.kryo.serializers.ObjectField

        else if (fieldClass == float.class)
          cachedField = new ObjectFloatField(this);
        else if (fieldClass == double.class)
          cachedField = new ObjectDoubleField(this);
        else {
          cachedField = new ObjectField(this);
        }
      }  else   
        cachedField = new ObjectField(this);
      if (fieldGenerics != null)
        ((ObjectField)cachedField).generics = fieldGenerics;
      else {
        Class[] cachedFieldGenerics = FieldSerializerGenericsUtil.getGenerics(fieldGenericType, kryo);
        ((ObjectField)cachedField).generics = cachedFieldGenerics;
View Full Code Here

Examples of com.psddev.dari.db.ObjectField

            }

            for (Map.Entry<String, Object> entry : state.entrySet()) {
                String name = entry.getKey();
                Object value = entry.getValue();
                ObjectField field = state.getField(name);
                Object found = findEmbedded(value, id, field != null && field.isEmbedded());

                if (found != null) {
                    return found;
                }
            }
View Full Code Here

Examples of com.psddev.dari.db.ObjectField

                query.sortRelevant(100.0, "_label = ?", queryString);
                query.sortRelevant(10.0, "_label matches ?", queryString);
            }

        } else if (sort != null) {
            ObjectField sortField = selectedType != null ?
                    selectedType.getFieldGlobally(sort) :
                    Database.Static.getDefault().getEnvironment().getField(sort);

            if (sortField != null) {
                if (sortField.isMetric()) {
                    metricSort = true;
                }

                String sortName = selectedType != null ?
                        selectedType.getInternalName() + "/" + sort :
                        sort;

                if (ObjectField.TEXT_TYPE.equals(sortField.getInternalType())) {
                    query.sortAscending(sortName);

                } else {
                    query.sortDescending(sortName);
                }
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.