PersistenceUnitProperties, CacheType, TargetDatabase, 05/28/2008-1.0M8 Andrei Ilitchev. - 224964: Provide support for Proxy Authentication through JPA. Added support for CONNECTION_EXCLUSIVE. Also added BooleanProp to allow simpler way of creating boolean-valued properties: instead of defining a new class for each new Boolean property just add a new instance of BooleanProp with property name and default: addProp(new BooleanProp(PersistenceUnitProperties.CONNECTION_EXCLUSIVE, "false")); Changed the existing boolean-valued properties to use this approach, also applied the same approach to LOGGING_LEVEL and CATEGORY_LOGGING_LEVEL_ Also introduced a new version of getSessionPropertyValue that takes properties: public static String getSessionPropertyValue(String name, Map m, AbstractSession session) { it's convenient for use in EntityManagerImpl: first searches the passed properties then (recursively) properties of the session, then System properties.
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected abstract static class | |
| protected static class | |
| protected static class | |
| protected static class | |
| protected static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static String | getDefaultPropertyValue(String name)
INTERNAL: Returns the default property value that should be applied. |
| public static String | |
| public static String | getPrefixedPropertyValue(String prefix, String suffix, Map<K, V> m)
INTERNAL: Gets property value from the map, if none found looks in System properties. |
| public static Map | getPrefixValues(String prefix, Map<K, V> m)
INTERNAL: Gets properties' values from the map, if none found looks in System properties. |
| public static Map | |
| public static String | getPropertyValue(String name, Map<K, V> m)
INTERNAL: Gets property value from the map, if none found looks in System properties. |
| public static String | |
| public static String | getPropertyValue(String name, String value)
INTERNAL: Given property name and value verifies and translates the value. |
| public static String | |
| public static String | getPropertyValueLogDebug(String name, Map<K, V> m, AbstractSession session, boolean useSystemAsDefault)
|
| public static String | |
| protected static boolean | shouldUseDefault(String value)
INTERNAL: Empty String value indicates that the default property value should be used. |