Package org.idempiere.model
Interface IMappedModelFactory
- All Known Implementing Classes:
MappedModelFactory
public interface IMappedModelFactory
- Author:
- hengsin
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMapping
(String tableName, Supplier<Class<?>> classSupplier, BiFunction<Integer, String, ? extends PO> recordIdFunction, BiFunction<String, String, ? extends PO> recordUUIDFunction, BiFunction<ResultSet, String, ? extends PO> resultSetFunction) add table name to class mappingdefault 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 packages for class withModel
annotation and add mapping for it
-
Method Details
-
addMapping
default 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
-
-
addMapping
void addMapping(String tableName, Supplier<Class<?>> classSupplier, BiFunction<Integer, String, ? extends PO> recordIdFunction, BiFunction<String, String, ? extends PO> recordUUIDFunction, BiFunction<ResultSet, String, ? extends PO> resultSetFunction) add table name to class mapping- Parameters:
tableName
-classSupplier
-recordIdFunction
-recordUUIDFunction
-resultSetFunction
-
-
removeMapping
remove table name to class mapping- Parameters:
tableName
-
-
scan
Scan packages for class withModel
annotation and add mapping for it- Parameters:
context
-packages
-
-