Class MLocator

    • Constructor Detail

      • MLocator

        public MLocator​(Properties ctx,
                        int M_Locator_ID,
                        String trxName)
        Standard Locator Constructor
        Parameters:
        ctx - Context
        M_Locator_ID - id
        trxName - transaction
      • MLocator

        public MLocator​(MWarehouse warehouse,
                        String Value)
        New Locator Constructor with XYZ=000
        Parameters:
        warehouse - parent
        Value - value
      • MLocator

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

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

      • getDefault

        public static MLocator getDefault​(Properties ctx,
                                          int M_Locator_ID)
        Get oldest Default Locator of warehouse with locator
        Parameters:
        ctx - context
        M_Locator_ID - locator
        Returns:
        locator or null
      • getDefault

        public static MLocator getDefault​(MWarehouse warehouse)
        FR [ 1966333 ] Get oldest Default Locator of warehouse with locator
        Parameters:
        warehouse -
        Returns:
        locator or null
      • get

        public static MLocator get​(Properties ctx,
                                   int M_Warehouse_ID,
                                   String Value,
                                   String X,
                                   String Y,
                                   String Z,
                                   int M_LocatorType_ID)
        Get the Locator with the combination or create new one (when user has permission)
        Parameters:
        ctx - Context
        M_Warehouse_ID - warehouse
        Value - value
        X - x
        Y - y
        Z - z
        Returns:
        locator (or null when no insert permission on MLocator)
      • get

        public static MLocator get​(int M_Locator_ID)
        Get Locator from Cache (immutable)
        Parameters:
        M_Locator_ID - id
        Returns:
        MLocator
      • get

        public static MLocator get​(Properties ctx,
                                   int M_Locator_ID)
        Get Locator from Cache (immutable)
        Parameters:
        ctx - context
        M_Locator_ID - id
        Returns:
        MLocator
      • get

        public static MLocator get​(Properties ctx,
                                   int M_Locator_ID,
                                   String trxName)
        Get Locator from Cache (immutable)
        Parameters:
        ctx - context
        M_Locator_ID - id
        trxName -
        Returns:
        MLocator
      • getCopy

        public static MLocator getCopy​(Properties ctx,
                                       int M_Locator_ID,
                                       String trxName)
        Get updateable copy of MLocator from cache
        Parameters:
        ctx -
        M_Locator_ID -
        trxName -
        Returns:
        MLocator
      • setXYZ

        public void setXYZ​(String X,
                           String Y,
                           String Z)
        Set Location
        Parameters:
        X - x
        Y - y
        Z - z
      • getWarehouseName

        public String getWarehouseName()
        Get Warehouse Name
        Returns:
        name
      • isCanStoreProduct

        public boolean isCanStoreProduct​(int M_Product_ID)
        Can Locator Store Product
        Parameters:
        M_Product_ID - id
        Returns:
        true if can be stored