Top Description Fields Methods
org.eclipse.persistence.indirection

public Interface WeavedAttributeValueHolderInterface<T>

extends ValueHolderInterface<T>
Known Direct Implementers
org.eclipse.persistence.internal.indirection.DatabaseValueHolder, org.eclipse.persistence.indirection.ValueHolder

INTERNAL: This interface defines functionality required by ValueHolders for OneToOneMappings that have LAZY access weaved into them and use Property (method) based access The weaving feature adds a paralell valueholder to the class it weaves and uses that valueholder to control the lazy loading. The methods on this interface provide information about how that weaved valueholder is related to the underlying value.
Author
tware

Field Summary

Inherited from org.eclipse.persistence.indirection.ValueHolderInterface:
shouldToStringInstantiate

Method Summary

Modifier and TypeMethod and Description
public boolean
isCoordinatedWithProperty()

When a valueholder is triggered, the weaved code will ensure its value is coordinated with the underlying property.

public boolean
isNewlyWeavedValueHolder()

This method returns whether this valueholder has been newly instantiated by weaved code.

public void
setIsCoordinatedWithProperty(boolean coordinated)

TopLink will call this method when the triggering of a weaved valueholder causes it's value to be coordinated with the underlying property

public void
setIsNewlyWeavedValueHolder(boolean isNew)

TopLink weaving calls this method on any valueholder it weaves into a class to indicate that it is new and it's value should not be considered.

public boolean
shouldAllowInstantiationDeferral()

INTERNAL: Return if add/remove should trigger instantiation or avoid.

Inherited from org.eclipse.persistence.indirection.ValueHolderInterface:
clonegetValueisInstantiatedsetValue

Method Detail

isCoordinatedWithPropertyback to summary
public boolean isCoordinatedWithProperty()

When a valueholder is triggered, the weaved code will ensure its value is coordinated with the underlying property. This method allows TopLink to determine if that has happened.

isNewlyWeavedValueHolderback to summary
public boolean isNewlyWeavedValueHolder()

This method returns whether this valueholder has been newly instantiated by weaved code.

setIsCoordinatedWithPropertyback to summary
public void setIsCoordinatedWithProperty(boolean coordinated)

TopLink will call this method when the triggering of a weaved valueholder causes it's value to be coordinated with the underlying property

setIsNewlyWeavedValueHolderback to summary
public void setIsNewlyWeavedValueHolder(boolean isNew)

TopLink weaving calls this method on any valueholder it weaves into a class to indicate that it is new and it's value should not be considered. The method is also called when coordination with the underlying value occurs to indicate the value can now be trusted.

shouldAllowInstantiationDeferralback to summary
public boolean shouldAllowInstantiationDeferral()

INTERNAL: Return if add/remove should trigger instantiation or avoid. Current instantiation is avoided is using change tracking.