Class MLBRNCM

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

public class MLBRNCM extends X_LBR_NCM
NCM Model Class
Version:
$Id: MLBRNCM.java, v1.0 Feb 4, 2013 10:57:30 AM, muriloht Exp $
Author:
muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br)
See Also:
  • Constructor Details

    • MLBRNCM

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

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

      public MLBRNCM(Properties ctx, int LBR_NCM_ID, String trxName, String... virtualColumns)
    • MLBRNCM

      public MLBRNCM(Properties ctx, String LBR_NCM_UU, String trxName, String... virtualColumns)
    • MLBRNCM

      public MLBRNCM(Properties ctx, String LBR_NCM_UU, String trxName)
  • Method Details

    • 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
    • getByName

      public static MLBRNCM getByName(Properties ctx, String ncmName, String trxName)
      Get NCM
      Parameters:
      ctx -
      LBR_NCM_ID -
      dateTrx -
      trxName -
      Returns:
    • formatNCM

      public static String formatNCM(String ncm)
      Format the NCM code, e.g.: 88888888 -> 8888.88.88 8888.8888 -> 8888.88.88 888888 -> 8888.88
      Parameters:
      ncm -
      Returns:
      formatted NCM