Package guru.mikelue.jdut.decorate
Class TableSchemaLoadingDecorator
- java.lang.Object
-
- guru.mikelue.jdut.decorate.TableSchemaLoadingDecorator
-
- All Implemented Interfaces:
DataGrainDecorator
public class TableSchemaLoadingDecorator extends Object implements DataGrainDecorator
Loads database schema and validating rows.
To improve performance, this object would cacheSchemaTable
by its name, but this class is thread-safe for the caching mechanism.
-
-
Constructor Summary
Constructors Constructor Description TableSchemaLoadingDecorator(DataSource newDataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decorate(DataRow.Builder rowBuilder)
Decorates the row, which contains the field information.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface guru.mikelue.jdut.decorate.DataGrainDecorator
chain, predicate
-
-
-
-
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 interfaceDataGrainDecorator
- Parameters:
rowBuilder
- The builder of row
-
-