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 voidaddMapping(String gaap, String tableName, Function<IMappedDocumentFactory.Parameter,? extends Doc> supplier)add table name + gaap (optional) to Doc mappingDocgetDocument(MAcctSchema as, int AD_Table_ID, ResultSet rs, String trxName)Create Posting documentvoidremoveMapping(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:IDocFactoryCreate Posting document- Specified by:
getDocumentin 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:IMappedDocumentFactoryadd table name + gaap (optional) to Doc mapping- Specified by:
addMappingin interfaceIMappedDocumentFactory- Parameters:
gaap- map to c_acctschema.gaap (optional)
-
removeMapping
public void removeMapping(String gaap, String tableName)
- Specified by:
removeMappingin interfaceIMappedDocumentFactory
-
-