Browse Source

Polishing.

Fix Javadoc issues.

See #2159
issue/year-as-integer
Mark Paluch 1 month ago
parent
commit
1ab242d404
No known key found for this signature in database
GPG Key ID: 55BC6374BAA9D973
  1. 19
      spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/Query.java
  2. 3
      spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/support/DefaultRowMapperFactory.java

19
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/query/Query.java

@ -26,25 +26,22 @@ import org.springframework.jdbc.core.ResultSetExtractor;
import org.springframework.jdbc.core.RowMapper; import org.springframework.jdbc.core.RowMapper;
/** /**
* <p>
* Annotation to provide SQL statements that will get used for executing the method. The SQL statement may contain named * Annotation to provide SQL statements that will get used for executing the method. The SQL statement may contain named
* parameters as supported by {@link org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate}. Those * parameters as supported by {@link org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate}. Those
* parameters will get bound to the arguments of the annotated method. * parameters will get bound to the arguments of the annotated method.
* </p><p> * <p>
* You can also specify the way to extract data from {@link java.sql.ResultSet}. There are 4 attribute of this * You can also specify the way to extract data from {@link java.sql.ResultSet}. There are 4 attribute of this
* annotation you can set to do that: * annotation you can set to do that:
* <p> * <p>
* <ol> * <ol>
* <li> {@link #resultSetExtractorRef()} * <li>{@link #resultSetExtractorRef()}</li>
* </li><li> {@link #resultSetExtractorClass()} * <li>{@link #resultSetExtractorClass()}</li>
* </li><li> {@link #rowMapperRef()} * <li>{@link #rowMapperRef()}</li>
* </li><li> {@link #rowMapperClass()} * <li>{@link #rowMapperClass()}</li>
* </li> * </ol>
*</ol>
*
* The annotation attributes above are listed in their preference order, that is - the {@link #resultSetExtractorRef()}, * The annotation attributes above are listed in their preference order, that is - the {@link #resultSetExtractorRef()},
* has the highest privilege and, will suppress any other 3 attribute from above, and consequently {@link #rowMapperClass()} * has the highest privilege and, will suppress any other 3 attribute from above, and consequently
* has the lowest privilege and will be used if any of three above are not specified. * {@link #rowMapperClass()} has the lowest privilege and will be used if any of three above are not specified.
* *
* @author Jens Schauder * @author Jens Schauder
* @author Moises Cisneros * @author Moises Cisneros

3
spring-data-jdbc/src/main/java/org/springframework/data/jdbc/repository/support/DefaultRowMapperFactory.java

@ -30,8 +30,9 @@ import org.springframework.util.Assert;
* <p> * <p>
* This implementation is not capable of loading the {@link RowMapper} or {@link ResultSetExtractor} by reference via * This implementation is not capable of loading the {@link RowMapper} or {@link ResultSetExtractor} by reference via
* corresponding methods from {@link RowMapperFactory}. * corresponding methods from {@link RowMapperFactory}.
* <p>
* Implementation is thread-safe.
* *
* @implNote Public APIs of this class are thread-safe.
* @author Mikhail Polivakha * @author Mikhail Polivakha
* @since 4.0 * @since 4.0
*/ */

Loading…
Cancel
Save