SQLResultCursor
class in package klyn.data.sql.internal

    public final class SQLResultCursor<T, TId> implements ProviderResultCursor:

SQLResultCursor
All Implemented Interfaces: ProviderResultCursor

Resource-owning SQL cursor behind a typed `QueryStream<R>` facade.

Example

    cursor as ProviderResultCursor = SQLResultCursor<User, Int>(...)

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | SQLResultCursor `SQLResultCursor( lease as SQLConnectionLease, statement as PreparedStatement, rows as ResultSet, reader as SQLProjectionReader<T, TId>, projection as QirExpression ):` | Takes ownership of one connection lease, statement, and result set.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public | advance `advance() as Boolean:` | Advances and materializes exactly one SQL row.
public | cancel `cancel() as Void:` | Cancels by closing the complete provider execution.
public | close `close() as Void:` | Closes every owned SQL resource idempotently.
public | currentValue `currentValue() as Object:` | Returns the current materialized value, including a legitimate null.

Inherited Methods
method Inherited Methods from ProviderResultCursor: advance, cancel, close, currentValue