01: package net.sourceforge.jaxor.api;
02:
03: import net.sourceforge.jaxor.PrimaryKeySet;
04:
05: /**
06: * A basic map to ensure that each object maintains a single identity within the jaxor context.
07: * For instance, if you do the same query twice, it should return the same object instances each time. This helps
08: * performance, as well as preventing circular identities.
09: */
10: public interface InstanceCache extends java.io.Serializable {
11:
12: void remove(EntityInterface abstractEntity);
13:
14: EntityInterface updateCache(EntityInterface result);
15:
16: EntityInterface getFromCache(Class _implClass, PrimaryKeySet pk);
17:
18: void clear();
19: }
|