|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.openjpa.conf.OpenJPAVersionAndConfigurationTypeValidationPolicy
public class OpenJPAVersionAndConfigurationTypeValidationPolicy
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.
| Constructor Summary | |
|---|---|
OpenJPAVersionAndConfigurationTypeValidationPolicy()
|
|
| Method Summary | |
|---|---|
void |
endConfiguration()
Invoked upon completion of bean property configuration for this object. |
Object |
getCacheableData(Object o)
Return an object that the CacheMarshaller should store. |
Object |
getValidData(Object o)
Returns an object that this policy considers to be valid, based on o. |
void |
setConfiguration(Configuration conf)
Invoked prior to setting bean properties. |
void |
startConfiguration()
Invoked before bean property configuration is begun on this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenJPAVersionAndConfigurationTypeValidationPolicy()
| Method Detail |
|---|
public Object getCacheableData(Object o)
CacheMarshaller.ValidationPolicyCacheMarshaller should store.
getCacheableData in interface CacheMarshaller.ValidationPolicypublic Object getValidData(Object o)
CacheMarshaller.ValidationPolicyo. If o is not valid, this method
will return null.
getValidData in interface CacheMarshaller.ValidationPolicypublic void setConfiguration(Configuration conf)
Configurable
setConfiguration in interface Configurablepublic void startConfiguration()
Configurable
startConfiguration in interface Configurablepublic void endConfiguration()
Configurable
endConfiguration in interface Configurable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||