QueryPreparer<T>public class MultiIndexQueryPreparer<T> extends Object implements QueryPreparer<T>
| Modifier and Type | Class | Description |
|---|---|---|
class |
MultiIndexQueryPreparer.MultiIndexQueryBinder |
| Constructor | Description |
|---|---|
MultiIndexQueryPreparer(NamedSqlQuery query,
MultiIndexFieldMapper<T>[] multiIndexFieldMappers,
String[] generatedKeys,
org.simpleflatmapper.converter.ContextFactory contextFactory) |
| Modifier and Type | Method | 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) |
public MultiIndexQueryPreparer(NamedSqlQuery query, MultiIndexFieldMapper<T>[] multiIndexFieldMappers, String[] generatedKeys, org.simpleflatmapper.converter.ContextFactory contextFactory)
public QueryBinder<T> prepare(Connection connection) throws SQLException
QueryPreparerprepare in interface QueryPreparer<T>connection - the connectionSQLException - if an sql error occurspublic PreparedStatement prepareStatement(Connection connection) throws SQLException
QueryPreparerprepareStatement in interface QueryPreparer<T>connection - the connectionSQLException - if an error occurspublic org.simpleflatmapper.map.FieldMapper<T,PreparedStatement> mapper()
QueryPreparermapper in interface QueryPreparer<T>public String toRewrittenSqlQuery(T value)
toRewrittenSqlQuery in interface QueryPreparer<T>Copyright © 2019. All rights reserved.