Package io.vertx.tp.modular.reference
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 HRecord.
- JsonArray content of Json Record[], the core type is HRecord[].
### 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 Summary
-
Method Details
-
on
Bind the component to data model templateDataTpl. -
doRay
This method will modify the inputHRecordelement(s).- Parameters:
input- Input element ofHRecordfor single/multi- Returns:
- Return the modified data record(s).
-
doRayAsync
-