Interface AoRay<T>

  • All Known Implementing Classes:
    AbstractRay, RayBatch, RaySingle

    public interface AoRay<T>
    ## Reference Processor ( Ray ) ### 1. Intro The field of `reference` calculation components, after all the data have been read, these components could process `reference` field based on the records. Here are three categories of attribute's type: 1. INTERNAL : The standard attribute that has been mapped to database. 2. REFERENCE : The reference attribute that has been mapped to other dependency attributes. 3. EXTERNAL : The reserved attribute that has been mapped to third-part system. ### 2. Generic T The `T` type should be two common object such as: - JsonObject content of Json Record, the core type is Record. - JsonArray content of Json Record[], the core type is Record[]. ### 3. Standard Mode #### 3.1. INTERNAL This kind of attribute support following features: - It should be mapped to `X_ENTITY` fields instead of storing in other place. - The data type must be based on database column type. - `X_ENTITY` column type has been defined in abstract virtual layer to support Type Mapping. #### 3.2. REFERENCE This kind of attribute support following features: 1. Complex Type: Such as `up` and `down`, the data format is JsonObject/JsonArray, calculated to the result here. 2. Dependency Type: The type is calculated by other `INTERNAL` field.
    Author:
    Lang
    • Method Detail

      • on

        AoRay<T> on​(DataTpl tpl)
        Bind the component to data model template DataTpl.
        Parameters:
        tpl - DataTpl The template that will be bind.
        Returns:
        AoRay The component reference
      • doRay

        T doRay​(T input)
        This method will modify the input Record element(s).
        Parameters:
        input - Input element of Record for single/multi
        Returns:
        Return the modified data record(s).
      • doRayAsync

        io.vertx.core.Future<T> doRayAsync​(T input)