Class RQuote

  • All Implemented Interfaces:
    Serializable

    public class RQuote
    extends Object
    implements Serializable
    ##「Pojo」Quote Definition Object ### 1. Intro Here are basic definition in `X_ATTRIBUTE` for calculation. - source: Defined `identifier` in our environment ( Static Model & Dynamic Model ) - sourceField: Defined `field` of critical reference or it will not be used. ### 2. Level Here are mapping relations 1. Quote: Model/Entity level, it provides features to process the whole model. 2. Rule: Attribute/Field level, it provides rules to process attributes/fields only. ### 3. Category When create DataQuote, it's distinguish by `source` field, it means that the `source` could not produce duplicated `sourceField` here.
    Author:
    Lang
    See Also:
    Serialized Form
    • Method Detail

      • create

        public static RQuote create​(String appName,
                                    String source)
        The factory method to create new instance.
        Parameters:
        source - String The table name or identifier of entity.
        appName - String application name.
        Returns:
        RQuote
      • add

        public RQuote add​(MAttribute attribute,
                          AoAttribute service)
        「Fluent」Add new attribute in current Quote instance. Here the dao class could be unique, it means that when `source` is fixed, here are only one dao class that has been mapped to current DataQuote DataQuote created by pooled with ```java //
        
             final DataQuote reference = Fn.pool(this.references, source, () -> DataQuote.create(source));
         // 
        ``` > Here are specification that only one source must be unique dao class instead.
        Parameters:
        attribute - MAttribute Input attribute object
        service - AoAttribute
        Returns:
        RQuote
      • dao

        public RDao dao​(String field)
        Parameters:
        field - String Input attribute name.
        Returns:
        RDao
      • type

        public Class<?> type​(String field)
        Parameters:
        field - Input attribute name
        Returns:
        Data type of attribute