Class MRegion

    • Constructor Detail

      • MRegion

        public MRegion​(Properties ctx,
                       int C_Region_ID,
                       String trxName)
        Create empty Region
        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)
        Parameters:
        copy -
      • MRegion

        public MRegion​(Properties ctx,
                       MRegion copy)
        Parameters:
        ctx -
        copy -
    • Method Detail

      • get

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

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

        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

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

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

        public static MRegion[] getRegions​(Properties ctx,
                                           int C_Country_ID)
        Deprecated.
        Return Array of Regions of 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 Country
        Parameters:
        C_Country_ID - country
        Returns:
        MRegion Array
      • getTrlName

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

        public String getTrlName​(String language)
        Get Translated Name
        Parameters:
        language -
        Returns:
        name
      • main

        public static void main​(String[] args)
        Test / Load
        Parameters:
        args -