View Javadoc
1   package at.rseiler.spbee.core.annotation;
2   
3   import java.lang.annotation.Retention;
4   import java.lang.annotation.RetentionPolicy;
5   import java.lang.annotation.Target;
6   
7   import static java.lang.annotation.ElementType.FIELD;
8   import static java.lang.annotation.ElementType.METHOD;
9   
10  /**
11   * Indicates which row mapper should be used to map the result or the stored procedure.
12   * <ul>
13   * <li>
14   * Marks a class, which implements the org.springframework.jdbc.core.RowMapper interface, as possible row mapper.
15   * </li>
16   * <li>
17   * Marks a method in a {@link at.rseiler.spbee.core.annotation.Dao} to use the specified row mapper.
18   * </li>
19   * <li>
20   * Marks a field in a {@link at.rseiler.spbee.core.annotation.ResultSet} to use the specified row mapper.
21   * </li>
22   * </ul>
23   *
24   * @author Reinhard Seiler {@literal <rseiler.developer@gmail.com>}
25   */
26  @Target(value={METHOD, FIELD})
27  @Retention(RetentionPolicy.SOURCE)
28  public @interface RowMapper {
29  
30      /**
31       * Defines the class of the row mapper.
32       *
33       * @return the class of the row mapper
34       */
35      Class<?> value();
36  }