Package org.apache.openjpa.conf
Interface CacheMarshaller.ValidationPolicy
-
- All Known Implementing Classes:
OpenJPAVersionAndConfigurationTypeValidationPolicy
- Enclosing interface:
- CacheMarshaller
public static interface CacheMarshaller.ValidationPolicyValidation 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 tooin the expected case. Implementations of this class will often also implementConfigurablein order to receive the currentConfiguration.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetCacheableData(java.lang.Object o)Return an object that theCacheMarshallershould store.java.lang.ObjectgetValidData(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. Ifois not valid, this method will returnnull.
-
getCacheableData
java.lang.Object getCacheableData(java.lang.Object o)
Return an object that theCacheMarshallershould store.
-
-