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

    Required Elements
    Modifier and Type
    Required Element
    Description
    The argument type which is compatible with PreparedStatement.setObject(int, Object).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    SQL type constant from Types.
  • Element Details

    • value

      Class<?> value
      The argument type which is compatible with PreparedStatement.setObject(int, Object).
      Returns:
      the argument type
    • sqlType

      int sqlType
      SQL type constant from Types. If omitted, defaults to not setting a type.
      Returns:
      SQL type constant from Types.
      Default:
      -2147483648