Class EnumValueArgumentFactory

  • All Implemented Interfaces:
    org.skife.jdbi.v2.tweak.ArgumentFactory<net.morimekta.providence.PEnumValue>

    public class EnumValueArgumentFactory
    extends java.lang.Object
    implements org.skife.jdbi.v2.tweak.ArgumentFactory<net.morimekta.providence.PEnumValue>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accepts​(java.lang.Class<?> expectedType, java.lang.Object value, org.skife.jdbi.v2.StatementContext ctx)  
      org.skife.jdbi.v2.tweak.Argument build​(java.lang.Class<?> expectedType, net.morimekta.providence.PEnumValue value, org.skife.jdbi.v2.StatementContext ctx)  
      • Methods inherited from class java.lang.Object

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

      • EnumValueArgumentFactory

        public EnumValueArgumentFactory()
      • EnumValueArgumentFactory

        public EnumValueArgumentFactory​(java.lang.Class<?> klass)
    • Method Detail

      • accepts

        public boolean accepts​(java.lang.Class<?> expectedType,
                               java.lang.Object value,
                               org.skife.jdbi.v2.StatementContext ctx)
        Specified by:
        accepts in interface org.skife.jdbi.v2.tweak.ArgumentFactory<net.morimekta.providence.PEnumValue>
      • build

        public org.skife.jdbi.v2.tweak.Argument build​(java.lang.Class<?> expectedType,
                                                      net.morimekta.providence.PEnumValue value,
                                                      org.skife.jdbi.v2.StatementContext ctx)
        Specified by:
        build in interface org.skife.jdbi.v2.tweak.ArgumentFactory<net.morimekta.providence.PEnumValue>