FileDocCategorySizeDatePackage
BackupValueHolder.javaAPI DocGlassfish v2 API3184Tue May 22 16:54:36 BST 2007oracle.toplink.essentials.internal.indirection

BackupValueHolder

public class BackupValueHolder extends ValueHolder
Used as the backup value holder in the unit of work for transparent indirection. This ensure that a reference to the original value holder is held in case the transparent collection or proxy is replace without first instantiating the original.
since
10.1.3
author
James Sutherland

Fields Summary
protected ValueHolderInterface
unitOfWorkValueHolder
Stores the original uow clone's value holder.
Constructors Summary
public BackupValueHolder(ValueHolderInterface unitOfWorkValueHolder)

        this.unitOfWorkValueHolder = unitOfWorkValueHolder;
    
Methods Summary
public oracle.toplink.essentials.indirection.ValueHolderInterfacegetUnitOfWorkValueHolder()
Return the original uow clone's value holder.

        return unitOfWorkValueHolder;
    
public java.lang.ObjectgetValue()
If the original value holder was not instantiated, then first instantiate it to obtain the backup value.

        // Ensures instantiation of the original, and setting of this back value holder's value.
        getUnitOfWorkValueHolder().getValue();
        return value;