Module org.seasar.doma.core
Interface StreamMappable<ELEMENT>
- Type Parameters:
ELEMENT- the element type of the stream
- All Superinterfaces:
Buildable<Statement<List<ELEMENT>>>,Listable<ELEMENT>,Statement<List<ELEMENT>>
- All Known Subinterfaces:
SetOperand<ELEMENT>,SetOperator<ELEMENT>
- All Known Implementing Classes:
AbstractSetOperand,NativeSqlSelectIntermediate,NativeSqlSelectStarting,NativeSqlSetStarting,UnifiedSelectStarting
Represents that the implementation can fetch data from database as a stream and map it to
something.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <RESULT> RESULTCollect a stream.<RESULT> RESULTMap a stream.Open a stream.Peeks the built SQL.Methods inherited from interface org.seasar.doma.jdbc.criteria.statement.Listable
fetch, fetchOne, fetchOptional, stream
-
Method Details
-
openStream
Open a stream.You must close the stream after using it.
- Returns:
- the opened stream
-
mapStream
Map a stream.- Type Parameters:
RESULT- the mapped result- Parameters:
streamMapper- the mapper- Returns:
- the mapped result
-
collect
Collect a stream.- Type Parameters:
RESULT- the collected result- Parameters:
collector- the collector- Returns:
- the collected result
-
peek
Description copied from interface:BuildablePeeks the built SQL.
-