Package org.castor.persist.proxy
Interface LazyCGLIB
-
- All Superinterfaces:
java.io.Serializable
public interface LazyCGLIB extends java.io.SerializableLazy is a place holder interface to indicate that a data object or a Collection in a data object is an Lazy instance. In other words, instances of the objects are not retrieved from the persistence store at load time, but will be materialized when the instance is actually needed/accessed.Implementations of this class need to provide a writeReplace() methor required during Java serialization.
- Author:
- Werner Guttmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ClassinterceptedClass()Returns the Class instance for the class to be intercepted.ClassMolderinterceptedClassMolder()Returns the ClassMolder of the object intercepted.java.lang.BooleaninterceptedHasMaterialized()IdentityinterceptedIdentity()Returns the identity of the object (class) intercepted.java.lang.ObjectwriteReplace()Implementation of writeReplace specific to lazy loading.
-
-
-
Method Detail
-
writeReplace
java.lang.Object writeReplace() throws java.io.ObjectStreamExceptionImplementation of writeReplace specific to lazy loading.- Returns:
- The real object.
- Throws:
java.io.ObjectStreamException- If the replace activity failed.
-
interceptedClass
java.lang.Class interceptedClass()
Returns the Class instance for the class to be intercepted.- Returns:
- Class instance for the intercepted class.
-
interceptedIdentity
Identity interceptedIdentity()
Returns the identity of the object (class) intercepted.- Returns:
- identity of the object (class) intercepted.
-
interceptedClassMolder
ClassMolder interceptedClassMolder()
Returns the ClassMolder of the object intercepted.- Returns:
- ClassMolder of the object intercepted.
-
interceptedHasMaterialized
java.lang.Boolean interceptedHasMaterialized()
- Returns:
- true if the object has been materialized; otherwise, returns false.
-
-