Class AbstractModelFactory

  • All Implemented Interfaces:
    IModelFactory
    Direct Known Subclasses:
    DefaultModelFactory

    public abstract class AbstractModelFactory
    extends Object
    implements IModelFactory
    Provides basic functionality for PO resolution and instantiation. Based on legacy code in MTable.
    Author:
    Jorg Janke, hengsin
    • Constructor Detail

      • AbstractModelFactory

        public AbstractModelFactory()
    • Method Detail

      • getPO

        public PO getPO​(String tableName,
                        int Record_ID,
                        String trxName)
        Get PO Class Instance
        Specified by:
        getPO in interface IModelFactory
        Record_ID - record
        Returns:
        PO for Record or null
      • getPO

        public static PO getPO​(Class<?> clazz,
                               String tableName,
                               int Record_ID,
                               String trxName)
      • getPO

        public PO getPO​(String tableName,
                        ResultSet rs,
                        String trxName)
        Get PO Class Instance
        Specified by:
        getPO in interface IModelFactory
        rs - result set
        trxName - transaction
        Returns:
        PO for Record or null