Package com.vercer.engine.persist

Examples of com.vercer.engine.persist.PropertyTranslator.typesafeToProperties()


    keyCache.cacheKeyReferenceForInstance(instance, encodeKeySpec.toObjectReference());
     
    // translate fields to properties - sets parent and id on key
    PropertyTranslator encoder = encoder(instance);
    Set<Property> properties = encoder.typesafeToProperties(instance, Path.EMPTY_PATH, indexed);
    if (properties == null)
    {
      throw new IllegalStateException("Could not translate instance: " + instance);
    }
View Full Code Here


          value = converters.convert(value, type);

          Path childPath = new Path.Builder(path).field(fieldToPartName(field)).build();

          PropertyTranslator translator = encoder(field, value);
          Set<Property> properties = translator.typesafeToProperties(value, childPath, indexed(field));
          if (properties == null)
          {
            throw new IllegalStateException("Could not translate value to properties: " + value);
          }
          merged.addAll(properties);
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.