Interface Neo4jPersistentPropertyConverter<T>
- Type Parameters:
T
- The type of the property to convert (the type of the actual attribute).
- All Known Implementing Classes:
ConvertWith.UnsetConverter
@API(status=STABLE,
since="6.0")
public interface Neo4jPersistentPropertyConverter<T>
This interface represents a pair of methods capable of converting values of type
T
to and from values
.- Since:
- 6.0
- Author:
- Michael J. Simons
-
Method Summary
-
Method Details
-
write
- Parameters:
source
- The value to store. We might pass null, if your converter is not able to handle that, this is ok, we do handlenull pointer exceptions
- Returns:
- The converted value, never null. To represent null, use
Values.NULL
-
read
- Parameters:
source
- The value to read, never null orValues.NULL
- Returns:
- The converted value, maybe null if
source
was equals toValues.NULL
.
-