org.apache.openjpa.conf
Class OpenJPAVersionAndConfigurationTypeValidationPolicy
java.lang.Object
   org.apache.openjpa.conf.OpenJPAVersionAndConfigurationTypeValidationPolicy
org.apache.openjpa.conf.OpenJPAVersionAndConfigurationTypeValidationPolicy
- All Implemented Interfaces: 
- CacheMarshaller.ValidationPolicy, Configurable
- public class OpenJPAVersionAndConfigurationTypeValidationPolicy 
- extends java.lang.Object- implements CacheMarshaller.ValidationPolicy, Configurable
Compute validity based on whether or not the cached data is from the same
 version of Kodo as the current install. This also checks OpenJPA version
 information in case the OpenJPA jars were independently updated.
- Since:
- 1.1.0
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
OpenJPAVersionAndConfigurationTypeValidationPolicy
public OpenJPAVersionAndConfigurationTypeValidationPolicy()
getCacheableData
public java.lang.Object getCacheableData(java.lang.Object o)
- Description copied from interface: CacheMarshaller.ValidationPolicy
- Return an object that the CacheMarshallershould store.
 
- 
- Specified by:
- getCacheableDatain interface- CacheMarshaller.ValidationPolicy
 
- 
 
getValidData
public java.lang.Object getValidData(java.lang.Object o)
- Description copied from interface: CacheMarshaller.ValidationPolicy
- Returns an object that this policy considers to be valid, based
 on o. Ifois not valid, this method
 will returnnull.
 
- 
- Specified by:
- getValidDatain interface- CacheMarshaller.ValidationPolicy
 
- 
 
setConfiguration
public void setConfiguration(Configuration conf)
- 
- Specified by:
- setConfigurationin interface- Configurable
 
- 
 
startConfiguration
public void startConfiguration()
- 
- Specified by:
- startConfigurationin interface- Configurable
 
- 
 
endConfiguration
public void endConfiguration()
- 
- Specified by:
- endConfigurationin interface- Configurable
 
- 
 
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.