public class PersistentPropertyPath
extends java.lang.Object
Constructor and Description |
---|
PersistentPropertyPath(java.util.List<Association> associations,
PersistentProperty property)
Default constructor.
|
PersistentPropertyPath(java.util.List<Association> associations,
PersistentProperty property,
java.lang.String path)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<PersistentEntity> |
findPropertyOwner()
Find the owner of the possible embedded property.
|
java.util.List<Association> |
getAssociations() |
NamingStrategy |
getNamingStrategy()
Get naming strategy for thpe property.
|
java.lang.String |
getPath() |
PersistentProperty |
getProperty() |
java.lang.Object |
getPropertyValue(java.lang.Object bean)
Gets property path value.
|
static PersistentPropertyPath |
of(java.util.List<Association> associations,
PersistentProperty property)
Creates
PersistentPropertyPath or PersistentAssociationPath . |
static PersistentPropertyPath |
of(java.util.List<Association> associations,
PersistentProperty property,
java.lang.String path)
Creates
PersistentPropertyPath or PersistentAssociationPath . |
java.lang.Object |
setPropertyValue(java.lang.Object bean,
java.lang.Object value)
Sets property path value.
|
public PersistentPropertyPath(java.util.List<Association> associations, @NonNull PersistentProperty property)
associations
- The associationsproperty
- The propertypublic PersistentPropertyPath(java.util.List<Association> associations, @NonNull PersistentProperty property, @Nullable java.lang.String path)
associations
- The associationsproperty
- The propertypath
- The pathpublic static PersistentPropertyPath of(java.util.List<Association> associations, @NonNull PersistentProperty property)
PersistentPropertyPath
or PersistentAssociationPath
.associations
- The associationsproperty
- The propertyPersistentPropertyPath
or PersistentAssociationPath
public static PersistentPropertyPath of(java.util.List<Association> associations, @NonNull PersistentProperty property, @Nullable java.lang.String path)
PersistentPropertyPath
or PersistentAssociationPath
.associations
- The associationsproperty
- The propertypath
- The pathPersistentPropertyPath
or PersistentAssociationPath
public java.lang.Object setPropertyValue(java.lang.Object bean, java.lang.Object value)
bean
- The root beanvalue
- The valuepublic java.lang.Object getPropertyValue(java.lang.Object bean)
bean
- The root bean@NonNull public java.util.List<Association> getAssociations()
@NonNull public PersistentProperty getProperty()
@NonNull public java.lang.String getPath()
public java.util.Optional<PersistentEntity> findPropertyOwner()
public NamingStrategy getNamingStrategy()