public abstract class Repository extends Object
| Constructor and Description |
|---|
Repository(Database database) |
| Modifier and Type | Method and Description |
|---|---|
protected <E> Batch<E> |
batch(String sql,
InsertMapper<E> im) |
protected Database |
database() |
protected DeleteBuilder |
delete(SqlTable table) |
protected int |
executeDelete(String sql,
PreparedStatementSetter pss) |
protected <E> void |
executeInsert(String sql,
InsertMapper<E> im,
E pojo) |
protected <E> void |
executeInsertAutoIncrement(String sql,
InsertMapperWithAutoIncrement<E> im,
E pojo) |
protected <T> T |
executeSelect(String sql,
PreparedStatementSetter pss,
ResultSetMapper<T> mapper) |
protected <T> Page<T> |
executeSelectPage(String countSql,
String sql,
ResultSetMapper<T> mapper,
Pageable pageable) |
protected <E> void |
executeUpdate(String sql,
UpdateMapper<E> um,
E pojo) |
protected InsertBuilder |
insert(SqlTable table,
com.google.common.collect.ImmutableList<SqlPrimaryKey> keys,
com.google.common.collect.ImmutableList<SqlSingleColumn> columns) |
protected SelectBuilder |
select(AggregateFunction aggregateFunction) |
protected SelectBuilder |
select(com.google.common.collect.ImmutableList<SqlColumn> columns) |
protected SelectBuilder |
select(SqlColumn... columns) |
protected <T> Stream<T> |
stream(String sql,
PreparedStatementSetter pss,
ResultSetMapper<T> mapper) |
protected UpdateBuilder |
update(SqlTable table,
com.google.common.collect.ImmutableList<SqlSingleColumn> columns,
com.google.common.collect.ImmutableList<SqlPrimaryKey> keys) |
public Repository(Database database)
protected Database database()
protected final SelectBuilder select(com.google.common.collect.ImmutableList<SqlColumn> columns)
protected final SelectBuilder select(SqlColumn... columns)
protected final SelectBuilder select(AggregateFunction aggregateFunction)
protected final InsertBuilder insert(SqlTable table, com.google.common.collect.ImmutableList<SqlPrimaryKey> keys, com.google.common.collect.ImmutableList<SqlSingleColumn> columns)
protected final UpdateBuilder update(SqlTable table, com.google.common.collect.ImmutableList<SqlSingleColumn> columns, com.google.common.collect.ImmutableList<SqlPrimaryKey> keys)
protected final DeleteBuilder delete(SqlTable table)
protected final <T> T executeSelect(String sql, PreparedStatementSetter pss, ResultSetMapper<T> mapper)
protected final <E> void executeInsert(String sql, InsertMapper<E> im, E pojo)
protected final <E> void executeInsertAutoIncrement(String sql, InsertMapperWithAutoIncrement<E> im, E pojo)
protected final <E> void executeUpdate(String sql, UpdateMapper<E> um, E pojo)
protected final int executeDelete(String sql, PreparedStatementSetter pss)
protected final <E> Batch<E> batch(String sql, InsertMapper<E> im)
protected final <T> Stream<T> stream(String sql, PreparedStatementSetter pss, ResultSetMapper<T> mapper)
protected final <T> Page<T> executeSelectPage(String countSql, String sql, ResultSetMapper<T> mapper, Pageable pageable)
Copyright © 2019. All rights reserved.