1 package org.davidmoten.rx.jdbc.annotations; 2 3 import static java.lang.annotation.ElementType.METHOD; 4 5 import java.lang.annotation.Retention; 6 import java.lang.annotation.RetentionPolicy; 7 import java.lang.annotation.Target; 8 9 @Target({ METHOD }) 10 @Retention(RetentionPolicy.RUNTIME) 11 public @interface Index { 12 /** 13 * 1 based index corresponding the index in a 14 * <code>ResultSet.getObject(index)</code> call. 15 * 16 * @return the 1 based index that the annotated method corresponds to in the 17 * ResultSet 18 */ 19 int value(); 20 }