Class PersistentPropertyPath

  • Direct Known Subclasses:
    PersistentAssociationPath

    public class PersistentPropertyPath
    extends java.lang.Object
    The property path representation.
    Since:
    2.4.0
    • Constructor Detail

      • PersistentPropertyPath

        public PersistentPropertyPath​(java.util.List<Association> associations,
                                      @NonNull
                                      PersistentProperty property)
        Default constructor.
        Parameters:
        associations - The associations
        property - The property
      • PersistentPropertyPath

        public PersistentPropertyPath​(java.util.List<Association> associations,
                                      @NonNull
                                      PersistentProperty property,
                                      @Nullable
                                      java.lang.String path)
        Default constructor.
        Parameters:
        associations - The associations
        property - The property
        path - The path
    • Method Detail

      • setPropertyValue

        public java.lang.Object setPropertyValue​(java.lang.Object bean,
                                                 java.lang.Object value)
        Sets property path value. (Only possible for runtime properties)
        Parameters:
        bean - The root bean
        value - The value
        Returns:
        The root bean - possibly modified
      • getPropertyValue

        public java.lang.Object getPropertyValue​(java.lang.Object bean)
        Gets property path value. (Only possible for runtime properties)
        Parameters:
        bean - The root bean
        Returns:
        The value
      • getAssociations

        @NonNull
        public java.util.List<Association> getAssociations()
        Returns:
        The associations
      • getPath

        @NonNull
        public java.lang.String getPath()
        Returns:
        The path
      • getArrayPath

        @NonNull
        public java.lang.String[] getArrayPath()
        Returns:
        The array path
      • findPropertyOwner

        public java.util.Optional<PersistentEntity> findPropertyOwner()
        Find the owner of the possible embedded property.
        Returns:
        the optional owner
      • getNamingStrategy

        public NamingStrategy getNamingStrategy()
        Get naming strategy for the property.
        Returns:
        the naming strategy
      • findNamingStrategy

        public java.util.Optional<NamingStrategy> findNamingStrategy()
        Finds naming strategy for the property.
        Returns:
        the naming strategy