Class PathMetadataFactory

java.lang.Object
com.querydsl.core.types.PathMetadataFactory

public final class PathMetadataFactory extends Object
PathMetadataFactory is a factory class for Path construction
Author:
tiwe
  • Method Details

    • forArrayAccess

      public static PathMetadata forArrayAccess(Path<?> parent, Expression<Integer> index)
      Create a new PathMetadata instance for indexed array access
      Parameters:
      parent - parent path
      index - index of element
      Returns:
      array access path
    • forArrayAccess

      public static PathMetadata forArrayAccess(Path<?> parent, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int index)
      Create a new PathMetadata instance for indexed array access
      Parameters:
      parent - parent path
      index - index of element
      Returns:
      array access path
    • forCollectionAny

      public static PathMetadata forCollectionAny(Path<?> parent)
      Create a new PathMetadata instance for collection any access
      Parameters:
      parent - parent path
      Returns:
      collection any path
    • forDelegate

      public static <T> PathMetadata forDelegate(Path<T> delegate)
      Create a new PathMetadata instance for delegate access
      Parameters:
      delegate - delegate path
      Returns:
      wrapped path
    • forListAccess

      public static PathMetadata forListAccess(Path<?> parent, Expression<Integer> index)
      Create a new PathMetadata instance for indexed list access
      Parameters:
      parent - parent path
      index - index of element
      Returns:
      list access path
    • forListAccess

      public static PathMetadata forListAccess(Path<?> parent, @org.jetbrains.annotations.Range(from=0L, to=2147483647L) int index)
      Create a new PathMetadata instance for indexed list access
      Parameters:
      parent - parent path
      index - index of element
      Returns:
      list access path
    • forMapAccess

      public static <KT> PathMetadata forMapAccess(Path<?> parent, Expression<KT> key)
      Create a new PathMetadata instance for key based map access
      Parameters:
      parent - parent path
      key - key for map access
      Returns:
      map access path
    • forMapAccess

      public static <KT> PathMetadata forMapAccess(Path<?> parent, KT key)
      Create a new PathMetadata instance for for key based map access
      Parameters:
      parent - parent path
      key - key for map access
      Returns:
      map access path
    • forProperty

      public static PathMetadata forProperty(Path<?> parent, String property)
      Create a new PathMetadata instance for property access
      Parameters:
      parent - parent path
      property - property name
      Returns:
      property path
    • forVariable

      public static PathMetadata forVariable(String variable)
      Create a new PathMetadata instance for a variable
      Parameters:
      variable - variable name
      Returns:
      variable path