Class DefaultRuntimeProperties
java.lang.Object
org.apache.cayenne.DefaultRuntimeProperties
- All Implemented Interfaces:
RuntimeProperties
An implementation of
RuntimeProperties that returns properties that
were injected via a map in constructor. Each property can be overridden via
-D command line option (i.e. in this implementation JVM system properties
take precedence over any other property configuration mechanism).- Since:
- 3.1
-
Field Summary
FieldsFields inherited from interface RuntimeProperties
CI_PROPERTY, CONTEXTS_SYNC_PROPERTY, DOMAIN_NAME_PROPERTY, EXTERNAL_TX_PROPERTY, JDBC_DRIVER_PROPERTY, JDBC_LOG_BATCH_ROW_THRESHOLD_PROPERTY, JDBC_MAX_CONNECTIONS_PROPERTY, JDBC_MAX_QUEUE_WAIT_TIME, JDBC_MIN_CONNECTIONS_PROPERTY, JDBC_PASSWORD_PROPERTY, JDBC_URL_PROPERTY, JDBC_USERNAME_PROPERTY, JDBC_VALIDATION_QUERY_PROPERTY, MAX_ID_QUALIFIER_SIZE_PROPERTY, OBJECT_RETAIN_STRATEGY_PROPERTY, QUERY_CACHE_SIZE_PROPERTY, SNAPSHOT_CACHE_SIZE_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a String property value for a given key.Returns a String property value for a given key or a default value if a value is not present in properties or is null.booleangetBoolean(String key, boolean defaultValue) inttoMap()Returns a snapshot of the properties as a map, with the same key resolution rules asRuntimeProperties.get(String).
-
Field Details
-
properties
-
-
Constructor Details
-
DefaultRuntimeProperties
-
-
Method Details
-
get
Description copied from interface:RuntimePropertiesReturns a String property value for a given key.- Specified by:
getin interfaceRuntimeProperties
-
get
Description copied from interface:RuntimePropertiesReturns a String property value for a given key or a default value if a value is not present in properties or is null.- Specified by:
getin interfaceRuntimeProperties- Since:
- 4.0
-
getInt
- Specified by:
getIntin interfaceRuntimeProperties
-
getBoolean
- Specified by:
getBooleanin interfaceRuntimeProperties
-
toMap
Description copied from interface:RuntimePropertiesReturns a snapshot of the properties as a map, with the same key resolution rules asRuntimeProperties.get(String).- Specified by:
toMapin interfaceRuntimeProperties
-