| Modifier and Type | Field and Description |
|---|---|
| public static final int | NOT_SET
Property is not set. |
| private static final String[] | |
| public static final int | SET_IN_APPLICATION
Property is set in APPLICATION (derby.properties) set |
| public static final int | SET_IN_DATABASE
Property is set in DATABASE set |
| public static final int | SET_IN_JVM
Property is set in JVM set |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | Returns: The final value decided onThe property name p, Serializable The desired value v, boolean The default value to use defaultValue)Parse and validate and return a boolean property value. |
| public static boolean | Returns: true if match foundobject which implements PersistentSet interface
(TransactionController) set, String Normalized authorization identifier username)Return |
| public static String | Returns: the value bound to the keyThe property set to inspect set, String The key to lookup key)Get a property only looking in the Persistent Transactional (database) set. |
| private static ModuleFactory | |
| private static ModuleFactory | |
| public static String | Returns: the value bound to the keyThe property set to inspect set, String The key to lookup key)Get a property from the passed in set. |
| public static Serializable | |
| public static Serializable | |
| public static String | |
| public static boolean | Returns: true of the property is set to 'true, TRUE', false otherwiseThe property set to inspect set, String The key to lookup key, boolean The default value to use defValue)Get a service wide property as a boolean. |
| public static int | Returns: value of the property if set subject to min and max, defaultValue if it is not set or set to a non-integer value.The property set set, String The key to lookup key, int The min acceptable value min, int The max acceptable value max, int The value to use if the key has no match defaultValue)Get a service wide property as a int. |
| public static int | Returns: value of the property if set subject to min and max, defaultValue if it is not set or set to a non-integer value.The target property set set, Properties The properties props, String The key to lookup key, int The min acceptable value min, int The max acceptable value max, int The value to use if the key has no match defaultValue)Get a service wide property as a int. |
| public static String | Returns: the value of the property or defaultValue if it does not exist.The property set to inspect set, String The key to lookup key, String The default value to use defaultValue)Find a service wide property with a default. |
| public static String | Returns: the value of the property or null if it does not exist.The property set to inspect set, String The key to lookup key)Find a service wide property. |
| public static String[] | Returns: the list of properties which are normally stored in service.propertieGet the list of properties which are normally stored in service.properties |
| public static boolean | Returns: true of the property is set to 'true, TRUE', false otherwiseThe name of the system property key)Get a system wide property as a boolean. |
| public static boolean | Returns: return defaultValue if the property is not set, returns true if the property is set to 'true, TRUE', returns false otherwise.The name of the system property key, boolean The value to use if the property has not been set defaultValue)Get a system wide property as a boolean. |
| public static int | Returns: value of the property if set subject to min and max, defaultValue if it is not set or set to a non-integer value.The key to lookup key, int The min acceptable value min, int The max acceptable value max, int The value to use if the key has no match defaultValue)s Get a system wide property as a int. |
| public static int | Returns: value of the property if, defaultValue if it is not set or set to a non-integer value.The key to lookup key, int The value to use if the key has no match defaultValue)Get a system wide property as a int. |
| public static String | Returns: the value of the property or null if it does not exist.The key to lookup key)Find a system wide property. |
| public static String | Returns: the value of the property or defaultValue if it does not exist.The propertykey key, String A default value defaultValue)Find a system wide property with a default. |
| public static int | |
| public static int | Returns: The final value decided onThe property name p, Serializable The desired value v, int The minimum legal value minValue, int The maximum legal value maxValue, int The default value to use defaultValue)Parse, validate and return an integer property value. |
| public static boolean | |
| public static boolean | |
| public static boolean | Returns: true if that property is stored in service.propertiesThe name of a property key)Return true iff the key is the name of a database property that is stored in services.properties. |
| public static boolean | Returns: true if the passed-in properties specify NATIVE authentication using LOCAL credentialsA set of properties properties)Return true if the passed-in properties specify NATIVE authentication using LOCAL credentials. |
| public static boolean | Returns: true if NATIVE authentication has been enabled in the passed-in propertiesA set of properties properties)Return true if NATIVE authentication has been enabled in the passed-in properties. |
| private static boolean | Returns: true if NATIVE authentication is turned in that specAn authentication service spec authenticationProvider)Return true if NATIVE authentication is turned on for the passed-in value of Property.AUTHENTICATION_PROVIDER_PARAMETER. |
| private static boolean | |
| private static boolean | Returns: true if match foundNormalized authorization identifier username)Return true if username is defined as a system property
i.e. there exists a property |
| pack-priv static int |
| NOT_SET | back to summary |
|---|---|
| public static final int NOT_SET Property is not set. | |
| servicePropertyList | back to summary |
|---|---|
| private static final String[] servicePropertyList | |
| SET_IN_APPLICATION | back to summary |
|---|---|
| public static final int SET_IN_APPLICATION Property is set in APPLICATION (derby.properties) set | |
| SET_IN_DATABASE | back to summary |
|---|---|
| public static final int SET_IN_DATABASE Property is set in DATABASE set | |
| SET_IN_JVM | back to summary |
|---|---|
| public static final int SET_IN_JVM Property is set in JVM set | |
| PropertyUtil | back to summary |
|---|---|
| public PropertyUtil() | |
| booleanProperty | back to summary |
|---|---|
| public static boolean booleanProperty(String p, Serializable v, boolean defaultValue) throws StandardException Parse and validate and return a boolean property value. If the value is invalid raise an exception. The following are valid property values.
| |
| existsBuiltinUser | back to summary |
|---|---|
| public static boolean existsBuiltinUser(PersistentSet set, String username) throws StandardException Return
| |
| getDatabaseProperty | back to summary |
|---|---|
| public static String getDatabaseProperty(PersistentSet set, String key) throws StandardException Get a property only looking in the Persistent Transactional (database) set.
| |
| getMonitor | back to summary |
|---|---|
| private static ModuleFactory getMonitor() Must be private so that user code can't call this entry point. | |
| getMonitorLite | back to summary |
|---|---|
| private static ModuleFactory getMonitorLite() Must be private so that user code can't call this entry point. | |
| getPropertyFromSet | back to summary |
|---|---|
| public static String getPropertyFromSet(Properties set, String key) Get a property from the passed in set. The passed in set is either:
This method uses the same search order as the getService() calls.
| |
| getPropertyFromSet | back to summary |
|---|---|
| public static Serializable getPropertyFromSet(Dictionary<K, V> set, String key) | |
| getPropertyFromSet | back to summary |
|---|---|
| public static Serializable getPropertyFromSet(boolean dbOnly, Dictionary<K, V> set, String key) | |
| getPropertyFromSet | back to summary |
|---|---|
| public static String getPropertyFromSet(boolean dbOnly, Properties set, String key) | |
| getServiceBoolean | back to summary |
|---|---|
| public static boolean getServiceBoolean(PersistentSet set, String key, boolean defValue) throws StandardException Get a service wide property as a boolean.
| |
| getServiceInt | back to summary |
|---|---|
| public static int getServiceInt(PersistentSet set, String key, int min, int max, int defaultValue) throws StandardException Get a service wide property as a int.
| |
| getServiceInt | back to summary |
|---|---|
| public static int getServiceInt(PersistentSet set, Properties props, String key, int min, int max, int defaultValue) throws StandardException Get a service wide property as a int. The passed in Properties set overrides any system, applcation or per-database properties.
| |
| getServiceProperty | back to summary |
|---|---|
| public static String getServiceProperty(PersistentSet set, String key, String defaultValue) throws StandardException Find a service wide property with a default. Search order is The service is the persistent service associated with the current context stack.
| |
| getServiceProperty | back to summary |
|---|---|
| public static String getServiceProperty(PersistentSet set, String key) throws StandardException Find a service wide property. The service is the persistent service associated with the current context stack.
| |
| getServicePropertyList | back to summary |
|---|---|
| public static String[] getServicePropertyList() Get the list of properties which are normally stored in service.properties
| |
| getSystemBoolean | back to summary |
|---|---|
| public static boolean getSystemBoolean(String key) Get a system wide property as a boolean.
| |
| getSystemBoolean | back to summary |
|---|---|
| public static boolean getSystemBoolean(String key, boolean defaultValue) Get a system wide property as a boolean.
| |
| getSystemInt | back to summary |
|---|---|
| public static int getSystemInt(String key, int min, int max, int defaultValue) s Get a system wide property as a int.
| |
| getSystemInt | back to summary |
|---|---|
| public static int getSystemInt(String key, int defaultValue) Get a system wide property as a int.
| |
| getSystemProperty | back to summary |
|---|---|
| public static String getSystemProperty(String key) Find a system wide property.
| |
| getSystemProperty | back to summary |
|---|---|
| public static String getSystemProperty(String key, String defaultValue) Find a system wide property with a default. Search order is
This method can be used by a system that is not running Derby, just to maintain the same lookup logic and security manager concerns for finding derby.properties and reading system properties. | |
| handleInt | back to summary |
|---|---|
| public static int handleInt(String value, int min, int max, int defaultValue) Parse an string as an int based property value.
| |
| intPropertyValue | back to summary |
|---|---|
| public static int intPropertyValue(String p, Serializable v, int minValue, int maxValue, int defaultValue) throws StandardException Parse, validate and return an integer property value. If the value is invalid raise an exception. If the value passed in is null return a default value.
| |
| isDBOnly | back to summary |
|---|---|
| public static boolean isDBOnly(Dictionary<K, V> set) | |
| isDBOnly | back to summary |
|---|---|
| public static boolean isDBOnly(Properties set) | |
| isServiceProperty | back to summary |
|---|---|
| public static boolean isServiceProperty(String key) Return true iff the key is the name of a database property that is stored in services.properties.
| |
| localNativeAuthenticationEnabled | back to summary |
|---|---|
| public static boolean localNativeAuthenticationEnabled(Properties properties) Return true if the passed-in properties specify NATIVE authentication using LOCAL credentials.
| |
| nativeAuthenticationEnabled | back to summary |
|---|---|
| public static boolean nativeAuthenticationEnabled(Properties properties) Return true if NATIVE authentication has been enabled in the passed-in properties.
| |
| nativeAuthenticationEnabled | back to summary |
|---|---|
| private static boolean nativeAuthenticationEnabled(String authenticationProvider) Return true if NATIVE authentication is turned on for the passed-in value of Property.AUTHENTICATION_PROVIDER_PARAMETER.
| |
| propertiesContainsBuiltinUser | back to summary |
|---|---|
| private static boolean propertiesContainsBuiltinUser(Properties props, String username) | |
| systemPropertiesExistsBuiltinUser | back to summary |
|---|---|
| private static boolean systemPropertiesExistsBuiltinUser(String username) Return true if username is defined as a system property
i.e. there exists a property
| |
| whereSet | back to summary |
|---|---|
| pack-priv static int whereSet(String key, Dictionary<K, V> set) | |