Class CustomColumnMapper.MappingResult
java.lang.Object
com.pyranid.CustomColumnMapper.MappingResult
- Enclosing interface:
CustomColumnMapper
Result of a custom column mapping attempt.
Use of(Object)
to indicate a successfully mapped value or fallback()
to indicate "didn't map; fall back to the registered ResultSetMapper
behavior".
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptionfallback()
Indicates that this mapper did not map a custom value and prefers to fall back to the behavior of the registeredResultSetMapper
.Indicates a successfully-mapped custom value.
-
Method Details
-
of
Indicates a successfully-mapped custom value.- Parameters:
value
- the custom value, may benull
- Returns:
- a result which indicates a successfully-mapped custom value
-
fallback
Indicates that this mapper did not map a custom value and prefers to fall back to the behavior of the registeredResultSetMapper
.- Returns:
- a result which indicates that this mapper did not map a custom value
-