Class MWarehouse

    • Constructor Detail

      • MWarehouse

        public MWarehouse​(Properties ctx,
                          int M_Warehouse_ID,
                          String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        M_Warehouse_ID - id
        trxName - transaction
      • MWarehouse

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

        public MWarehouse​(MOrg org)
        Organization Constructor
        Parameters:
        org - parent
      • MWarehouse

        public MWarehouse​(MWarehouse copy)
        Parameters:
        copy -
    • Method Detail

      • get

        public static MWarehouse get​(int M_Warehouse_ID)
        Get from Cache (immutable)
        Parameters:
        M_Warehouse_ID - id
        Returns:
        warehouse
      • get

        public static MWarehouse get​(Properties ctx,
                                     int M_Warehouse_ID)
        Get from Cache (immutable)
        Parameters:
        ctx - context
        M_Warehouse_ID - id
        Returns:
        warehouse
      • get

        public static MWarehouse get​(Properties ctx,
                                     int M_Warehouse_ID,
                                     String trxName)
        Retrieves warehouse from cache (immutable)
        Parameters:
        ctx - context
        M_Warehouse_ID - id of warehouse to load
        trxName - transaction name
        Returns:
        warehouse
      • getForOrg

        public static MWarehouse[] getForOrg​(Properties ctx,
                                             int AD_Org_ID)
        Get Warehouses for Org
        Parameters:
        ctx - context
        AD_Org_ID - id
        Returns:
        warehouse
      • getInTransitForOrg

        public static MWarehouse[] getInTransitForOrg​(Properties ctx,
                                                      int AD_Org_ID)
        FR [ 1966337 ] Get Warehouses Transit for Org
        Parameters:
        ctx - context
        AD_Org_ID - id
        Returns:
        warehouse
      • getLocators

        public MLocator[] getLocators​(boolean reload)
        Get Locators
        Parameters:
        reload - if true reload
        Returns:
        array of locators
      • getDefaultLocator

        public MLocator getDefaultLocator()
        Get Default Locator
        Returns:
        (first) default locator
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new
        Returns:
        success
      • afterSave

        protected boolean afterSave​(boolean newRecord,
                                    boolean success)
        After Save
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new
        success - success
        Returns:
        success