/*
 * Copyright 2017, TeamDev Ltd. All rights reserved.
 *
 * Redistribution and use in source and/or binary forms, with or without
 * modification, must retain the above copyright notice and the following
 * disclaimer.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

package io.spine.server.storage;

import io.spine.annotation.SPI;

/**
 * A read request for {@link Storage}.
 *
 * @param <I> the type of the record ID
 * @author Dmytro Grankin
 */
@SPI
public interface ReadRequest<I> {

    /**
     * Obtains the ID of the requested record.
     *
     * @return the record ID
     */
    I getId();
}

@@ -1071,19 +1071,24 @@
 otation.
-SPI
+Internal
 ;%0A%0A/**%0A 
@@ -1128,16 +1128,543 @@
 ge%7D.%0A *%0A
+ * %3Cp%3EPurpose of this interface is generalization of the parameter%0A * for a record %7B@linkplain Storage#read(ReadRequest) reading%7D.%0A *%0A * %3Cp%3EThis generalization is required, because %7B@code ID%7D is not always sufficient parameter%0A * to read a record. Implementations may specify other filtering parameters or even%0A * configuration for a read execution. E.g. to read a record, reading of which causes%0A * reading of a list of other records, a batch size will be handy and it can be specified as a%0A * parameter of a read request.%0A *%0A
  * @para
@@ -1730,11 +1730,16 @@
 */%0A@
-SPI
+Internal
 %0Apub
@@ -1778,16 +1778,16 @@
     /**%0A
-
      * O
@@ -1832,16 +1832,79 @@
 %0A     *%0A
+     * %3Cp%3EThe result of this request must have this ID.%0A     *%0A
      * @

Improve Javadocs for `ReadRequest`