Class CascadePropertySelection
java.lang.Object
org.hibernate.cascade.spi.CascadePropertySelection
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionstatic CascadePropertySelectionall()Selects every mapped property in its ordinary metadata order.static CascadePropertySelectiondetermine(Type[] propertyTypes, CascadeStyle[] cascadeStyles, CascadingAction<?> action) Builds the minimal safe selection for the given built-in action.getKind()intgetSelectedProperty(int selectionPosition) Returns a selected property index by its mapping-order position.intThe number of indexes available for aSELECTEDselection.static CascadePropertySelectionnone()Selects no mapped properties.
-
Method Details
-
none
Selects no mapped properties. -
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
-
getSelectedPropertyCount
public int getSelectedPropertyCount()The number of indexes available for aSELECTEDselection. -
getSelectedProperty
public int getSelectedProperty(int selectionPosition) Returns a selected property index by its mapping-order position.
-