1 21 package oracle.toplink.essentials.descriptors; 23 24 import java.io.Serializable ; 25 import oracle.toplink.essentials.exceptions.*; 26 import oracle.toplink.essentials.internal.sessions.AbstractSession; 27 28 38 public interface WrapperPolicy extends Serializable { 39 40 45 void initialize(AbstractSession session) throws DescriptorException; 46 47 52 boolean isTraversable(); 53 54 58 boolean isWrapped(Object object); 59 60 65 void setDescriptor(ClassDescriptor descriptor); 66 67 74 Object unwrapObject(Object proxy, AbstractSession session); 75 76 84 Object wrapObject(Object original, AbstractSession session); 85 } 86 | Popular Tags |