|
|
|
|
@ -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 |
|
|
|
|
|