Package org.idempiere.model
Interface IMappedModelFactory
-
- All Known Implementing Classes:
MappedModelFactory
public interface IMappedModelFactory
- Author:
- hengsin
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addMapping(String tableName, Supplier<Class<?>> classSupplier, BiFunction<Integer,String,? extends PO> recordIdFunction, BiFunction<ResultSet,String,? extends PO> resultSetFunction)
add table name to class mappingvoid
removeMapping(String tableName)
remove table name to class mappingvoid
scan(org.osgi.framework.BundleContext context, String... packages)
Scan packages for class withModel
annotation and add mapping for it
-
-
-
Method Detail
-
addMapping
void addMapping(String tableName, Supplier<Class<?>> classSupplier, BiFunction<Integer,String,? extends PO> recordIdFunction, BiFunction<ResultSet,String,? extends PO> resultSetFunction)
add table name to class mapping- Parameters:
tableName
-classSupplier
-recordIdFunction
-resultSetFunction
-
-
removeMapping
void removeMapping(String tableName)
remove table name to class mapping- Parameters:
tableName
-
-
-