Interface PersistentPropertyCharacteristics
@API(status=STABLE,
since="6.3.7")
public interface PersistentPropertyCharacteristics
The characteristics of a
Neo4jPersistentProperty can diverge from what is by
default derived from the annotated classes. Diverging characteristics are requested by
the Neo4jMappingContext prior to creating a persistent property. Additional
providers of characteristics may be registered with the mapping context.- Since:
- 6.3.7
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptiondefault @Nullable BooleanReturn true to mark a property as read only.default @Nullable BooleanReturn true to mark a property as transient.Treats the property to which the instance is applied as read only.Treats the property to which the instance is applied as transient.Default characteristics.
-
Method Details
-
useDefaults
Default characteristics.- Returns:
- characteristics applying the defaults
-
treatAsTransient
Treats the property to which the instance is applied as transient.- Returns:
- characteristics to treat a property as transient
-
treatAsReadOnly
Treats the property to which the instance is applied as read only.- Returns:
- characteristics to treat a property as read only
-
isTransient
Return true to mark a property as transient.- Returns:
- null to leave the defaults, true or false otherwise
-
isReadOnly
Return true to mark a property as read only.- Returns:
- null to leave the defaults, true or false otherwise
-