X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=runtime%2Forg.argeo.slc.support.jcr%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fjcr%2FSlcJcrUtils.java;h=fcd850aaa9ae76e991e82ade625faf9e5183e26d;hb=86c47402780f41526382267ff1597d2f3a0d0dd7;hp=11a5ca28977e65fb171ae5aa2e12a83ec0b6d795;hpb=cb9c3adf8b024d64da158fbc76f8874629f377ed;p=gpl%2Fargeo-slc.git diff --git a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/SlcJcrUtils.java b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/SlcJcrUtils.java index 11a5ca289..fcd850aaa 100644 --- a/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/SlcJcrUtils.java +++ b/runtime/org.argeo.slc.support.jcr/src/main/java/org/argeo/slc/jcr/SlcJcrUtils.java @@ -88,17 +88,17 @@ public class SlcJcrUtils { ((CharSequence) value).toString()); try { - if (type.equals(PrimitiveUtils.TYPE_STRING)) + if (type.equals(PrimitiveAccessor.TYPE_STRING)) node.setProperty(propertyName, value.toString()); - else if (type.equals(PrimitiveUtils.TYPE_INTEGER)) + else if (type.equals(PrimitiveAccessor.TYPE_INTEGER)) node.setProperty(propertyName, (long) ((Integer) value)); - else if (type.equals(PrimitiveUtils.TYPE_LONG)) + else if (type.equals(PrimitiveAccessor.TYPE_LONG)) node.setProperty(propertyName, ((Long) value)); - else if (type.equals(PrimitiveUtils.TYPE_FLOAT)) + else if (type.equals(PrimitiveAccessor.TYPE_FLOAT)) node.setProperty(propertyName, (double) ((Float) value)); - else if (type.equals(PrimitiveUtils.TYPE_DOUBLE)) + else if (type.equals(PrimitiveAccessor.TYPE_DOUBLE)) node.setProperty(propertyName, ((Double) value)); - else if (type.equals(PrimitiveUtils.TYPE_BOOLEAN)) + else if (type.equals(PrimitiveAccessor.TYPE_BOOLEAN)) node.setProperty(propertyName, ((Boolean) value)); else throw new SlcException("Unsupported type " + type);