Package org.apache.openjpa.conf
Interface CacheMarshaller.ValidationPolicy
-
- All Known Implementing Classes:
OpenJPAVersionAndConfigurationTypeValidationPolicy
- Enclosing interface:
- CacheMarshaller
public static interface CacheMarshaller.ValidationPolicy
Validation policies are responsible for computing whether or not a cached data structure is valid for the current context.getValidCachedData(getCacheableData(o), conf)
should return an object equivalent too
in the expected case. Implementations of this class will often also implementConfigurable
in order to receive the currentConfiguration
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getCacheableData(java.lang.Object o)
Return an object that theCacheMarshaller
should store.java.lang.Object
getValidData(java.lang.Object o)
Returns an object that this policy considers to be valid, based ono
.
-
-
-
Method Detail
-
getValidData
java.lang.Object getValidData(java.lang.Object o)
Returns an object that this policy considers to be valid, based ono
. Ifo
is not valid, this method will returnnull
.
-
getCacheableData
java.lang.Object getCacheableData(java.lang.Object o)
Return an object that theCacheMarshaller
should store.
-
-