All Implemented Interfaces:
javax.persistence.criteria.Expression<X>, javax.persistence.criteria.FetchParent<X,X>, javax.persistence.criteria.From<X,X>, javax.persistence.criteria.Path<X>, javax.persistence.criteria.Root<X>, javax.persistence.criteria.Selection<X>, javax.persistence.TupleElement<X>, VExpression<X>, VFrom<X,X>, VPath<X>

public class RootImpl<X> extends FromImpl<X,X> implements javax.persistence.criteria.Root<X>
  • Field Details

    • javaType

      protected Class<X> javaType
    • entityType

      protected javax.persistence.metamodel.EntityType<X> entityType
  • Constructor Details

    • RootImpl

      public RootImpl(Class<X> javaType)
    • RootImpl

      public RootImpl(javax.persistence.metamodel.EntityType<X> entityType)
    • RootImpl

      public RootImpl(Class<X> root, javax.persistence.metamodel.EntityType<X> entityType)
  • Method Details

    • getJavaType

      public Class<? extends X> getJavaType()
      Specified by:
      getJavaType in interface javax.persistence.TupleElement<X>
      Overrides:
      getJavaType in class ExpressionBase<X>
    • getModel

      public javax.persistence.metamodel.EntityType<X> getModel()
      Specified by:
      getModel in interface javax.persistence.criteria.Path<X>
      Specified by:
      getModel in interface javax.persistence.criteria.Root<X>
      Overrides:
      getModel in class PathImpl<X>
    • getParentPath

      public javax.persistence.criteria.Path<?> getParentPath()
      Specified by:
      getParentPath in interface javax.persistence.criteria.Path<X>
      Overrides:
      getParentPath in class PathImpl<X>
    • toString

      public String toString()
      Overrides:
      toString in class PathImpl<X>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getReachingAttributeName

      public String getReachingAttributeName()
      Description copied from class: PathImpl
      The attribute name by with this instance of path was reached. null for the root of a path
      Specified by:
      getReachingAttributeName in interface VPath<X>
      Overrides:
      getReachingAttributeName in class PathImpl<X>
    • accept

      public <T> T accept(PathVisitor<T> visitor)
      Specified by:
      accept in interface VPath<X>
      Overrides:
      accept in class PathImpl<X>
    • accept

      public <T> T accept(ExpressionVisitor<T> visitor)
      Specified by:
      accept in interface VExpression<X>
      Overrides:
      accept in class PathImpl<X>