public class GuavaOptionalJodaTimeArgumentFactory extends Object implements org.skife.jdbi.v2.tweak.ArgumentFactory<com.google.common.base.Optional<org.joda.time.DateTime>>
ArgumentFactory for Joda's DateTime arguments wrapped by Guava's Optional.| Constructor and Description |
|---|
GuavaOptionalJodaTimeArgumentFactory() |
GuavaOptionalJodaTimeArgumentFactory(Optional<TimeZone> timeZone) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(Class<?> expectedType,
Object value,
org.skife.jdbi.v2.StatementContext ctx) |
org.skife.jdbi.v2.tweak.Argument |
build(Class<?> expectedType,
com.google.common.base.Optional<org.joda.time.DateTime> value,
org.skife.jdbi.v2.StatementContext ctx) |
public GuavaOptionalJodaTimeArgumentFactory()
public boolean accepts(Class<?> expectedType, Object value, org.skife.jdbi.v2.StatementContext ctx)
accepts in interface org.skife.jdbi.v2.tweak.ArgumentFactory<com.google.common.base.Optional<org.joda.time.DateTime>>public org.skife.jdbi.v2.tweak.Argument build(Class<?> expectedType, com.google.common.base.Optional<org.joda.time.DateTime> value, org.skife.jdbi.v2.StatementContext ctx)
build in interface org.skife.jdbi.v2.tweak.ArgumentFactory<com.google.common.base.Optional<org.joda.time.DateTime>>Copyright © 2017. All rights reserved.