public class PreparedStatementMapperBuilder<T> extends org.simpleflatmapper.map.mapper.AbstractConstantTargetMapperBuilder<PreparedStatement,T,JdbcColumnKey,PreparedStatementMapperBuilder<T>>
Constructor and Description |
---|
PreparedStatementMapperBuilder(org.simpleflatmapper.reflect.meta.ClassMeta<T> classMeta,
org.simpleflatmapper.map.MapperConfig<JdbcColumnKey,org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey>> mapperConfig,
org.simpleflatmapper.map.mapper.ConstantTargetFieldMapperFactory<PreparedStatement,JdbcColumnKey> preparedStatementFieldMapperFactory) |
Modifier and Type | Method and Description |
---|---|
MultiIndexFieldMapper<T>[] |
buildIndexFieldMappers() |
protected org.simpleflatmapper.reflect.BiInstantiator<T,org.simpleflatmapper.map.MappingContext<? super T>,PreparedStatement> |
getInstantiator() |
protected int |
getStartingIndex() |
protected JdbcColumnKey |
newKey(String column,
int i,
org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition) |
QueryPreparer<T> |
to(NamedSqlQuery query) |
QueryPreparer<T> |
to(NamedSqlQuery query,
String[] generatedKeys) |
public PreparedStatementMapperBuilder(org.simpleflatmapper.reflect.meta.ClassMeta<T> classMeta, org.simpleflatmapper.map.MapperConfig<JdbcColumnKey,org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey>> mapperConfig, org.simpleflatmapper.map.mapper.ConstantTargetFieldMapperFactory<PreparedStatement,JdbcColumnKey> preparedStatementFieldMapperFactory)
protected org.simpleflatmapper.reflect.BiInstantiator<T,org.simpleflatmapper.map.MappingContext<? super T>,PreparedStatement> getInstantiator()
getInstantiator
in class org.simpleflatmapper.map.mapper.AbstractConstantTargetMapperBuilder<PreparedStatement,T,JdbcColumnKey,PreparedStatementMapperBuilder<T>>
protected JdbcColumnKey newKey(String column, int i, org.simpleflatmapper.map.property.FieldMapperColumnDefinition<JdbcColumnKey> columnDefinition)
newKey
in class org.simpleflatmapper.map.mapper.AbstractConstantTargetMapperBuilder<PreparedStatement,T,JdbcColumnKey,PreparedStatementMapperBuilder<T>>
protected int getStartingIndex()
getStartingIndex
in class org.simpleflatmapper.map.mapper.AbstractConstantTargetMapperBuilder<PreparedStatement,T,JdbcColumnKey,PreparedStatementMapperBuilder<T>>
public QueryPreparer<T> to(NamedSqlQuery query)
public QueryPreparer<T> to(NamedSqlQuery query, String[] generatedKeys)
public MultiIndexFieldMapper<T>[] buildIndexFieldMappers()
Copyright © 2018. All rights reserved.