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.
Constructor and Description |
---|
SqlRunner(Connection connection) |
SqlRunner(Connection connection,
KeylessDaoDescriptor<ENTITY,BUILDER> daoDescriptor) |
public SqlRunner(Connection connection)
public SqlRunner(Connection connection, KeylessDaoDescriptor<ENTITY,BUILDER> daoDescriptor)
public List<BUILDER> selectStandard(String sql, Supplier<BUILDER> supplier, List<ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors)
public List<BUILDER> selectByColumnsStandard(String sql, Supplier<BUILDER> supplier, ColumnSelection<ENTITY,BUILDER> columnSelection, List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors, ENTITY item)
public List<Envelope<BUILDER>> doSelection(SelectionInstruction selectionInstruction, Supplier<BUILDER> supplier, List<? extends ChildrenDescriptor<ENTITY,?,BUILDER,?>> childrenDescriptors, StatementPopulator statementPopulator)
public List<BUILDER> selectWhereStandard(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)
public <T> List<T> selectDistinct(String sql, Where where, Function<ResultSet,T> resultParser)
public long runSequenceNextValue(String sql)
Copyright © 2019. All rights reserved.