Methods Summary |
---|
public static java.lang.String | getDefaultPropertyValue(java.lang.String name)INTERNAL:
Returns the default property value that should be applied.
Throws IllegalArgumentException in case the name doesn't correspond
to any property.
return Prop.getDefaultPropertyValueToApply(name, null);
|
public static java.lang.String | getDefaultPropertyValueLogDebug(java.lang.String name, oracle.toplink.essentials.internal.sessions.AbstractSession session)
return Prop.getDefaultPropertyValueToApply(name, session);
|
public static java.util.Map | getPrefixValues(java.lang.String prefix, java.util.Map m)INTERNAL:
Gets properties' values from the map, if none found looks in System properties.
In the returned map values keyed by suffixes.
Use it with prefixes (like "oracle.toplink.cache-type.").
Could be used on simple properties (not prefixes, too),
but will always return either an empty map or a map containing a single
value keyed by an empty String.
Throws IllegalArgumentException in case the property value is illegal.
return Prop.getPrefixValuesToApply(prefix, m, null);
|
public static java.util.Map | getPrefixValuesLogDebug(java.lang.String prefix, java.util.Map m, oracle.toplink.essentials.internal.sessions.AbstractSession session)
return Prop.getPrefixValuesToApply(prefix, m, session);
|
public static java.lang.String | getPrefixedPropertyValue(java.lang.String prefix, java.lang.String suffix, java.util.Map m)INTERNAL:
Gets property value from the map, if none found looks in System properties.
Use this to get a value for a prefixed property:
for "oracle.toplink.cache-type.Employee"
pass "oracle.toplink.cache-type.", "Employee".
Throws IllegalArgumentException in case the property value is illegal.
return (String)getPrefixValues(prefix, m).get(suffix);
|
public static java.lang.String | getPropertyValueLogDebug(java.lang.String name, java.util.Map m, oracle.toplink.essentials.internal.sessions.AbstractSession session)INTERNAL:
Gets property value from the map, if none found looks in System properties.
Use this to get a value for a non-prefixed property.
Could be used on prefixes (like "oracle.toplink.cache-type.") too,
but will always return null
Throws IllegalArgumentException in case the property value is illegal.
return Prop.getPropertyValueToApply(name, m, session);
|
protected static boolean | shouldUseDefault(java.lang.String value)INTERNAL:
Empty String value indicates that the default property value
should be used.
return value != null && value.length() == 0;
|