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 ObjectgetCacheableData(Object o)Return an object that theCacheMarshallershould store.ObjectgetValidData(Object o)Returns an object that this policy considers to be valid, based ono. 
 - 
 
- 
- 
Method Detail
- 
getValidData
Object getValidData(Object o)
Returns an object that this policy considers to be valid, based ono. Ifois not valid, this method will returnnull. 
- 
getCacheableData
Object getCacheableData(Object o)
Return an object that theCacheMarshallershould store. 
 - 
 
 -