Enum Class LoadStrategy

java.lang.Object
java.lang.Enum<LoadStrategy>
org.neo4j.ogm.session.LoadStrategy
All Implemented Interfaces:
Serializable, Comparable<LoadStrategy>, Constable

public enum LoadStrategy extends Enum<LoadStrategy>
Author:
Frantisek Hartman
  • Enum Constant Details

    • PATH_LOAD_STRATEGY

      public static final LoadStrategy PATH_LOAD_STRATEGY
      Load strategy which fetches related nodes by querying all paths from matched nodes, resulting into pattern similar to MATCH p=(n)-[*0..n]-() RETURN p
    • SCHEMA_LOAD_STRATEGY

      public static final LoadStrategy SCHEMA_LOAD_STRATEGY
      Load strategy which uses nested list comprehensions to get related nodes based on the schema generated from entity classes NOTE: Does not support queries with unlimited depth
  • Method Details

    • values

      public static LoadStrategy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LoadStrategy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null