public class ExternalRecordHolder extends ExternalRecordHolderBase
NO_PROPERTY_MSG
Constructor and Description |
---|
ExternalRecordHolder(ExternalValue val,
ModelProvider modelProvider,
ExternalRecordEntityAdapter adapter)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
clearEntity()
Clears entity.
|
RecordHolder |
createChangeProxy(RecordHolder proxySet,
boolean isLazySpreading)
Creates change proxy on this record holder.
|
ExternalRecordEntityAdapter |
getAdapter()
Returns shared record entity adapter
|
RecordHolder |
getBaseLevelHolder()
Returns holder for the base level value.
|
Object |
getEntity()
Returns the Hibernate entity.
|
String |
getIdentificationString()
Returns identification string (string form of primary key)
|
Object |
getProperty(String name)
Returns the property given the property name, if no such property exists, exception is
thrown.
|
protected ExternalValue |
getVal()
Returns underlying
ExternalValue . |
Long |
getVersion()
Returns version in string format.
|
boolean |
isUpdateNecessary(String property)
Returns true if association should be updated.
|
boolean |
needsToBeReloaded()
Returns true if entity needs to be reloaded.
|
void |
refresh()
Refresh of the entity.
|
void |
remove(boolean isCascaded)
Removes the Hibernate entity.
|
void |
setProperty(String name,
Object value)
Sets the property given the property name.
|
void |
setThisSideOfAssociation(RecordProperty property,
Object object)
Sets value only this side of the association.
|
void |
updateVersion()
Update version.
|
equals, getAdapterInternal, getJavaIdentification, hashCode, setAdapter
asMap, clearRuntimeValues, createPropertyProxy, executeMethod, getCompiled, getEvaluationLevel, getJavaObject, getNamespace, getOriginalRecord, getProxiedRecord, getProxyLevel, getProxySet, getRecordOnProxyLevel, getType, hasOptimisticLockRelevantChanges, isProxy, isRemoved, mergeChanges, setCompiled
getBaseLevelEntityId, getConverter, getEvaluationConverter, getHandle, getId, getModelInstance, getModelProvider, getNotCompiledValueHolder, getProcessModel, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asMap, createPropertyProxy, executeMethod, getBaseLevelEntityId, getCompiled, getEvaluationLevel, getJavaObject, getNamespace, getOriginalRecord, getProxiedRecord, getProxyLevel, getProxySet, getRecordOnProxyLevel, getType, hasOptimisticLockRelevantChanges, isProxy, isRemoved, mergeChanges, setCompiled
getId, getNotCompiledValueHolder
public ExternalRecordHolder(ExternalValue val, ModelProvider modelProvider, ExternalRecordEntityAdapter adapter)
val
- modelProvider
- adapter
- public ExternalRecordEntityAdapter getAdapter()
getAdapter
in class ExternalRecordHolderBase
public Object getEntity()
public void remove(boolean isCascaded)
remove
in interface RecordHolder
remove
in class ExternalRecordHolderBase
public Object getProperty(String name)
RecordHolder
public void setProperty(String name, Object value)
RecordHolder
public String getIdentificationString()
RecordHolder
getIdentificationString
in interface RecordHolder
getIdentificationString
in class ExternalRecordHolderBase
public Long getVersion()
RecordHolder
getVersion
in interface RecordHolder
getVersion
in class ExternalRecordHolderBase
public void setThisSideOfAssociation(RecordProperty property, Object object)
AssociationHandler
setThisSideOfAssociation
in interface AssociationHandler
setThisSideOfAssociation
in class RecordHolderBase<ExternalValue>
public boolean isUpdateNecessary(String property)
AssociationHandler
isUpdateNecessary
in interface AssociationHandler
isUpdateNecessary
in class RecordHolderBase<ExternalValue>
public RecordHolder getBaseLevelHolder()
getBaseLevelHolder
in interface RecordHolder
getBaseLevelHolder
in class RecordHolderBase<ExternalValue>
protected ExternalValue getVal()
ExternalValue
.getVal
in class HolderImpl<ExternalValue>
ExternalValue
public void clearEntity()
public boolean needsToBeReloaded()
public void updateVersion()
public RecordHolder createChangeProxy(RecordHolder proxySet, boolean isLazySpreading)
RecordHolder
createChangeProxy
in interface RecordHolder
createChangeProxy
in class RecordHolderBase<ExternalValue>
public void refresh()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.