Package org.adempiere.base
Class MappedDocumentFactory
- java.lang.Object
-
- org.adempiere.base.MappedDocumentFactory
-
- All Implemented Interfaces:
IDocFactory
,IMappedDocumentFactory
public class MappedDocumentFactory extends Object implements IDocFactory, IMappedDocumentFactory
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.adempiere.base.IMappedDocumentFactory
IMappedDocumentFactory.Parameter
-
-
Constructor Summary
Constructors Constructor Description MappedDocumentFactory()
default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMapping(String gaap, String tableName, Function<IMappedDocumentFactory.Parameter,? extends Doc> supplier)
add table name + gaap (optional) to Doc mappingDoc
getDocument(MAcctSchema as, int AD_Table_ID, ResultSet rs, String trxName)
Create Posting documentvoid
removeMapping(String gaap, String tableName)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.base.IDocFactory
getDocument
-
-
-
-
Method Detail
-
getDocument
public Doc getDocument(MAcctSchema as, int AD_Table_ID, ResultSet rs, String trxName)
Description copied from interface:IDocFactory
Create Posting document- Specified by:
getDocument
in interfaceIDocFactory
- Parameters:
as
- accounting schemaAD_Table_ID
- Table ID of Documentsrs
- ResultSettrxName
- transaction name- Returns:
- Document
-
addMapping
public void addMapping(String gaap, String tableName, Function<IMappedDocumentFactory.Parameter,? extends Doc> supplier)
Description copied from interface:IMappedDocumentFactory
add table name + gaap (optional) to Doc mapping- Specified by:
addMapping
in interfaceIMappedDocumentFactory
- Parameters:
gaap
- map to c_acctschema.gaap (optional)
-
removeMapping
public void removeMapping(String gaap, String tableName)
- Specified by:
removeMapping
in interfaceIMappedDocumentFactory
-
-