All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.hubspot.rosetta.jdbi.BindWithRosetta Maven / Gradle / Ivy

There is a newer version: 3.12.2
Show newest version
package com.hubspot.rosetta.jdbi;

import java.lang.annotation.Annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.hubspot.rosetta.jdbi.BindWithRosetta.RosettaBinderFactory;
import org.skife.jdbi.v2.sqlobject.Binder;
import org.skife.jdbi.v2.sqlobject.BinderFactory;
import org.skife.jdbi.v2.sqlobject.BindingAnnotation;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.PARAMETER})
@BindingAnnotation(RosettaBinderFactory.class)
public @interface BindWithRosetta {
  String value() default "";

  public static class RosettaBinderFactory implements BinderFactory {

    @Override
    public Binder build(Annotation annotation) {
      return RosettaJdbiBinder.INSTANCE;
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy