Class ModelFactory

java.lang.Object
org.brerp.sped.nfe.component.ModelFactory
All Implemented Interfaces:
IModelFactory

public class ModelFactory extends Object implements IModelFactory
Default model factory for Sped NFe
Version:
$Id: ModelFactory.java, v1.0 22/12/2013 17:40:01, muriloht Exp $
Author:
muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br)
  • Constructor Details

    • ModelFactory

      public ModelFactory()
  • Method Details

    • getClass

      public Class<?> getClass(String tableName)
      Description copied from interface: IModelFactory
      Get Persistence Class for Table
      Specified by:
      getClass in interface IModelFactory
      Parameters:
      tableName - table name
      Returns:
      class or null
    • getPO

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

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

      public PO getPO(String tableName, String Record_UU, String trxName)
      Description copied from interface: IModelFactory
      Get PO Class Instance
      Specified by:
      getPO in interface IModelFactory
      Record_UU - record UUID
      Returns:
      PO for Record or null