Package org.springframework.data.neo4j.fieldaccess

Examples of org.springframework.data.neo4j.fieldaccess.PropertyConverter


    protected Object convertIfNecessary(Neo4jTemplate template, Object value, Neo4jPersistentProperty property) {
        if (property.isIndexedNumerically()) return new ValueContext(value).indexNumeric();
        if (property.isNeo4jPropertyType() && property.isNeo4jPropertyValue(value)) return value;

        PropertyConverter converter = new PropertyConverter(template.getConversionService(), property);
        return converter.serializeIfNotBuiltIn(value);
    }
View Full Code Here


        Assert.notNull(partInfo.getType());
        this.partInfo = partInfo;
        this.type = this.partInfo.getType();
        Neo4jPersistentProperty property = partInfo.getLeafProperty();
        if (!property.isNeo4jPropertyType()) {
            propertyConverter = new PropertyConverter(template.getConversionService(), property);
        }
    }
View Full Code Here

    }

    private Object getSerializedUniqueValue(Object entity, Neo4jPersistentProperty uniqueProperty) {
        final Object value = uniqueProperty.getValueFromEntity(entity, MappingPolicy.MAP_FIELD_DIRECT_POLICY);
        if (uniqueProperty.isSerializablePropertyField(conversionService))
            return new PropertyConverter(conversionService,uniqueProperty).serializeIfNotBuiltIn(value);
        return value;
    }
View Full Code Here

TOP

Related Classes of org.springframework.data.neo4j.fieldaccess.PropertyConverter

Copyright © 2018 www.massapicom. 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.