Top Description Fields Constructors Methods
org.eclipse.persistence.indirection

public Class ValueHolder<T>

extends Object
implements WeavedAttributeValueHolderInterface<T>, Cloneable, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, java.lang.Cloneable, org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface, org.eclipse.persistence.indirection.ValueHolderInterface
Imports
java.io.Serializable

Purpose: Act as a place holder for a variable that required a value holder interface. This class should be used to initialze an objects attributes that are using indirection is their mappings.

Field Summary

Modifier and TypeField and Description
private boolean
isCoordinatedWithProperty

The two variable below are used as part of the implementation of WeavedAttributeValueHolderInterface They are used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property

private boolean
protected T
value

Stores the wrapped object.

Constructor Summary

AccessConstructor and Description
public
ValueHolder()

PUBLIC: Initialize the holder.

public
ValueHolder(T value)

PUBLIC: Initialize the holder with an object.

Method Summary

Modifier and TypeMethod and Description
public Object
public T
getValue()

Implements org.eclipse.persistence.indirection.ValueHolderInterface.getValue.

PUBLIC: Return the wrapped object.
public boolean
isCoordinatedWithProperty()

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.isCoordinatedWithProperty.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property
public boolean
isInstantiated()

Implements org.eclipse.persistence.indirection.ValueHolderInterface.isInstantiated.

PUBLIC: Return a boolean indicating whether the wrapped object has been set or not.
public boolean
isNewlyWeavedValueHolder()

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.isNewlyWeavedValueHolder.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class
public void
setIsCoordinatedWithProperty(boolean coordinated)

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.setIsCoordinatedWithProperty.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property This method will be called internall when the state of Coordination between the weaved valueholder and the underlying value is known
public void
setIsNewlyWeavedValueHolder(boolean isNew)

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.setIsNewlyWeavedValueHolder.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class This method will be called when a ValueHolder is instantiated in a weaved class
public void
setValue(T value)

Implements org.eclipse.persistence.indirection.ValueHolderInterface.setValue.

PUBLIC: Set the wrapped object.
public boolean
public String
toString()

Overrides java.lang.Object.toString.

INTERNAL:
Inherited from java.lang.Object:
equalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

isCoordinatedWithPropertyback to summary
private boolean isCoordinatedWithProperty

The two variable below are used as part of the implementation of WeavedAttributeValueHolderInterface They are used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property

isNewlyWeavedValueHolderback to summary
private boolean isNewlyWeavedValueHolder
valueback to summary
protected T value

Stores the wrapped object.

Constructor Detail

ValueHolderback to summary
public ValueHolder()

PUBLIC: Initialize the holder.

ValueHolderback to summary
public ValueHolder(T value)

PUBLIC: Initialize the holder with an object.

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Implements org.eclipse.persistence.indirection.ValueHolderInterface.clone.

INTERNAL:

Returns:Object

Doc from java.lang.Object.clone.

a clone of this instance.

Annotations
@Override
getValueback to summary
public T getValue()

Implements org.eclipse.persistence.indirection.ValueHolderInterface.getValue.

PUBLIC: Return the wrapped object.

Annotations
@Override
isCoordinatedWithPropertyback to summary
public boolean isCoordinatedWithProperty()

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.isCoordinatedWithProperty.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property

Annotations
@Override
isInstantiatedback to summary
public boolean isInstantiated()

Implements org.eclipse.persistence.indirection.ValueHolderInterface.isInstantiated.

PUBLIC: Return a boolean indicating whether the wrapped object has been set or not.

Annotations
@Override
isNewlyWeavedValueHolderback to summary
public boolean isNewlyWeavedValueHolder()

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.isNewlyWeavedValueHolder.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class

Annotations
@Override
setIsCoordinatedWithPropertyback to summary
public void setIsCoordinatedWithProperty(boolean coordinated)

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.setIsCoordinatedWithProperty.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to track whether a valueholder that has been weaved into a class is coordinated with the underlying property This method will be called internall when the state of Coordination between the weaved valueholder and the underlying value is known

Annotations
@Override
setIsNewlyWeavedValueHolderback to summary
public void setIsNewlyWeavedValueHolder(boolean isNew)

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.setIsNewlyWeavedValueHolder.

Used as part of the implementation of WeavedAttributeValueHolderInterface Used to determine if this ValueHolder was added instantiated as part of the constructor of a weaved class This method will be called when a ValueHolder is instantiated in a weaved class

Annotations
@Override
setValueback to summary
public void setValue(T value)

Implements org.eclipse.persistence.indirection.ValueHolderInterface.setValue.

PUBLIC: Set the wrapped object.

Annotations
@Override
shouldAllowInstantiationDeferralback to summary
public boolean shouldAllowInstantiationDeferral()

Implements org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface.shouldAllowInstantiationDeferral.

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

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

INTERNAL:

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override