Class MRegion

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

public class MRegion extends X_C_Region implements Comparator<Object>, Serializable, ImmutablePOSupport
Location Region Model
Version:
$Id: MRegion.java,v 1.3 2006/07/30 00:58:36 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MRegion

      public MRegion(Properties ctx, String C_Region_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_Region_UU - UUID key
      trxName - Transaction
    • MRegion

      public MRegion(Properties ctx, int C_Region_ID, String trxName)
      Parameters:
      ctx - context
      C_Region_ID - id
      trxName - transaction
    • MRegion

      public MRegion(Properties ctx, ResultSet rs, String trxName)
      Create Region from current row in ResultSet
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MRegion

      public MRegion(MCountry country, String regionName)
      Parent Constructor
      Parameters:
      country - country
      regionName - Region Name
    • MRegion

      public MRegion(MRegion copy)
      Copy constructor
      Parameters:
      copy -
    • MRegion

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

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

    • get

      public static MRegion get(int C_Region_ID)
      Get Region (cached)
      Parameters:
      C_Region_ID - ID
      Returns:
      Region
    • get

      public static MRegion get(Properties ctx, int C_Region_ID)
      Get Region (immutable, cached)
      Parameters:
      C_Region_ID - ID
      Returns:
      Region
    • getDefault

      @Deprecated public static MRegion getDefault(Properties ctx)
      Deprecated.
      Get Default Region
      Parameters:
      ctx - ignore
      Returns:
      Region or null
    • getDefault

      public static MRegion getDefault()
      Get Default Region
      Returns:
      Region or null
    • getRegions

      @Deprecated public static MRegion[] getRegions(Properties ctx)
      Deprecated.
      Return Regions as Array
      Parameters:
      ctx - ignore
      Returns:
      Region Array
    • getRegions

      public static MRegion[] getRegions()
      Return Regions as Array
      Returns:
      Region Array
    • getRegions

      @Deprecated public static MRegion[] getRegions(Properties ctx, int C_Country_ID)
      Deprecated.
      Return Array of Regions of a Country
      Parameters:
      ctx - ignore
      C_Country_ID - country
      Returns:
      MRegion Array
    • getRegions

      public static MRegion[] getRegions(int C_Country_ID)
      Return Array of Regions of a Country
      Parameters:
      C_Country_ID - country
      Returns:
      MRegion Array
    • toString

      public String toString()
      Description copied from class: PO
      String representation
      Overrides:
      toString in class X_C_Region
      Returns:
      translated Name
    • getTrlName

      public String getTrlName()
      Get Translated Name
      Returns:
      translated name
    • getTrlName

      public String getTrlName(String language)
      Get Translated Name
      Parameters:
      language -
      Returns:
      translated name
    • compare

      public int compare(Object o1, Object o2)
      Compare
      Specified by:
      compare in interface Comparator<Object>
      Overrides:
      compare in class PO
      Parameters:
      o1 - object 1
      o2 - object 2
      Returns:
      -1, 0, 1
    • markImmutable

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