Package org.neo4j.ogm.session
Class Utils
java.lang.Object
org.neo4j.ogm.session.Utils
- Author:
- Vince Bickers, Luanne Misquitta, Michael J. Simons
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
coerceTypes
(Class clazz, Object value) Coerce numeric types when mapping properties from nodes to entities.
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
coerceTypes
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 typevalue
- the property value- Returns:
- converted value
-