Interface RequestResult


public interface RequestResult
Represents the result of a Request.

Concurrency

For multi-threading on a single RequestResult instance, the method nextAdaptation() is not synchronized. If multiple threads invoke it concurrently on the same instance, they must be synchronized externally.

If the table is concurrently updated, the general rules regarding Concurrency and isolation levels apply.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method must be invoked after having invoked the methods nextAdaptation (or getAdaptation) to ensure that underlying resources are released.
    boolean
    Returns true if the specified record belongs to the result of this request (even if the record is obsolete).
    getAdaptation(int anIndex)
    Deprecated.
    It is strongly recommended to use nextAdaptation() instead, as it is safer than this method in the case of concurrent deletion.
    Returns the request that created this result.
    int
    Returns the total number of records held by this result.
     
    boolean
    Returns true if the result is empty (that is, size is 0).
    boolean
    Returns true if this result may have changed since last computation.
    boolean
    isSizeEqual(int aSize)
    Verifies the number of records contained in this result.
    boolean
    isSizeGreaterOrEqual(int minimalSize)
    Verifies the number of records contained in this result.
    Moves the cursor to the next record in the result and returns it.
    void
    Forces a full re-computation of this result.
    boolean
    Performs a refresh of the result if it may have changed.