Class MCOFRPSLote

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

public class MCOFRPSLote extends X_COF_RPS_Lote
Model for MCOFRPSLote
Version:
$Id: MCOFRPSLote.java,v 1.0 2018/08/27 11:00:27 muriloht Exp $
Author:
Murilo H. Torquato (devCoffee, www.devcoffee.com.br), muriloht
See Also:
  • Constructor Details

    • MCOFRPSLote

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

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

      public MCOFRPSLote(Properties ctx, int COF_RPS_Lote_ID, String trxName, String... virtualColumns)
    • MCOFRPSLote

      public MCOFRPSLote(Properties ctx, String COF_RPS_Lote_UU, String trxName, String... virtualColumns)
    • MCOFRPSLote

      public MCOFRPSLote(Properties ctx, String COF_RPS_Lote_UU, String trxName)
  • Method Details

    • 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()
    • getRPS

      public List<MCOFRPS> getRPS(Boolean emitida)
      getRPS - retorna os RPS inclusos no Lote de RPS
      Returns:
      Lista de MCOFRPS contendo os emitidos ou não emitidos, de acordo com o parametro.
    • getRPS

      public List<MCOFRPS> getRPS()
      getRPS - retorna os RPS inclusos no Lote de RPS
      Returns:
      Lista de MCOFRPS contendo os emitidos e não emitidos.