Class CascadePropertySelection

java.lang.Object
org.hibernate.cascade.spi.CascadePropertySelection
All Implemented Interfaces:
Serializable

@Internal public final class CascadePropertySelection extends Object implements Serializable

Immutable, mapping-ordered selection of entity property indexes for one exact cascade route.

A selection only removes properties whose irrelevance follows from stable mapping and built-in action facts. Runtime lazy state, association state, and orphan state remain decisions of the cascade walker.

See Also:
  • Method Details

    • none

      public static CascadePropertySelection none()
      Selects no mapped properties.
    • all

      public static CascadePropertySelection all()
      Selects every mapped property in its ordinary metadata order.
    • determine

      public static CascadePropertySelection determine(Type[] propertyTypes, CascadeStyle[] cascadeStyles, CascadingAction<?> action)
      Builds the minimal safe selection for the given built-in action.
    • getKind

      public PropertySelectionKind getKind()
    • getSelectedPropertyCount

      public int getSelectedPropertyCount()
      The number of indexes available for a SELECTED selection.
    • getSelectedProperty

      public int getSelectedProperty(int selectionPosition)
      Returns a selected property index by its mapping-order position.