Class MLocator

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

public class MLocator extends X_M_Locator implements ImmutablePOSupport
Warehouse Locator Model
Version:
$Id: MLocator.java,v 1.3 2006/07/30 00:58:37 jjanke Exp $
Author:
Jorg Janke, victor.perez@e-evolution.com
See Also:
  • Constructor Details

    • MLocator

      public MLocator(Properties ctx, String M_Locator_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      M_Locator_UU - UUID key
      trxName - Transaction
    • 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)
      Copy constructor
      Parameters:
      copy -
    • MLocator

      public MLocator(Properties ctx, MLocator copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MLocator

      public MLocator(Properties ctx, MLocator copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getDefault

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

      public static MLocator getDefault(MWarehouse warehouse)
      Get highest priority default Locator of warehouse (smaller PriorityNo is of higher priority)
      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)
      Get the Locator with the combination or create new one (if user has permission)
      Parameters:
      ctx -
      M_Warehouse_ID -
      Value -
      X -
      Y -
      Z -
      Returns:
      locator (or null if no existing locator and user has no insert permission on MLocator)
    • 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 (if user has permission)
      Parameters:
      ctx - Context
      M_Warehouse_ID - warehouse
      Value - value
      X - x
      Y - y
      Z - z
      Returns:
      locator (or null if no existing locator and user has 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
    • toString

      public String toString()
      Get String Representation
      Overrides:
      toString in class X_M_Locator
      Returns:
      Value
    • 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)
      No op, always return true
      Parameters:
      M_Product_ID - id
      Returns:
      No op, always return true
    • markImmutable

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