Package net.morimekta.providence.jdbi.v2
Class EnumValueArgumentFactory
- java.lang.Object
-
- net.morimekta.providence.jdbi.v2.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>
-
-
Constructor Summary
Constructors Constructor Description EnumValueArgumentFactory()EnumValueArgumentFactory(java.lang.Class<?> klass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccepts(java.lang.Class<?> expectedType, java.lang.Object value, org.skife.jdbi.v2.StatementContext ctx)org.skife.jdbi.v2.tweak.Argumentbuild(java.lang.Class<?> expectedType, net.morimekta.providence.PEnumValue value, org.skife.jdbi.v2.StatementContext ctx)
-
-
-
Method Detail
-
accepts
public boolean accepts(java.lang.Class<?> expectedType, java.lang.Object value, org.skife.jdbi.v2.StatementContext ctx)- Specified by:
acceptsin interfaceorg.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:
buildin interfaceorg.skife.jdbi.v2.tweak.ArgumentFactory<net.morimekta.providence.PEnumValue>
-
-