Class MLBRNFeLot

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_LBR_NFeLot, I_Persistent, Evaluatee

public class MLBRNFeLot extends X_LBR_NFeLot
Model for LBR_NFeLot
Version:
$Id: MNFeLot.java,v 1.0 2009/08/23 00:51:27 ralexsander Exp $
Author:
Murilo H. Torquato (devCoffee, www.devcoffee.com.br), muriloht
  • Adequação para funcionamento com a tabela LBR_DocFiscal, Ricardo Santana (Kenos, www.kenos.com.br)
  • See Also:
    • Field Details

    • Constructor Details

      • MLBRNFeLot

        public MLBRNFeLot(Properties ctx, int ID, String trx)
        Default Constructor
        Parameters:
        Properties - ctx
        int - ID (0 create new)
        String - trx
      • MLBRNFeLot

        public MLBRNFeLot(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set record
        trxName - transaction
      • MLBRNFeLot

        public MLBRNFeLot(Properties ctx, int LBR_NFeLot_ID, String trxName, String... virtualColumns)
      • MLBRNFeLot

        public MLBRNFeLot(Properties ctx, String LBR_NFeLot_UU, String trxName, String... virtualColumns)
      • MLBRNFeLot

        public MLBRNFeLot(Properties ctx, String LBR_NFeLot_UU, String trxName)
    • Method Details

      • geraLote

        public br.inf.portalfiscal.nfe.schema.envinfe.TEnviNFe geraLote(String envType, String trxName) throws Exception
        Gera o arquivo de Lote
        Parameters:
        String - envType
        Returns:
        String lot
        Throws:
        Exception
      • enviaNFe

        public void enviaNFe(Integer indSinc) throws Exception
        Envia Lote NFe
        Throws:
        Exception
      • consultaNFe

        public void consultaNFe() throws Exception
        Consulta Lote NFe
        Throws:
        Exception
      • beforeDelete

        protected boolean beforeDelete()
        Description copied from class: PO
        Executed before Delete operation.
        Overrides:
        beforeDelete in class PO
        Returns:
        true if record can be deleted
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved
      • isEmpty

        public boolean isEmpty()
      • getListNFs

        public List<MLBRDocFiscal> getListNFs(String trxNme) throws javax.xml.bind.JAXBException, IOException
        XMLs
        Returns:
        String[] XML
        Throws:
        javax.xml.bind.JAXBException
        IOException
      • getNFes

        public List<MLBRDocFiscal> getNFes()
        getLines
        Parameters:
        String - tableName
        String - orderBy or null
        Returns:
        Query query