ENTITY
- the type of object this runner supportsBUILDER
- the type of object that can construct new ENTITY
instancespublic class SqlRunner<ENTITY,BUILDER> extends Object
Statement
s,
executing SQL, and parsing ResultSet
s.
Most users of hrorm will have no need to directly use this.
Modifier | Constructor and Description |
---|---|
|
SqlRunner(Connection connection,
KeylessDaoDescriptor<ENTITY,BUILDER> daoDescriptor) |
protected |
SqlRunner(Connection connection,
List<Column<ENTITY,BUILDER>> allColumns) |
protected SqlRunner(Connection connection, List<Column<ENTITY,BUILDER>> allColumns)
public SqlRunner(Connection connection, KeylessDaoDescriptor<ENTITY,BUILDER> daoDescriptor)
public List<BUILDER> select(String sql, Supplier<BUILDER> supplier, List<ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors)
public List<BUILDER> selectByColumns(String sql, Supplier<BUILDER> supplier, ColumnSelection<ENTITY,BUILDER> columnSelection, List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors, ENTITY item)
public List<BUILDER> selectWhere(String sql, Supplier<BUILDER> supplier, List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors, Where where)
public <T,X> T foldingSelect(String sql, StatementPopulator statementPopulator, Supplier<BUILDER> supplier, List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors, Function<BUILDER,X> buildFunction, T identity, BiFunction<T,X,T> accumulator)
public BigDecimal runBigDecimalFunction(String sql, Where where)
Copyright © 2019. All rights reserved.