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