Interface for defining custom datastore types beyond the simple and association types supported out of the box.
- The target type to be marshalled - The native database type - The return type of the query| 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(MappingContext context)Whether the marshaller supports the given datastore type |
boolean |
supports(Datastore datastore)@deprecated Use supports(MappingContext) instead |
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
context - The context typeConverts a value to its native form
property - The property being convertedvalue - The valuenativeTarget - The nativeTarget