jkbbwr
12/30/2015, 1:44 PM@BindingAnnotation(BindBytes.BytesBinderFactory.class)
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER})
public @interface BindBytes {
String value();
class BytesBinderFactory implements BinderFactory {
public Binder build(final Annotation annotation) {
return new Binder<BindBytes, byte[]>() {
public void bind(SQLStatement q, BindBytes bind, byte[] arg) {
String name = ((BindBytes) annotation).value();
q.bind(name, UtilKt.hexify(arg));
}
};
}
}
}