Interface for defining custom datastore types beyond the simple and association types supported out of the box.
| Type | Name and description |
|---|---|
java.lang.Class<T> |
getTargetType()@return The target Java type |
Q |
query(PersistentProperty property, PropertyCriterion criterion, Q nativeQuery)Populates a query |
T |
read(PersistentProperty property, N source)Converts a value from its native form |
boolean |
supports(Datastore datastore)Whether the marshaller supports the given datastore type |
java.lang.Object |
write(PersistentProperty property, T value, N nativeTarget)Converts a value to its native form |
Populates a query
property - The property being convertedcriterion - The criterionnativeQuery - The nativeQueryConverts a value from its native form
property - The property being convertedsource - The native formWhether the marshaller supports the given datastore type
datastore - The datastore typeConverts a value to its native form
property - The property being convertedvalue - The valuenativeTarget - The nativeTarget