public class SelectStatementDefault extends StatementBase implements SelectStatement
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
SelectStatementDefault(Connection connection,
JdbcUtils jdbcUtils) |
| Modifier and Type | Method and Description |
|---|---|
protected JdbcUtils |
getJdbcUtils() |
protected PreparedStatement |
getStatementWithParamsAdded(Connection connection) |
protected long |
getTotalFromSelectQuery(Connection connection)
Returns -1 to indicate the number of items should be taken instead of the total
found by a generated query.
|
<T> List<T> |
selectList(ResultSetHandler<T> resultSetHandler) |
protected <T> ItemsAndTotalCount<T> |
selectList(ResultSetHandler<T> resultSetHandler,
boolean getTotal) |
<T> ItemsAndTotalCount<T> |
selectListAndTotal(ResultSetHandler<T> resultSetHandler)
Executes the SELECT query but also returns the total of items.
|
<T> T |
selectOne(ResultSetHandler<T> resultSetHandler) |
addCurrentParamsToStatement, addParam, addParamsToStatement, clearParams, clearSql, clearSql, close, close, copyParamsAndStaticTokensTo, getConnection, getIndexMap, getOriginalQuery, getParams, getParsedQuery, getQueryBuilder, getSql, getSqlFormmatter, getStaticTokens, parse, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setParams, setStaticTokens, setString, sql, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclearSql, clearSql, getSql, setBoolean, setDate, setDouble, setFloat, setInInteger, setInLong, setInstant, setInString, setInStringFromEnumNames, setInStringFromEnumNames, setInteger, setLong, setLongList, setString, sqlpublic SelectStatementDefault(Connection connection, JdbcUtils jdbcUtils)
protected JdbcUtils getJdbcUtils()
protected PreparedStatement getStatementWithParamsAdded(Connection connection)
public <T> T selectOne(ResultSetHandler<T> resultSetHandler)
selectOne in interface SelectStatementpublic <T> List<T> selectList(ResultSetHandler<T> resultSetHandler)
selectList in interface SelectStatementpublic <T> ItemsAndTotalCount<T> selectListAndTotal(ResultSetHandler<T> resultSetHandler)
SelectStatementselectListAndTotal in interface SelectStatementprotected <T> ItemsAndTotalCount<T> selectList(ResultSetHandler<T> resultSetHandler, boolean getTotal)
protected long getTotalFromSelectQuery(Connection connection)
Copyright © 2019. All rights reserved.