We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The current RecordHandler type is used as a "sink" receiving records, returning void:
RecordHandler
create.selectFrom(BOOK).fetchInto(new RecordHandler<BookRecord>() { public void next(BookRecord record) { dothings(record); } });
A RecordMapper on the other hand, transforms record into another type. For instance:
RecordMapper
List<Integer> result = create.selectFrom(BOOK).fetchInto(new RecordMapper<BookRecord, Integer>() { public Integer map(BookRecord record) { return dothings(record); } });
Possibly, all other into(Class<E>) methods should be refactored to use RecordMapper types instead, e.g. a POJORecordMapper
into(Class<E>)
POJORecordMapper
The text was updated successfully, but these errors were encountered:
@idugic : I'm taking this one back, as I need this for another implementation
Sorry, something went wrong.
[#1756] Add RecordMapper<E>, similar to RecordHandler<R>, mapping
69187ee
records to custom types
fe149da
records to custom types - Updated manual
lukaseder
No branches or pull requests
The current
RecordHandler
type is used as a "sink" receiving records, returning void:A
RecordMapper
on the other hand, transforms record into another type. For instance:Possibly, all other
into(Class<E>)
methods should be refactored to useRecordMapper
types instead, e.g. aPOJORecordMapper
The text was updated successfully, but these errors were encountered: