Class Utils

java.lang.Object
org.neo4j.ogm.session.Utils

public class Utils extends Object
Author:
Vince Bickers, Luanne Misquitta, Michael J. Simons
  • Constructor Details

    • Utils

      public Utils()
  • Method Details

    • coerceTypes

      public static Object coerceTypes(Class clazz, Object value)
      Coerce numeric types when mapping properties from nodes to entities. This deals with numeric types - Longs to ints, Doubles to floats, Integers to bytes.
      Parameters:
      clazz - the entity field type
      value - the property value
      Returns:
      converted value