Class Neo4JUtils


  • public class Neo4JUtils
    extends Object
    Neo4J specific utility methods
    • Constructor Detail

      • Neo4JUtils

        public Neo4JUtils()
    • Method Detail

      • entityToType

        public List<String> entityToType​(org.neo4j.graphdb.Entity entity)
        Try to extract type from provided Node or Relationship
        Parameters:
        entity - to lookup transponder type from
        Returns:
        set of types candidates
      • isSupportedPropertyClass

        public boolean isSupportedPropertyClass​(Class<?> valueClass)
        Check whether provided class of value can be stored as property of Node or Relationship
        Parameters:
        valueClass - class of a value to check
        Returns:
        true if value can be stored as property
      • getExpectedEntityClass

        public Class<? extends org.neo4j.graphdb.Entity> getExpectedEntityClass​(Class<?> entity)
        Check whether provided entity represents Node or Relationship
        Parameters:
        entity - class to check
        Returns:
        corresponding Class ( Node or Relationship ) or null