Class SystemProperties

java.lang.Object
org.compiere.model.SystemProperties

public class SystemProperties extends Object
Collection of System properties used in iDempiere
Author:
Carlos Ruiz - globalqss - bxservice
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    ADEMPIERE_DB_SYSTEM_USER allows to override the default name of the system user for the database
    static String
    ADEMPIERE_SECURE allows to override the default security class
    static String
    Cache.ExpireMinute allows to override the default expire minutes for cache
    static String
    Cache.MaxSize allows to override the default max size for cache
    static String
    Cache.MaxSize.
    static String
    org.idempiere.db.debug.filter as a regular expression to filter the statements written in log.
    for example: org.idempiere.db.debug.filter='(?
    static String
    env.IDEMPIERE_HOME to define the home of iDempiere server instance
    static String
    org.idempiere.FileLogPrefix defines the template prefix to write logs
    static String
    IDEMPIERE_HOME to define the home of iDempiere server instance
    static String
    LogLevel=SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST Set the log level for the Pack In Folder application.
    static String
    PostgreSQLNative allows to override the default to use the postgresql native dialect
    static String
    org.idempiere.postgresql.URLParameters allows to define additional URL parameters to be passed to the JDBC connection in PostgreSQL
    static String
    PropertyFile allows to define a PropertyFile to use instead of the default $HOME/idempiere.properties
    static String
    PropertyHomeFile allows to override the folder where the properties file is found
    static String
    org.compiere.report.path used to override the default of the report path where jasper reports are found
    static String
    ZK_THEME allows to define the theme to use, it overrides the SysConfig ZK_THEME so it can be used for testing purposes
    static boolean
    org.idempiere.db.debug=true to print SQL Statements as log.warning
    static boolean
    org.idempiere.db.convert=true to print also Oracle SQL Statements being converted
    static boolean
    Define if optimistic locking must be used for UPDATE and DELETE in PO class, default false
    static boolean
    Verify if the system manages properties in a more secure way.
    For Windows and swing client the properties are managed as always.
    For other systems (like Linux) the default is to manage it with more security.
    This can be overridden passing the parameter -DIDEMPIERE_SECURE_PROPERTIES=false to the JVM.
    static boolean
    TestOCI=Y defines if oracle config must test OCI, default to not test
    static boolean
    TRACE_NULL_TRX_CONNECTION=true to allow tracing null transactions on idempiereMonitor WARNING!
    static boolean
    Define if it uses a timeout when executing an UPDATE or DELETE in PO class, default false
    static boolean
    ZkUnitTest=true to define if the component ids must be generated using AdempiereIdGenerator.escapeId
    static String
    setFileLogPrefix(String fileLogPrefix)
    org.idempiere.FileLogPrefix defines the template prefix to write logs
    static String
    setIdempiereHome(String idempiereHome)
    IDEMPIERE_HOME to define the home of iDempiere server instance

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SystemProperties

      public SystemProperties()
  • Method Details

    • getAdempiereDBSystemUser

      public static String getAdempiereDBSystemUser()
      ADEMPIERE_DB_SYSTEM_USER allows to override the default name of the system user for the database
      Returns:
    • getAdempiereSecure

      public static String getAdempiereSecure()
      ADEMPIERE_SECURE allows to override the default security class
      Returns:
    • getCacheExpireMinute

      public static String getCacheExpireMinute()
      Cache.ExpireMinute allows to override the default expire minutes for cache
      Returns:
    • getCacheMaxSize

      public static String getCacheMaxSize()
      Cache.MaxSize allows to override the default max size for cache
      Returns:
    • getCacheMaxSizeTable

      public static String getCacheMaxSizeTable(String tableName)
      Cache.MaxSize.[Table] allows to define a max size for cache specific for one table.
      For example -DCache.MaxSize.AD_Column=15000 will set the max size for AD_Column
      Returns:
    • getEnvIdempiereHome

      public static String getEnvIdempiereHome()
      env.IDEMPIERE_HOME to define the home of iDempiere server instance
      Returns:
    • getIdempiereHome

      public static String getIdempiereHome()
      IDEMPIERE_HOME to define the home of iDempiere server instance
      Returns:
    • setIdempiereHome

      public static String setIdempiereHome(String idempiereHome)
      IDEMPIERE_HOME to define the home of iDempiere server instance
      Returns:
    • isSecureProperties

      public static boolean isSecureProperties()
      Verify if the system manages properties in a more secure way.
      For Windows and swing client the properties are managed as always.
      For other systems (like Linux) the default is to manage it with more security.
      This can be overridden passing the parameter -DIDEMPIERE_SECURE_PROPERTIES=false to the JVM.
      Returns:
    • getLogLevel

      public static String getLogLevel()
      LogLevel=SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST Set the log level for the Pack In Folder application. for example: LogLevel=INFO
      Returns:
    • isUseTimeoutForUpdate

      public static boolean isUseTimeoutForUpdate()
      Define if it uses a timeout when executing an UPDATE or DELETE in PO class, default false
      Returns:
    • getReportPath

      public static String getReportPath()
      org.compiere.report.path used to override the default of the report path where jasper reports are found
      Returns:
    • isDBDebug

      public static boolean isDBDebug()
      org.idempiere.db.debug=true to print SQL Statements as log.warning
      Returns:
    • getDBDebugFilter

      public static String getDBDebugFilter()
      org.idempiere.db.debug.filter as a regular expression to filter the statements written in log.
      for example: org.idempiere.db.debug.filter='(?i)(?s:.)*\bc_order\b(?s:.)*' will show all SQL related to c_order table
      Returns:
    • isDBDebugConvert

      public static boolean isDBDebugConvert()
      org.idempiere.db.convert=true to print also Oracle SQL Statements being converted
      Returns:
    • getFileLogPrefix

      public static String getFileLogPrefix()
      org.idempiere.FileLogPrefix defines the template prefix to write logs
      Returns:
    • setFileLogPrefix

      public static String setFileLogPrefix(String fileLogPrefix)
      org.idempiere.FileLogPrefix defines the template prefix to write logs
      Returns:
    • getPostgresqlURLParameters

      public static String getPostgresqlURLParameters()
      org.idempiere.postgresql.URLParameters allows to define additional URL parameters to be passed to the JDBC connection in PostgreSQL
      Returns:
    • isOptimisticLocking

      public static boolean isOptimisticLocking()
      Define if optimistic locking must be used for UPDATE and DELETE in PO class, default false
      Returns:
    • getPostgreSQLNative

      public static String getPostgreSQLNative()
      PostgreSQLNative allows to override the default to use the postgresql native dialect
      Returns:
    • getPropertyFile

      public static String getPropertyFile()
      PropertyFile allows to define a PropertyFile to use instead of the default $HOME/idempiere.properties
      Returns:
    • getPropertyHomeFile

      public static String getPropertyHomeFile()
      PropertyHomeFile allows to override the folder where the properties file is found
      Returns:
    • isTestOCI

      public static boolean isTestOCI()
      TestOCI=Y defines if oracle config must test OCI, default to not test
      Returns:
    • getZkTheme

      public static String getZkTheme()
      ZK_THEME allows to define the theme to use, it overrides the SysConfig ZK_THEME so it can be used for testing purposes
      Returns:
    • isZkUnitTest

      public static boolean isZkUnitTest()
      ZkUnitTest=true to define if the component ids must be generated using AdempiereIdGenerator.escapeId
      Returns:
    • isTraceNullTrxConnection

      public static boolean isTraceNullTrxConnection()
      TRACE_NULL_TRX_CONNECTION=true to allow tracing null transactions on idempiereMonitor WARNING! this setting can have a big performance impact, it is disabled by default use it with care in production just temporarily to trace problematic connection slowness or leaks
      Returns: