Package org.jdbi.v3.sqlobject.config
Annotation Type RegisterConstructorMapper
@Retention(RUNTIME)
@Target({TYPE,METHOD})
@Repeatable(RegisterConstructorMappers.class)
public @interface RegisterConstructorMapper
Registers a constructor mapper factory for the given type(s).
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionColumn name prefix for the mapped type.Class
<?> If specified, find a static factory method in the given class to instantiate the mapped type.
-
Element Details
-
value
Class<?> valueThe mapped type.- Returns:
- the mapped type.
-
prefix
String prefixColumn name prefix for the mapped type. If omitted, defaults to no prefix.- Returns:
- Column name prefix for the mapped type.
- Default:
""
-
usingStaticMethodIn
Class<?> usingStaticMethodInIf specified, find a static factory method in the given class to instantiate the mapped type.- Returns:
- The type to inspect for a static factory method
- Default:
void.class
-