Class MWarehouse

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

public class MWarehouse extends X_M_Warehouse implements ImmutablePOSupport
Warehouse Model
Version:
$Id: MWarehouse.java,v 1.3 2006/07/30 00:58:05 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com see FR [ 1966337 ] New Method to get the Transit Warehouse based in ID Org https://sourceforge.net/p/adempiere/feature-requests/430/, Teo Sarca, http://www.arhipac.ro
  • BF [ 1874419 ] JDBC Statement not close in a finally block
  • See Also:
    • Field Details

    • Constructor Details

      • MWarehouse

        public MWarehouse(Properties ctx, String M_Warehouse_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        M_Warehouse_UU - UUID key
        trxName - Transaction
      • 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 -
      • MWarehouse

        public MWarehouse(Properties ctx, MWarehouse copy)
        Parameters:
        ctx -
        copy -
      • MWarehouse

        public MWarehouse(Properties ctx, MWarehouse copy, String trxName)
        Parameters:
        ctx -
        copy -
        trxName -
    • Method Details

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

        public MWarehouse markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO