Class SqlObjectFactory


  • public final class SqlObjectFactory
    extends java.lang.Object
    Constructs JDBI sql object proxy. Have to use JDBI package to access package-private apis.
    Since:
    4.12.2016
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> T instance​(java.lang.Class<T> cls, org.skife.jdbi.v2.sqlobject.HandleDing ding)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • instance

        public static <T> T instance​(java.lang.Class<T> cls,
                                     org.skife.jdbi.v2.sqlobject.HandleDing ding)
        Type Parameters:
        T - type of provided class
        Parameters:
        cls - class to create proxy for
        ding - custom ding to correctly participate in transaction
        Returns:
        JDBI sql object proxy