Class MSysConfig

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

public class MSysConfig extends X_AD_SysConfig
System Configuration
Version:
$Id: MSysConfig.java,v 1.5 2005/11/28 11:56:45 armen Exp $ Contributor: Carlos Ruiz - globalqss - [ 1800371 ] System Configurator Enhancements
Author:
Armen Rizal, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1885496 ] Performance NEEDS
  • See Also:
    • Field Details

    • Constructor Details

      • MSysConfig

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

        public MSysConfig(Properties ctx, int AD_SysConfig_ID, String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_SysConfig_ID - id
      • MSysConfig

        public MSysConfig(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result set
    • Method Details

      • getValue

        public static String getValue(String Name, String defaultValue)
        Get system configuration property of type string
        Parameters:
        Name -
        defaultValue -
        Returns:
        String
      • getValue

        public static String getValue(String Name)
        Get system configuration property of type string
        Parameters:
        Name -
        Returns:
        configured value
      • getIntValue

        public static int getIntValue(String Name, int defaultValue)
        Get system configuration property of type integer
        Parameters:
        Name -
        defaultValue -
        Returns:
        configured value or defaultValue
      • getDoubleValue

        @Deprecated public static double getDoubleValue(String Name, double defaultValue)
        Deprecated.
        replace by getBigDecimalValue
        Get system configuration property of type double
        Parameters:
        Name -
        defaultValue -
        Returns:
        double
      • getBigDecimalValue

        public static BigDecimal getBigDecimalValue(String Name, BigDecimal defaultValue)
        Get system configuration property of type BigDecimal
        Parameters:
        Name -
        defaultValue -
        Returns:
        configured value or defaultValue
      • getBooleanValue

        public static boolean getBooleanValue(String Name, boolean defaultValue)
        Get system configuration property of type boolean
        Parameters:
        Name -
        defaultValue -
        Returns:
        configured value or defaultValue
      • getValue

        public static String getValue(String Name, String defaultValue, int AD_Client_ID)
        Get client configuration property of type string
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        configured value or 0
      • getValue

        public static String getValue(String Name, int AD_Client_ID)
        Get system configuration property of type string
        Parameters:
        Name -
        AD_Client_ID - Client ID
        Returns:
        configured value or null
      • getIntValue

        public static int getIntValue(String Name, int defaultValue, int AD_Client_ID)
        Get system configuration property of type int
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        configured value or defaultValue
      • getDoubleValue

        @Deprecated public static double getDoubleValue(String Name, double defaultValue, int AD_Client_ID)
        Deprecated.
        replace by getBigDecimalValue
        Get system configuration property of type double
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        double
      • getBigDecimalValue

        public static BigDecimal getBigDecimalValue(String Name, BigDecimal defaultValue, int AD_Client_ID)
        Get system configuration property of type BigDecimal
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        configured value or defaultValue
      • getBooleanValue

        public static boolean getBooleanValue(String Name, boolean defaultValue, int AD_Client_ID)
        Get system configuration property of type boolean
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        configured value or defaultValue
      • getValue

        public static String getValue(String Name, String defaultValue, int AD_Client_ID, int AD_Org_ID)
        Get organization configuration property of type string
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or defaultValue
      • getValue

        public static String getValue(String Name, int AD_Client_ID, int AD_Org_ID)
        Get organization configuration property of type string
        Parameters:
        Name -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or null
      • getIntValue

        public static int getIntValue(String Name, int defaultValue, int AD_Client_ID, int AD_Org_ID)
        Get organization configuration property of type integer
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or defaultValue
      • getDoubleValue

        @Deprecated public static double getDoubleValue(String Name, double defaultValue, int AD_Client_ID, int AD_Org_ID)
        Deprecated.
        replace by getBigDecimalValue
        Get system configuration property of type double
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        double
      • getBigDecimalValue

        public static BigDecimal getBigDecimalValue(String Name, BigDecimal defaultValue, int AD_Client_ID, int AD_Org_ID)
        Get system configuration property of type BigDecimal
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or defaultValue
      • getBooleanValue

        public static boolean getBooleanValue(String Name, boolean defaultValue, int AD_Client_ID, int AD_Org_ID)
        Get system configuration property of type boolean
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or defaultValue
      • getTimestampValue

        public static Timestamp getTimestampValue(String Name)
        Get system configuration property of type Timestamp
        Parameters:
        Name -
        Returns:
        configured value or null
      • getTimestampValue

        public static Timestamp getTimestampValue(String Name, Timestamp defaultValue)
        Get system configuration property of type Timestamp
        Parameters:
        Name -
        defaultValue -
        Returns:
        configured value or defaultValue
      • getTimestampValue

        public static Timestamp getTimestampValue(String Name, Timestamp defaultValue, int AD_Client_ID)
        Get system configuration property of type Timestamp
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        Returns:
        configured value or defaultValue
      • getTimestampValue

        public static Timestamp getTimestampValue(String Name, Timestamp defaultValue, int AD_Client_ID, int AD_Org_ID)
        Get system configuration property of type Timestamp
        Parameters:
        Name -
        defaultValue -
        AD_Client_ID - Client ID
        AD_Org_ID - Organization ID
        Returns:
        configured value or defaultValue
      • convertStringToTimestamp

        protected static Timestamp convertStringToTimestamp(String text)
        Convert a string to a time stamp.
        The method uses the length of the text argument to determine the time stamp format pattern to use.
        Parameters:
        text - text to be converted to time stamp
        Returns:
        converted time stamp
      • beforeSave

        protected boolean beforeSave(boolean newRecord)
        Before Save
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord -
        Returns:
        true if save
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_AD_SysConfig
        Returns:
        String representation
      • afterSave

        protected boolean afterSave(boolean newRecord, boolean success)
        Description copied from class: PO
        Called after Save for Post-Save Operation
        Overrides:
        afterSave in class PO
        Parameters:
        newRecord - new record
        success - true if save operation was success
        Returns:
        if save was a success