Module org.tquadrat.foundation.sql
Class ResultSetSpliterator
java.lang.Object
org.tquadrat.foundation.sql.internal.ResultSetSpliterator
- All Implemented Interfaces:
Spliterator<ResultSet>
@ClassVersion(sourceVersion="$Id: ResultSetSpliterator.java 1030 2022-04-06 13:42:02Z tquadrat $")
@API(status=INTERNAL,
since="0.0.1")
public final class ResultSetSpliterator
extends Object
implements Spliterator<ResultSet>
An implementation of
Spliterator
for instances of
ResultSet
.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: ResultSetSpliterator.java 1030 2022-04-06 13:42:02Z tquadrat $
- Since:
- 0.0.1
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.sql.internal.ResultSetSpliterator"
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class
The wrapper for the result set that disallows several methods to be called.Nested classes/interfaces inherited from interface java.util.Spliterator
Spliterator.OfDouble, Spliterator.OfInt, Spliterator.OfLong, Spliterator.OfPrimitive<T,
T_CONS, T_SPLITR extends Spliterator.OfPrimitive<T, T_CONS, T_SPLITR>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate SQLException
The last exception that was caught on a call toResultSet.next()
.private final ResultSet
The result set.private final ResultSetSpliterator.InternalResultSet
The wrapped result set.Fields inherited from interface java.util.Spliterator
CONCURRENT, DISTINCT, IMMUTABLE, NONNULL, ORDERED, SIZED, SORTED, SUBSIZED
-
Constructor Summary
ConstructorsConstructorDescriptionResultSetSpliterator
(ResultSet resultSet) Creates a newResultSetSpliterator
instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
final long
final Optional
<SQLException> Returns the last error that was caught on a call toResultSet.next()
.final boolean
tryAdvance
(Consumer<? super ResultSet> action) final Spliterator
<ResultSet> trySplit()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Spliterator
forEachRemaining, getComparator, getExactSizeIfKnown, hasCharacteristics
-
Field Details
-
m_LastError
The last exception that was caught on a call toResultSet.next()
. -
m_ResultSet
The result set. -
m_WrappedResultSet
The wrapped result set.
-
-
Constructor Details
-
ResultSetSpliterator
Creates a newResultSetSpliterator
instance.- Parameters:
resultSet
- The result set.
-
-
Method Details
-
characteristics
- Specified by:
characteristics
in interfaceSpliterator<ResultSet>
-
estimateSize
- Specified by:
estimateSize
in interfaceSpliterator<ResultSet>
-
getLastError
Returns the last error that was caught on a call toResultSet.next()
. -
tryAdvance
- Specified by:
tryAdvance
in interfaceSpliterator<ResultSet>
-
trySplit
- Specified by:
trySplit
in interfaceSpliterator<ResultSet>
-