Package org.apache.openjpa.conf
Class NoOpCacheMarshaller
java.lang.Object
org.apache.openjpa.conf.NoOpCacheMarshaller
- All Implemented Interfaces:
CacheMarshaller
Implementation of
CacheMarshaller that does nothing.- Since:
- 1.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.openjpa.conf.CacheMarshaller
CacheMarshaller.ValidationPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()The id that this marshaller is responsible for.load()Load and return an instance of the type handled by this marshaller.voidThe id that this marshaller is responsible for.voidsetValidationPolicy(String policy) TheCacheMarshaller.ValidationPolicythat this marshaller should use.voidStoreointo the cache.
-
Constructor Details
-
NoOpCacheMarshaller
public NoOpCacheMarshaller()
-
-
Method Details
-
load
Description copied from interface:CacheMarshallerLoad and return an instance of the type handled by this marshaller. If the type implementsConfigurable, then this method will invokeConfigurable.setConfiguration(org.apache.openjpa.lib.conf.Configuration),Configurable.startConfiguration(), andConfigurable.endConfiguration()on the instance before returning.- Specified by:
loadin interfaceCacheMarshaller
-
setId
Description copied from interface:CacheMarshallerThe id that this marshaller is responsible for. A value for this parameter is required.- Specified by:
setIdin interfaceCacheMarshaller
-
getId
Description copied from interface:CacheMarshallerThe id that this marshaller is responsible for.- Specified by:
getIdin interfaceCacheMarshaller
-
setValidationPolicy
Description copied from interface:CacheMarshallerTheCacheMarshaller.ValidationPolicythat this marshaller should use. A value for this parameter is required. The class will be instantiated via theConfigurationsmechanism, ensuring that if the class implementsConfigurableorGenericConfigurable, it will be taken through the appropriate lifecycle.- Specified by:
setValidationPolicyin interfaceCacheMarshaller
-
store
Description copied from interface:CacheMarshallerStoreointo the cache.- Specified by:
storein interfaceCacheMarshaller
-