|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheMarshaller
Responsible for marshalling and unmarshalling objects between memory and durable cache.
Nested Class Summary | |
---|---|
static interface |
CacheMarshaller.ValidationPolicy
Validation policies are responsible for computing whether or not a cached data structure is valid for the current context. |
Method Summary | |
---|---|
java.lang.String |
getId()
The id that this marshaller is responsible for. |
java.lang.Object |
load()
Load and return an instance of the type handled by this marshaller. |
void |
setId(java.lang.String id)
The id that this marshaller is responsible for. |
void |
setValidationPolicy(java.lang.String policy)
The CacheMarshaller.ValidationPolicy that this marshaller should use. |
void |
store(java.lang.Object o)
Store o into the cache. |
Method Detail |
---|
java.lang.Object load()
Configurable
, then this method will invoke
Configurable.setConfiguration(org.apache.openjpa.lib.conf.Configuration)
,
Configurable.startConfiguration()
, and
Configurable.endConfiguration()
on the instance before returning.
void store(java.lang.Object o)
o
into the cache.
void setId(java.lang.String id)
java.lang.String getId()
void setValidationPolicy(java.lang.String policy) throws java.lang.InstantiationException, java.lang.IllegalAccessException
CacheMarshaller.ValidationPolicy
that this marshaller should use.
A value for this parameter is required. The class will be instantiated
via the Configurations
mechanism,
ensuring that if the class implements Configurable
or
GenericConfigurable
, it will be taken
through the appropriate lifecycle.
java.lang.InstantiationException
java.lang.IllegalAccessException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |