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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
ADEMPIERE_DB_SYSTEM_USER allows to override the default name of the system user for the databasestatic String
ADEMPIERE_SECURE allows to override the default security classstatic String
Cache.ExpireMinute allows to override the default expire minutes for cachestatic String
Cache.MaxSize allows to override the default max size for cachestatic String
getCacheMaxSizeTable
(String tableName) 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 iDempierestatic String
org.idempiere.FileLogPrefix defines the template prefix to write logsstatic String
IDEMPIERE_HOME to define the home of iDempierestatic String
LogLevel=SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST Set the log level for the Pack In Folder application for example: LogLevel=INFOstatic String
PostgreSQLNative allows to override the default to use the postgresql native dialectstatic String
org.idempiere.postgresql.URLParameters allows to define additional URL parameters to be passed to the JDBC connection in PostgreSQLstatic String
PropertyFile allows to define a PropertyFile to use instead of the default $HOME/idempiere.propertiesstatic String
PropertyHomeFile allows to override the folder where the properties file is foundstatic String
org.compiere.report.path used to override the default of the report path where jasper reports are foundstatic String
ZK_THEME allows to define the theme to use, it overrides the SysConfig ZK_THEME so it can be used for testing purposesstatic boolean
org.idempiere.db.debug=true to print SQL Statements as log.warningstatic boolean
org.idempiere.db.convert=true to print also Oracle SQL Statements being convertedstatic boolean
org_idempiere_FullExceptionTraceInLog=true to not cut trace logstatic boolean
Define if optimistic locking must be used for UPDATE and DELETE in PO class, default falsestatic 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 JVMstatic boolean
TestOCI=Y defines if oracle config must test OCI, default to not teststatic 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 falsestatic boolean
ZkUnitTest=true to define if the component ids must be generated using AdempiereIdGenerator.escapeIdstatic String
setFileLogPrefix
(String fileLogPrefix) org.idempiere.FileLogPrefix defines the template prefix to write logsstatic String
setIdempiereHome
(String idempiereHome) IDEMPIERE_HOME to define the home of iDempiere
-
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- 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- Returns:
-
getIdempiereHome
IDEMPIERE_HOME to define the home of iDempiere- Returns:
-
setIdempiereHome
IDEMPIERE_HOME to define the home of iDempiere- 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:
-
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:
-