Class MetaData

java.lang.Object
org.neo4j.ogm.metadata.MetaData

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

    • MetaData

      public MetaData(String... packages)
    • MetaData

      public MetaData(org.neo4j.ogm.driver.TypeSystem typeSystem, String... packages)
  • Method Details

    • getSchema

      public Schema getSchema()
    • classInfo

      public ClassInfo classInfo(String name)
      Finds the ClassInfo for the supplied partial class name or label. The supplied ClassInfo, if found can represent either a Class or an Interface
      Parameters:
      name - the simple class name or label for a class we want to find
      Returns:
      A ClassInfo matching the supplied name, or null if it doesn't exist
    • classInfo

      public ClassInfo classInfo(Class<?> clazz)
      Finds the ClassInfo for the supplied Class throgh the class' name.
      Parameters:
      clazz - the class whose classInfo we want to find
      Returns:
      A ClassInfo matching the supplied object's class, or null if it doesn't exist
    • classInfo

      public ClassInfo classInfo(Object object)
      Finds the ClassInfo for the supplied object by looking up its class name
      Parameters:
      object - the object whose classInfo we want to find
      Returns:
      A ClassInfo matching the supplied object's class, or null if it doesn't exist
    • resolve

      public ClassInfo resolve(String... taxa)
      Given an set of names (simple or fully-qualified) that are possibly within a type hierarchy, this function returns the base class from among them.
      Parameters:
      taxa - the taxa (simple class names or labels)
      Returns:
      The ClassInfo representing the base class among the taxa or null if it cannot be found
    • classInfoByLabelOrType

      public Set<ClassInfo> classInfoByLabelOrType(String name)
      Finds ClassInfos for the supplied partial class name or label.
      Parameters:
      name - the simple class name or label for a class we want to find
      Returns:
      A Set of ClassInfo matching the supplied name, or empty if it doesn't exist
    • isRelationshipEntity

      public boolean isRelationshipEntity(String className)
    • persistentEntities

      public Collection<ClassInfo> persistentEntities()
    • entityType

      public String entityType(String name)
    • getImplementingClassInfos

      public List<ClassInfo> getImplementingClassInfos(String interfaceName)
    • registerConversionCallback

      public void registerConversionCallback(ConversionCallback conversionCallback)