Class TableSchemaLoadingDecorator

  • All Implemented Interfaces:
    DataGrainDecorator

    public class TableSchemaLoadingDecorator
    extends Object
    implements DataGrainDecorator
    Loads database schema and validating rows.
    To improve performance, this object would cache SchemaTable by its name, but this class is thread-safe for the caching mechanism.
    • Constructor Detail

      • TableSchemaLoadingDecorator

        public TableSchemaLoadingDecorator​(DataSource newDataSource)
    • Method Detail

      • decorate

        public void decorate​(DataRow.Builder rowBuilder)
        Decorates the row, which contains the field information.
        Specified by:
        decorate in interface DataGrainDecorator
        Parameters:
        rowBuilder - The builder of row