Package io.micronaut.data.model
Class PersistentPropertyPath
java.lang.Object
io.micronaut.data.model.PersistentPropertyPath
- Direct Known Subclasses:
- PersistentAssociationPath
The property path representation.
- Since:
- 2.4.0
- Author:
- Denis Stepanov
- 
Constructor SummaryConstructorsConstructorDescriptionPersistentPropertyPath(List<Association> associations, @NonNull PersistentProperty property) Default constructor.PersistentPropertyPath(List<Association> associations, @NonNull PersistentProperty property, @Nullable String path) Default constructor.
- 
Method SummaryModifier and TypeMethodDescriptionFinds naming strategy for the property.Find the owner of the possible embedded property.@NonNull String[]@NonNull List<Association>Get naming strategy for the property.@NonNull StringgetPath()@NonNull PersistentPropertygetPropertyValue(Object bean) Gets property path value.static PersistentPropertyPathof(List<Association> associations, @NonNull PersistentProperty property) CreatesPersistentPropertyPathorPersistentAssociationPath.static PersistentPropertyPathof(List<Association> associations, @NonNull PersistentProperty property, @Nullable String path) CreatesPersistentPropertyPathorPersistentAssociationPath.setPropertyValue(Object bean, Object value) Sets property path value.
- 
Constructor Details- 
PersistentPropertyPathpublic PersistentPropertyPath(List<Association> associations, @NonNull @NonNull PersistentProperty property) Default constructor.- Parameters:
- associations- The associations
- property- The property
 
- 
PersistentPropertyPathpublic PersistentPropertyPath(List<Association> associations, @NonNull @NonNull PersistentProperty property, @Nullable @Nullable String path) Default constructor.- Parameters:
- associations- The associations
- property- The property
- path- The path
 
 
- 
- 
Method Details- 
ofpublic static PersistentPropertyPath of(List<Association> associations, @NonNull @NonNull PersistentProperty property) CreatesPersistentPropertyPathorPersistentAssociationPath.- Parameters:
- associations- The associations
- property- The property
- Returns:
- new instance of PersistentPropertyPathorPersistentAssociationPath
 
- 
ofpublic static PersistentPropertyPath of(List<Association> associations, @NonNull @NonNull PersistentProperty property, @Nullable @Nullable String path) CreatesPersistentPropertyPathorPersistentAssociationPath.- Parameters:
- associations- The associations
- property- The property
- path- The path
- Returns:
- new instance of PersistentPropertyPathorPersistentAssociationPath
 
- 
setPropertyValueSets property path value. (Only possible for runtime properties)- Parameters:
- bean- The root bean
- value- The value
- Returns:
- The root bean - possibly modified
 
- 
getPropertyValueGets property path value. (Only possible for runtime properties)- Parameters:
- bean- The root bean
- Returns:
- The value
 
- 
getAssociations- Returns:
- The associations
 
- 
getProperty- Returns:
- The property
 
- 
getPath- Returns:
- The path
 
- 
getArrayPath- Returns:
- The array path
 
- 
findPropertyOwnerFind the owner of the possible embedded property.- Returns:
- the optional owner
 
- 
getNamingStrategyGet naming strategy for the property.- Returns:
- the naming strategy
 
- 
findNamingStrategyFinds naming strategy for the property.- Returns:
- the naming strategy
 
 
-