Class AbstractAttributeKey

java.lang.Object
org.hibernate.boot.model.source.spi.AbstractAttributeKey
Direct Known Subclasses:
AttributePath, AttributeRole

public abstract class AbstractAttributeKey extends Object
  • Constructor Details

    • AbstractAttributeKey

      protected AbstractAttributeKey()
      Constructor for the base AttributePath
    • AbstractAttributeKey

      protected AbstractAttributeKey(String base)
      Constructor for the base AttributeRole
    • AbstractAttributeKey

      protected AbstractAttributeKey(AbstractAttributeKey parent, String property)
  • Method Details

    • getDepth

      public int getDepth()
      How many "parts" are there to this path/role?
      Returns:
      The number of parts.
    • getDelimiter

      protected abstract char getDelimiter()
    • append

      public abstract AbstractAttributeKey append(String property)
      Creates a new AbstractAttributeKey by appending the passed part.
      Parameters:
      property - The part to append
      Returns:
      The new AbstractAttributeKey
    • getParent

      public AbstractAttributeKey getParent()
      Access to the parent part
      Returns:
      the parent part
    • getProperty

      public String getProperty()
      Access to the end path part.
      Returns:
      the end path part
    • getFullPath

      public String getFullPath()
      Access to the full path as a String
      Returns:
      The full path as a String
    • isRoot

      public boolean isRoot()
      Does this part represent a root.
      Returns:
      true if this part is a root.
    • isCollectionElement

      public boolean isCollectionElement()
      Does this part represent a collection-element reference?
      Returns:
      true if the current property is a collection element marker "{element}"
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object