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; @@ -26,25 +26,22 @@ import org.springframework.jdbc.core.ResultSetExtractor;
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
* parameters as supported by {@link org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate}. Those
* 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
* annotation you can set to do that:
* <p>
* <ol>
* <li> {@link #resultSetExtractorRef()}
* </li><li> {@link #resultSetExtractorClass()}
* </li><li> {@link #rowMapperRef()}
* </li><li> {@link #rowMapperClass()}
* </li>
*</ol>
*
* <li>{@link #resultSetExtractorRef()}</li>
* <li>{@link #resultSetExtractorClass()}</li>
* <li>{@link #rowMapperRef()}</li>
* <li>{@link #rowMapperClass()}</li>
* </ol>
* 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 lowest privilege and will be used if any of three above are not specified.
* has the highest privilege and, will suppress any other 3 attribute from above, and consequently
* {@link #rowMapperClass()} has the lowest privilege and will be used if any of three above are not specified.
*
* @author Jens Schauder
* @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; @@ -30,8 +30,9 @@ import org.springframework.util.Assert;
* <p>
* This implementation is not capable of loading the {@link RowMapper} or {@link ResultSetExtractor} by reference via
* corresponding methods from {@link RowMapperFactory}.
* <p>
* Implementation is thread-safe.
*
* @implNote Public APIs of this class are thread-safe.
* @author Mikhail Polivakha
* @since 4.0
*/

Loading…
Cancel
Save