public abstract class ComplexValue extends Object implements Value, Collectible, EntityWithId, ModelInstanceAware, EvaluationLevelAware
Value. The type cannot
be null.| Modifier and Type | Field and Description |
|---|---|
protected ModelInstance |
modelInstance
Model instance.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ComplexValue()
Creates new empty instance of
ComplexValue. |
protected |
ComplexValue(long id,
ModelInstance modelInstance,
String type,
boolean register)
Creates new instance of
ComplexValue. |
protected |
ComplexValue(long id,
ModelInstance modelInstance,
String type,
boolean register,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId)
Creates new instance of
ComplexValue. |
protected |
ComplexValue(ModelInstance modelInstance,
String type,
boolean register)
Creates new instance of
ComplexValue. |
protected |
ComplexValue(ModelInstance modelInstance,
String type,
boolean register,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId)
Creates new instance of
ComplexValue. |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears evaluation data.
|
void |
collect()
Removes itself from the process.
|
protected void |
commonAfterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Common actions in after unmarshal
|
protected Context |
createContext(long parentContextId) |
protected Long |
findReplacementId(Map<Long,Long> replacementMap,
Long oldId)
Returns replacement id.
|
ComplexValue |
getBaseLevelEntity()
Returns base level value.
|
Long |
getBaseLevelEntityId()
Returns id of the corresponding value in base level.
|
Type |
getCompiledType(ModelProviderClientService modelProviderService)
Returns the compiled type.
|
String |
getEvaluationLevel()
Returns evaluation level of this value.
|
Handle |
getHandle()
Returns handle.
|
long |
getId()
Returns the id.
|
ComplexValue |
getLowerLevelEntity()
Returns lower level value.
|
Long |
getLowerLevelEntityId()
Returns id of the corresponding value in previous lower level.
|
ComplexValue |
getLowestLevelEntity()
Returns lowest level value.
|
Long |
getLowestLevelEntityId()
Returns id of the corresponding value in the lowest exiting level.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
Context |
getOwnContext(long parentContextId)
Returns own context
|
String |
getType()
Returns the type.
|
String |
internalVersionConflictMessage(EvaluationLevelAware entity)
Returns message for internal versioning conflict.
|
boolean |
isInternalyVersioned()
Returns true if the entity is internally (in scope of model instance) versioned.
|
boolean |
isLocked()
Returns true if the context is read only.
|
boolean |
isLowestExistingEntity()
Returns true if this entity is the lowest existing entity.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
boolean |
isRemoved()
Returns true if value is removed
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
void |
replaceIdAndEvaluationLevel(Long newId,
Long newBaseId,
String newEvaluationLevel)
Replace id, base evaluation level entity id and evaluation level in the entity.
|
void |
replaceReferencedIds(Map<Long,Long> replacementMap)
Replace referenced ids according to mappings in the replacement map.
|
boolean |
setLowerLevelEntityId(long lowerLevelId)
Sets lower level entity id if it is correct value.
|
void |
setPersistent(boolean persistent)
Sets persistent flag.
|
SimpleValue |
toSimpleValue()
If this is
SimpleValue this method returns this, otherwise it returns a
ValueRef to this. |
Value |
toValue()
If this is a
ValueRef this method returns the referenced value, otherwise it returns
this. |
void |
updateLevelData(Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId)
Updates references to the corresponding elements in other evaluation levels.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpostUnmarshal, preUnmarshalgetReferencesprotected ModelInstance modelInstance
protected ComplexValue()
ComplexValue.protected ComplexValue(long id,
ModelInstance modelInstance,
String type,
boolean register,
String level,
Long baseLevelValueId,
Long lowestLevelValueId,
Long lowerLevelValueId)
ComplexValue.id - modelInstance - type - register - level - baseLevelValueId - lowestLevelValueId - lowerLevelValueId - NullPointerException - if modelInstance or type is nullprotected ComplexValue(long id,
ModelInstance modelInstance,
String type,
boolean register)
ComplexValue.id - modelInstance - type - register - NullPointerException - if modelInstance or type is nullprotected ComplexValue(ModelInstance modelInstance, String type, boolean register, String level, Long baseLevelValueId, Long lowestLevelValueId, Long lowerLevelValueId)
ComplexValue.modelInstance - type - register - level - baseLevelValueId - lowestLevelValueId - lowerLevelValueId - NullPointerException - if modelInstance or type is nullprotected ComplexValue(ModelInstance modelInstance, String type, boolean register)
ComplexValue.modelInstance - type - register - NullPointerException - if modelInstance or type is nullpublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic Handle getHandle()
public Type getCompiledType(ModelProviderClientService modelProviderService)
ValuegetCompiledType in interface Valuepublic SimpleValue toSimpleValue()
ValueSimpleValue this method returns this, otherwise it returns a
ValueRef to this.toSimpleValue in interface ValueSimpleValuepublic Value toValue()
ValueValueRef this method returns the referenced value, otherwise it returns
this.public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void setPersistent(boolean persistent)
persistent - public boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic String getEvaluationLevel()
getEvaluationLevel in interface EvaluationLevelAwarepublic boolean isLocked()
isLocked in interface EvaluationLevelAwarepublic void rebind(ModelInstance modelInstance)
rebind in interface ModelInstanceAwaremodelInstance - public void replaceIdAndEvaluationLevel(Long newId, Long newBaseId, String newEvaluationLevel)
EvaluationLevelAwarereplaceIdAndEvaluationLevel in interface EvaluationLevelAwarepublic void replaceReferencedIds(Map<Long,Long> replacementMap)
replaceReferencedIds in interface EvaluationLevelAwarereplacementMap - protected Long findReplacementId(Map<Long,Long> replacementMap, Long oldId)
replacementMap - oldId - public void updateLevelData(Long baseLevelValueId, Long lowestLevelValueId, Long lowerLevelValueId)
EvaluationLevelAwareupdateLevelData in interface EvaluationLevelAwarepublic Long getBaseLevelEntityId()
getBaseLevelEntityId in interface EvaluationLevelAwarepublic ComplexValue getBaseLevelEntity()
getBaseLevelEntity in interface EvaluationLevelAwarepublic Long getLowestLevelEntityId()
getLowestLevelEntityId in interface EvaluationLevelAwarepublic ComplexValue getLowestLevelEntity()
getLowestLevelEntity in interface EvaluationLevelAwarepublic boolean isLowestExistingEntity()
EvaluationLevelAwareisLowestExistingEntity in interface EvaluationLevelAwarepublic Long getLowerLevelEntityId()
getLowerLevelEntityId in interface EvaluationLevelAwarepublic ComplexValue getLowerLevelEntity()
getLowerLevelEntity in interface EvaluationLevelAwarepublic boolean setLowerLevelEntityId(long lowerLevelId)
lowerLevelId - protected void commonAfterUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
unmarshaller - parent - public boolean isInternalyVersioned()
EvaluationLevelAwareisInternalyVersioned in interface EvaluationLevelAwarepublic String internalVersionConflictMessage(EvaluationLevelAware entity)
EvaluationLevelAwareinternalVersionConflictMessage in interface EvaluationLevelAwarepublic void clear()
EvaluationLevelAwareclear in interface EvaluationLevelAwarepublic boolean isRemoved()
Valueprotected Context createContext(long parentContextId)
public Context getOwnContext(long parentContextId)
parentContextId - Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.