Package org.compiere.model
Class SystemProperties
java.lang.Object
org.compiere.model.SystemProperties
Collection of System properties used in iDempiere
- Author:
- Carlos Ruiz - globalqss - bxservice
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringADEMPIERE_DB_SYSTEM_USER allows to override the default name of the system user for the database try first with a JVM variable, if not defined then try environment variablestatic StringADEMPIERE_SECURE allows to override the default security classstatic StringCache.ExpireMinute allows to override the default expire minutes for cachestatic StringCache.MaxSize allows to override the default max size for cachestatic StringgetCacheMaxSizeTable(String tableName) Cache.MaxSize.static Stringorg.idempiere.db.debug.filter as a regular expression to filter the statements written in log.
for example: org.idempiere.db.debug.filter='(?static Stringenv.IDEMPIERE_HOME to define the home of iDempiere server instancestatic Stringorg.idempiere.FileLogPrefix defines the template prefix to write logsstatic StringIDEMPIERE_HOME to define the home of iDempiere server instancestatic StringLogLevel=SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST Set the log level for the Pack In Folder application.static StringPostgreSQLNative allows to override the default to use the postgresql native dialectstatic Stringorg.idempiere.postgresql.URLParameters allows to define additional URL parameters to be passed to the JDBC connection in PostgreSQLstatic StringPropertyFile allows to define a PropertyFile to use instead of the default $HOME/idempiere.propertiesstatic StringPropertyHomeFile allows to override the folder where the properties file is foundstatic Stringorg.compiere.report.path used to override the default of the report path where jasper reports are foundstatic StringZK_THEME allows to define the theme to use, it overrides the SysConfig ZK_THEME so it can be used for testing purposesstatic booleanorg.idempiere.db.debug=true to print SQL Statements as log.warningstatic booleanorg.idempiere.db.convert=true to print also Oracle SQL Statements being convertedstatic booleanorg_idempiere_developermode=Y to define that iDempiere is running in developer mode (usually in eclipse IDE) Y/Nstatic booleanorg_idempiere_FullExceptionTraceInLog=true to not cut trace logstatic booleanDefine if optimistic locking must be used for UPDATE and DELETE in PO class, default falsestatic booleanVerify 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 booleanTestOCI=Y defines if oracle config must test OCI, default to not teststatic booleanTRACE_NULL_TRX_CONNECTION=true to allow tracing null transactions on idempiereMonitor WARNING!static booleanDefine if it uses a timeout when executing an UPDATE or DELETE in PO class, default falsestatic booleanZkUnitTest=true to define if the component ids must be generated using AdempiereIdGenerator.escapeIdstatic StringsetFileLogPrefix(String fileLogPrefix) org.idempiere.FileLogPrefix defines the template prefix to write logsstatic StringsetIdempiereHome(String idempiereHome) IDEMPIERE_HOME to define the home of iDempiere server instance
-
Field Details
-
ADEMPIERE_DB_SYSTEM_USER
- See Also:
-
-
Constructor Details
-
SystemProperties
public SystemProperties()
-
-
Method Details
-
getAdempiereDBSystemUser
ADEMPIERE_DB_SYSTEM_USER allows to override the default name of the system user for the database try first with a JVM variable, if not defined then try environment variable- Returns:
-
getAdempiereSecure
ADEMPIERE_SECURE allows to override the default security class- Returns:
-
getCacheExpireMinute
Cache.ExpireMinute allows to override the default expire minutes for cache- Returns:
-
getCacheMaxSize
Cache.MaxSize allows to override the default max size for cache- Returns:
-
getCacheMaxSizeTable
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
env.IDEMPIERE_HOME to define the home of iDempiere server instance- Returns:
-
getIdempiereHome
IDEMPIERE_HOME to define the home of iDempiere server instance- Returns:
-
setIdempiereHome
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
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
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
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:
-
isDeveloperMode
public static boolean isDeveloperMode()org_idempiere_developermode=Y to define that iDempiere is running in developer mode (usually in eclipse IDE) Y/N- Returns:
-
getFileLogPrefix
org.idempiere.FileLogPrefix defines the template prefix to write logs- Returns:
-
setFileLogPrefix
org.idempiere.FileLogPrefix defines the template prefix to write logs- Returns:
-
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
PostgreSQLNative allows to override the default to use the postgresql native dialect- Returns:
-
getPropertyFile
PropertyFile allows to define a PropertyFile to use instead of the default $HOME/idempiere.properties- Returns:
-
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
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:
-
isFullExceptionTraceInLog
public static boolean isFullExceptionTraceInLog()org_idempiere_FullExceptionTraceInLog=true to not cut trace log- Returns:
-