Package org.teamapps.data.extract
Class PropertyProvider<RECORD>
java.lang.Object
org.teamapps.data.extract.PropertyProvider<RECORD>
- All Implemented Interfaces:
PropertyExtractor<RECORD>
public class PropertyProvider<RECORD> extends java.lang.Object implements PropertyExtractor<RECORD>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyProvider.EntityProperty<RECORD> -
Constructor Summary
Constructors Constructor Description PropertyProvider()PropertyProvider(boolean useBeanPropertyExtractorFallback) -
Method Summary
Modifier and Type Method Description voidaddProperty(java.lang.String propertyName, java.lang.String caption, ValueExtractor<RECORD> valueExtractor)java.time.InstantgetInstantValue(RECORD record, java.lang.String propertyName)java.util.List<java.lang.String>getPropertyNamesByCaptionQuery(java.lang.String query)java.lang.ObjectgetValue(RECORD record, java.lang.String propertyName)
-
Constructor Details
-
PropertyProvider
public PropertyProvider() -
PropertyProvider
public PropertyProvider(boolean useBeanPropertyExtractorFallback)
-
-
Method Details
-
addProperty
public void addProperty(java.lang.String propertyName, java.lang.String caption, ValueExtractor<RECORD> valueExtractor) -
getValue
- Specified by:
getValuein interfacePropertyExtractor<RECORD>
-
getInstantValue
-
getPropertyNamesByCaptionQuery
public java.util.List<java.lang.String> getPropertyNamesByCaptionQuery(java.lang.String query)
-