public abstract class AbstractValueHolder
extends org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
implements org.eclipse.persistence.indirection.ValueHolderInterface, org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface, org.eclipse.persistence.internal.indirection.WrappingValueHolder, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected org.springframework.beans.factory.BeanFactory |
beanFactory |
backupValueHolder, mapping, relationshipSourceObject, remoteUnitOfWork, sourceAttributeName, sourceObject, wrappedValueHolder, wrappedValueHolderRemoteID
Constructor and Description |
---|
AbstractValueHolder(org.springframework.beans.factory.BeanFactory beanFactory,
org.eclipse.persistence.indirection.ValueHolderInterface originalValueHolder,
java.lang.Object owner,
io.jmix.core.metamodel.model.MetaProperty metaProperty) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
afterLoadValue(java.lang.Object value) |
protected java.lang.Object |
buildBackupCloneFor(java.lang.Object cloneAttributeValue) |
java.lang.Object |
buildCloneFor(java.lang.Object originalAttributeValue) |
protected io.jmix.core.UnconstrainedDataManager |
getDataManager() |
protected io.jmix.core.FetchPlans |
getFetchPlans() |
io.jmix.eclipselink.impl.lazyloading.LoadOptions |
getLoadOptions() |
org.eclipse.persistence.mappings.DatabaseMapping |
getMapping() |
protected io.jmix.core.Metadata |
getMetadata() |
protected io.jmix.core.MetadataTools |
getMetadataTools() |
java.lang.Object |
getOwner() |
MetaPropertyInfo |
getPropertyInfo() |
org.eclipse.persistence.internal.sessions.AbstractRecord |
getRow() |
org.eclipse.persistence.internal.sessions.AbstractSession |
getSession() |
java.lang.Object |
getValue() |
java.lang.Object |
getValue(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow) |
org.eclipse.persistence.indirection.ValueHolderInterface |
getWrappedValueHolder() |
java.rmi.server.ObjID |
getWrappedValueHolderRemoteID() |
java.lang.Object |
instantiateForUnitOfWorkValueHolder(org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder unitOfWorkValueHolder) |
boolean |
isCoordinatedWithProperty() |
boolean |
isEasilyInstantiated() |
boolean |
isInstantiated() |
boolean |
isNewlyWeavedValueHolder() |
boolean |
isPessimisticLockingValueHolder() |
boolean |
isSerializedRemoteUnitOfWorkValueHolder() |
protected abstract java.lang.Object |
loadValue() |
void |
postInstantiate() |
void |
privilegedSetValue(java.lang.Object value) |
void |
releaseWrappedValueHolder(org.eclipse.persistence.internal.sessions.AbstractSession targetSession) |
protected void |
replaceLoadOptions(java.lang.Object entity,
io.jmix.core.metamodel.model.MetaProperty property) |
protected void |
replaceToExistingReferences(java.lang.Object entity,
io.jmix.core.metamodel.model.MetaProperty property,
java.lang.Object owner) |
void |
setBackupValueHolder(org.eclipse.persistence.indirection.ValueHolderInterface backupValueHolder) |
void |
setInstantiated() |
void |
setIsCoordinatedWithProperty(boolean coordinated) |
void |
setIsNewlyWeavedValueHolder(boolean isNew) |
void |
setLoadOptions(io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions) |
void |
setRow(org.eclipse.persistence.internal.sessions.AbstractRecord row) |
void |
setSession(org.eclipse.persistence.internal.sessions.AbstractSession session) |
void |
setUninstantiated() |
void |
setValue(java.lang.Object value) |
boolean |
shouldAllowInstantiationDeferral() |
getBackupValueHolder, getRelationshipSourceObject, getRemoteUnitOfWork, getSourceAttributeName, getSourceObject, getUnitOfWork, getValueFromServerObject, instantiate, instantiateImpl, resetFields, setMapping, setRelationshipSourceObject, setRemoteUnitOfWork, setSourceAttributeName, setSourceObject, setWrappedValueHolder, throwUnfetchedAttributeException
clone, isTransactionalValueHolder, toString
protected transient org.springframework.beans.factory.BeanFactory beanFactory
public AbstractValueHolder(org.springframework.beans.factory.BeanFactory beanFactory, org.eclipse.persistence.indirection.ValueHolderInterface originalValueHolder, java.lang.Object owner, io.jmix.core.metamodel.model.MetaProperty metaProperty)
public org.eclipse.persistence.indirection.ValueHolderInterface getWrappedValueHolder()
getWrappedValueHolder
in interface org.eclipse.persistence.internal.indirection.WrappingValueHolder
getWrappedValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public boolean isCoordinatedWithProperty()
isCoordinatedWithProperty
in interface org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
isCoordinatedWithProperty
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setIsCoordinatedWithProperty(boolean coordinated)
setIsCoordinatedWithProperty
in interface org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
setIsCoordinatedWithProperty
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public boolean isNewlyWeavedValueHolder()
isNewlyWeavedValueHolder
in interface org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
isNewlyWeavedValueHolder
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setIsNewlyWeavedValueHolder(boolean isNew)
setIsNewlyWeavedValueHolder
in interface org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
setIsNewlyWeavedValueHolder
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public boolean shouldAllowInstantiationDeferral()
shouldAllowInstantiationDeferral
in interface org.eclipse.persistence.indirection.WeavedAttributeValueHolderInterface
shouldAllowInstantiationDeferral
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public org.eclipse.persistence.mappings.DatabaseMapping getMapping()
getMapping
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public boolean isEasilyInstantiated()
isEasilyInstantiated
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public boolean isPessimisticLockingValueHolder()
isPessimisticLockingValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public java.rmi.server.ObjID getWrappedValueHolderRemoteID()
getWrappedValueHolderRemoteID
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public boolean isSerializedRemoteUnitOfWorkValueHolder()
isSerializedRemoteUnitOfWorkValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public java.lang.Object instantiateForUnitOfWorkValueHolder(org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder unitOfWorkValueHolder)
instantiateForUnitOfWorkValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public void releaseWrappedValueHolder(org.eclipse.persistence.internal.sessions.AbstractSession targetSession)
releaseWrappedValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public void setBackupValueHolder(org.eclipse.persistence.indirection.ValueHolderInterface backupValueHolder)
setBackupValueHolder
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public org.eclipse.persistence.internal.sessions.AbstractRecord getRow()
getRow
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public org.eclipse.persistence.internal.sessions.AbstractSession getSession()
getSession
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public java.lang.Object getValue(org.eclipse.persistence.internal.sessions.UnitOfWorkImpl uow)
getValue
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void postInstantiate()
postInstantiate
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void privilegedSetValue(java.lang.Object value)
privilegedSetValue
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setInstantiated()
setInstantiated
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setRow(org.eclipse.persistence.internal.sessions.AbstractRecord row)
setRow
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setSession(org.eclipse.persistence.internal.sessions.AbstractSession session)
setSession
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setUninstantiated()
setUninstantiated
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public java.lang.Object buildCloneFor(java.lang.Object originalAttributeValue)
buildCloneFor
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
protected java.lang.Object buildBackupCloneFor(java.lang.Object cloneAttributeValue)
buildBackupCloneFor
in class org.eclipse.persistence.internal.indirection.UnitOfWorkValueHolder
public boolean isInstantiated()
isInstantiated
in interface org.eclipse.persistence.indirection.ValueHolderInterface
isInstantiated
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public java.lang.Object getValue()
getValue
in interface org.eclipse.persistence.indirection.ValueHolderInterface
getValue
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
protected abstract java.lang.Object loadValue()
protected abstract void afterLoadValue(java.lang.Object value)
public void setValue(java.lang.Object value)
setValue
in interface org.eclipse.persistence.indirection.ValueHolderInterface
setValue
in class org.eclipse.persistence.internal.indirection.DatabaseValueHolder
public void setLoadOptions(io.jmix.eclipselink.impl.lazyloading.LoadOptions loadOptions)
public io.jmix.eclipselink.impl.lazyloading.LoadOptions getLoadOptions()
public java.lang.Object getOwner()
public MetaPropertyInfo getPropertyInfo()
protected void replaceToExistingReferences(java.lang.Object entity, io.jmix.core.metamodel.model.MetaProperty property, java.lang.Object owner)
protected void replaceLoadOptions(java.lang.Object entity, io.jmix.core.metamodel.model.MetaProperty property)
protected io.jmix.core.Metadata getMetadata()
protected io.jmix.core.MetadataTools getMetadataTools()
protected io.jmix.core.UnconstrainedDataManager getDataManager()
protected io.jmix.core.FetchPlans getFetchPlans()