org.exolab.castor.persist

Interface LazyCGLIB

public interface LazyCGLIB extends Serializable

Lazy 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
ClassinterceptedClass()
Returns the Class instance for the class to be intercepted.
ClassMolderinterceptedClassMolder()
Returns the ClassMolder of the object intercepted.
BooleaninterceptedHasMaterialized()
ObjectinterceptedIdentity()
Returns the identity of the object (class) intercepted.
LockEngineinterceptedLockEngine()
Returns the LockEngine of the object intercepted.
ObjectwriteReplace()
Implementation of writeReplace specific to lazy loading.

Method Detail

interceptedClass

public Class interceptedClass()
Returns the Class instance for the class to be intercepted.

Returns: Class instance for the intercepted class.

interceptedClassMolder

public ClassMolder interceptedClassMolder()
Returns the ClassMolder of the object intercepted.

Returns: ClassMolder of the object intercepted.

interceptedHasMaterialized

public Boolean interceptedHasMaterialized()

Returns: true if the object has been materialized; otherwise, returns false.

interceptedIdentity

public Object interceptedIdentity()
Returns the identity of the object (class) intercepted.

Returns: identity of the object (class) intercepted.

interceptedLockEngine

public LockEngine interceptedLockEngine()
Returns the LockEngine of the object intercepted.

Returns: LockEngine of the object intercepted.

writeReplace

public Object writeReplace()
Implementation of writeReplace specific to lazy loading.

Returns: The real object.

Throws: ObjectStreamException If the replace activity failed.

Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com