B - the type of the Beanpublic final class EFactory<B>
extends java.lang.Object
| Constructor | Description |
|---|---|
EFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
<T> EFactory<B> |
add(java.util.function.BiConsumer<B,T> setter,
ThrowingBiFunction<java.sql.ResultSet,java.lang.Integer,T> getter,
java.lang.Integer index) |
Add an extraction used by the Extractor.
|
<T> EFactory<B> |
add(java.util.function.BiConsumer<B,T> setter,
ThrowingBiFunction<java.sql.ResultSet,java.lang.String,T> getter,
java.lang.String column) |
Add an extraction used by the Extractor.
|
EFactory<B> |
factory(java.util.function.Supplier<B> factory) |
Provide a factor this Extractor will use to create the object it will extract data
from the result set into.
|
Enricher<B> |
getEnricher() |
Get the Enricher that results from the added setter, getter, pairings add.
|
Extractor<B> |
getExtractor() |
Create the Extractor based on the factory and extractions added.
|
public EFactory<B> factory(java.util.function.Supplier<B> factory)
factory - a factory instancepublic <T> EFactory<B> add(java.util.function.BiConsumer<B,T> setter, ThrowingBiFunction<java.sql.ResultSet,java.lang.Integer,T> getter, java.lang.Integer index)
T - the typesetter - a BiConsumer that will set the value extractedgetter - a BiFunction that will extract the value from the ResultSetindex - the column indexpublic <T> EFactory<B> add(java.util.function.BiConsumer<B,T> setter, ThrowingBiFunction<java.sql.ResultSet,java.lang.String,T> getter, java.lang.String column)
T - the typesetter - a BiConsumer that will set the value extractedgetter - a BiFunction that will extract the value from the ResultSetcolumn - the name of the columnpublic Enricher<B> getEnricher()