public final class InternalRecordEntityAdapter extends RecordEntityAdapter
Constructor and Description |
---|
InternalRecordEntityAdapter(InternalRecordHolder holder)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
canRemoveThisFromReverseAssociation(RecordHolder removed,
RecordAssociation reverseAssociation)
Returns true if this entity/holder can be removed from reverse association.
|
void |
createPropertyProxy(HolderFactory holderFactory,
RecordProperty property,
RecordHolder proxySet) |
protected void |
firePropertyChange(String name,
Object value)
Fire property change event.
|
protected ModelInstance |
getModelInstance()
Returns model instance.
|
protected ModelProvider |
getModelProvider()
Returns model provider
|
RecordHolder |
getOriginalRecord() |
Object |
getProperty(RecordProperty property)
Returns property.
|
RecordHolder |
getProxiedRecord() |
int |
getProxyLevel() |
RecordType |
getType()
Returns record type.
|
boolean |
isUpdateNecessary(String property)
Returns true if association should be updated.
|
protected void |
removeAddedFromOldParents(RecordAssociation association,
RecordAssociation reverseAssociation,
RecordHolder added)
Removes entity/holder added to this recod's association from opld parent.
|
protected void |
removeThis()
Removes the adapted entity.
|
protected void |
setField(RecordProperty property,
Object value)
Sets field.
|
protected void |
setPropertyInternal(RecordProperty property,
Object value,
boolean ignoreCompositions)
Sets property.
|
void |
setThisSideOfAssociation(RecordProperty property,
Object value)
Sets value only this side of the association.
|
canSetProperty, getConverter, getEvaluationConverter, getHolder, getHolderFactory, getHolderInternal, getJavaObject, postSetAssociation, remove, removeNullObjects, setAssociation, setHolderInternal, setProperty
public InternalRecordEntityAdapter(InternalRecordHolder holder)
holder
- protected ModelInstance getModelInstance()
RecordEntityAdapter
getModelInstance
in class RecordEntityAdapter
protected ModelProvider getModelProvider()
RecordEntityAdapter
getModelProvider
in class RecordEntityAdapter
public RecordType getType()
RecordEntityAdapter
getType
in class RecordEntityAdapter
public Object getProperty(RecordProperty property)
RecordEntityAdapter
getProperty
in class RecordEntityAdapter
public void createPropertyProxy(HolderFactory holderFactory, RecordProperty property, RecordHolder proxySet)
public RecordHolder getOriginalRecord()
public RecordHolder getProxiedRecord()
public int getProxyLevel()
protected void setPropertyInternal(RecordProperty property, Object value, boolean ignoreCompositions)
RecordEntityAdapter
setPropertyInternal
in class RecordEntityAdapter
public void setThisSideOfAssociation(RecordProperty property, Object value)
AssociationHandler
setThisSideOfAssociation
in interface AssociationHandler
setThisSideOfAssociation
in class RecordEntityAdapter
protected void firePropertyChange(String name, Object value)
RecordEntityAdapter
firePropertyChange
in class RecordEntityAdapter
public boolean isUpdateNecessary(String property)
AssociationHandler
protected void setField(RecordProperty property, Object value)
RecordEntityAdapter
setField
in class RecordEntityAdapter
protected boolean canRemoveThisFromReverseAssociation(RecordHolder removed, RecordAssociation reverseAssociation)
RecordEntityAdapter
canRemoveThisFromReverseAssociation
in class RecordEntityAdapter
protected void removeAddedFromOldParents(RecordAssociation association, RecordAssociation reverseAssociation, RecordHolder added)
RecordEntityAdapter
removeAddedFromOldParents
in class RecordEntityAdapter
protected void removeThis()
removeThis
in class RecordEntityAdapter
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.