Package org.jdbi.v3.sqlobject.config
Annotation Type RegisterObjectArgumentFactory
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Repeatable(RegisterObjectArgumentFactories.class)
public @interface RegisterObjectArgumentFactory
Registers an argument factory for a type compatible with
PreparedStatement.setObject(int, Object)
.-
Required Element Summary
Modifier and TypeRequired ElementDescriptionClass
<?> The argument type which is compatible withPreparedStatement.setObject(int, Object)
. -
Optional Element Summary
-
Element Details
-
value
Class<?> valueThe argument type which is compatible withPreparedStatement.setObject(int, Object)
.- Returns:
- the argument type
-
sqlType
int sqlTypeSQL type constant fromTypes
. If omitted, defaults to not setting a type.- Returns:
- SQL type constant from
Types
.
- Default:
-2147483648
-