public interface QueryPreparer<T>
Modifier and Type | Method and Description |
---|---|
org.simpleflatmapper.map.FieldMapper<T,PreparedStatement> |
mapper()
Will create a PreparedStatement mapper on the query.
|
QueryBinder<T> |
prepare(Connection connection)
Create a new QueryBinder based on the underlying query.
|
PreparedStatement |
prepareStatement(Connection connection)
Will create a PreparedStatement based on the query.
|
String |
toRewrittenSqlQuery(T value) |
QueryBinder<T> prepare(Connection connection) throws SQLException
connection
- the connectionSQLException
- if an sql error occursPreparedStatement prepareStatement(Connection connection) throws SQLException
connection
- the connectionSQLException
- if an error occursUnsupportedOperationException
- if a parameter is an array or a Listorg.simpleflatmapper.map.FieldMapper<T,PreparedStatement> mapper()
UnsupportedOperationException
- if a parameter is an array or a ListCopyright © 2019. All rights reserved.