@UseStringTemplate3StatementLocator() @RegisterContainerMapper(QueryKeys.QueryKeysContainerFactory.class) public interface QueryKeys
@UseStringTemplate3StatementLocator public abstract class PostgresHistoryJDBI extends AbstractHistoryJDBI {
@UseStringTemplate3StatementLocator public abstract class MySQLHistoryJDBI extends AbstractHistoryJDBI {
@UseStringTemplate3StatementLocator() public interface TimelineAggregatorSqlDao extends Transactional<TimelineAggregatorSqlDao> { @SqlUpdate void makeTimelineChunkValid(@Bind("chunkId") final long chunkId, @InternalTenantContextBinder final InternalCallContext context); @SqlUpdate void makeTimelineChunksInvalid(@BindIn("chunkIds") final List<Long> chunkIds, @InternalTenantContextBinder final InternalCallContext context); @SqlUpdate void deleteTimelineChunks(@BindIn("chunkIds") final List<Long> chunkIds, @InternalTenantContextBinder final InternalCallContext context); }
@UseStringTemplate3StatementLocator() public interface RolledUpUsageSqlDao { @SqlUpdate public void create(@BindBean RolledUpUsageModelDao rolledUpUsage, @InternalTenantContextBinder final InternalCallContext context); @SqlQuery public RolledUpUsageModelDao getUsageForSubscription(@Bind("subscriptionId") final UUID subscriptionId, @InternalTenantContextBinder final InternalTenantContext context); }
@UseStringTemplate3StatementLocator private interface SomethingByIterableHandleThrow { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn(value = "ids", onEmpty = THROW) Iterable<Integer> ids); }
@UseStringTemplate3StatementLocator(value = "/org/skife/jdbi/v2/sqlobject/stringtemplate/Kombucha.sql.stg", cacheable = true) public interface Kombucha { @SqlQuery String getIngredients(); }
@UseStringTemplate3StatementLocator private interface SomethingByIterableHandleDefault { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn(value = "ids", onEmpty = VOID) Iterable<Integer> ids); }
@UseStringTemplate3StatementLocator static interface HoneyBadger { @SqlUpdate("insert into <table> (id, name) values (:id, :name)") public void insert(@Define("table") String table, @BindBean Something s); @SqlQuery("select id, name from <table> where id = :id") public Something findById(@Define("table") String table, @Bind("id") Long id); }
@UseStringTemplate3StatementLocator("/org/skife/jdbi/v2/sqlobject/stringtemplate/Kombucha.sql.stg") public interface Kombucha { @SqlQuery String getIngredients(); }
@UseStringTemplate3StatementLocator("/org/skife/jdbi/v2/sqlobject/stringtemplate/SuperDrink.sql.stg") public interface SuperDrink { }
@UseStringTemplate3StatementLocator private interface SomethingByVarargsHandleDefault { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn("ids") int... ids); }
@UseStringTemplate3StatementLocator private interface SomethingByArrayHandleVoid { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn(value = "ids", onEmpty = VOID) int[] ids); }
@UseStringTemplate3StatementLocator private interface SomethingByArrayHandleThrow { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn(value = "ids", onEmpty = THROW) int[] ids); }
@UseStringTemplate3StatementLocator private interface SomethingByIteratorHandleDefault { @SqlQuery("select id, name from something where id in (<ids>)") List<Something> get(@BindIn("ids") Iterator<Integer> ids); } }
@UseStringTemplate3StatementLocator private interface SomethingByIterableHandleNull { @SqlQuery("select id, name from something where name in (<names>)") List<Something> get(@BindIn(value = "names", onEmpty = NULL) Iterable<Object> ids); }
@UseStringTemplate3StatementLocator private interface SomethingByIterableHandleVoid { @SqlQuery("select id, name from something where id in (<ids>);") List<Something> get(@BindIn(value = "ids", onEmpty = VOID) Iterable<Object> ids); }
@UseStringTemplate3StatementLocator private interface SomethingByIterableHandleNull { @SqlQuery("select id, name from something where name in (<names>)") List<Something> get(@BindIn(value = "names", onEmpty = NULL) Iterable<Object> ids); } }
/** * @version $Id: 3c846f75122b26a9f1dd1e691fcc5911e1ee545d $ */ @RegisterMapper(PaymentOperationMapper.class) @RegisterArgumentFactory({ MapAsJsonStringArgumentFactory.class, PaymentOperationResultArgumentFactory.class }) @UseStringTemplate3StatementLocator public abstract class PaymentOperationDAO implements Transactional<PaymentOperationDAO> { @SqlUpdate public abstract void createPaymentOperation(@BindBean("operation") PaymentOperation operation); @SqlQuery public abstract List<PaymentOperation> findAllForOrderId(@Bind("orderId") UUID order); }
@UseStringTemplate3StatementLocator @RegisterContainerMapper(ImmutableSetContainerFactory.class) public static interface DAO { @SqlQuery public ImmutableSet<String> findIdsForNames(@BindIn("names") List<Integer> names); }