public class ExternalValue extends ComplexValue implements RecordChangeProxy
modelInstance| Modifier | Constructor and Description |
|---|---|
protected |
ExternalValue()
Creates new empty instance of
ExternalValue. |
|
ExternalValue(long id,
ModelInstance modelInstance,
String type,
String objectIdentification,
Long processInstanceId,
String versionString,
boolean renewVersion,
boolean register,
Long auditRevision)
Creates new instance of
ExternalValue. |
|
ExternalValue(ModelInstance modelInstance,
String type,
String objectIdentification,
Long processInstanceId,
Long auditRevision)
Creates new instance of
ExternalValue. |
| Modifier and Type | Method and Description |
|---|---|
<T,E extends Throwable> |
accept(ValueVisitor<T,E> visitor)
Accepts visitor.
|
void |
addToCachedNonsharedAssociations(String name,
ComplexValue value)
Adds to cache of nonshared associations.
|
void |
cleanAndSetRenewVersion()
Cleans version string and sets renewVersion to true.
|
RecordValue |
createChangeProxy()
Created a change proxy on this object.
|
Long |
getAuditRevision()
Returns audit revision.
|
ComplexValue |
getFromCachedNonsharedAssociations(String name)
Returns value from to cache of nonshared associations.
|
Handle |
getHandle()
Returns handle.
|
String |
getObjectIdentification()
Returns the object identification.
|
String[] |
getObjectIdentificationSegments()
Returns segments of the identification.
|
RecordChangeProxy |
getOriginalRecord()
Returns a record object that is original non-proxy record.
|
ProcessInstance |
getProcessInstance()
Deprecated.
information about process instance id is stored in the objectIdentificationSegments
|
Long |
getProcessInstanceId()
Deprecated.
information about process instance id is stored in the objectIdentificationSegments
|
int |
getProxyLevel()
Gets number of proxies from this object to original non-proxy record.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
String |
getVersionString()
Returns string representation of the shared entity version.
|
boolean |
hasObjectIdentification()
Returns true if object identification is set.
|
boolean |
isProxyOf(RecordChangeProxy record)
Returns true if this is direct or non-direct proxy of the record.
|
boolean |
isRemoved()
Returns true if value is removed
|
boolean |
isRenewVersion()
Returns true if the version should be set to new value.
|
ExternalValue |
makeCopy(ModelInstance targetModelInstance)
Creates copy of the value in the target model instance.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
rebind(ModelInstance modelInstance)
Re-binds to a model instance.
|
void |
remove()
Set this value to removed.
|
void |
removeFromCacheNonsharedAssociation(String name)
Removes from the nonshared association cache.
|
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.
|
void |
revertRemove()
Set this value to not removed.
|
void |
setObjectIdentification(String objectIdentification)
Sets the object identification.
|
void |
setProcessInstanceId(Long processInstanceId)
Deprecated.
information about process instance id is stored in the objectIdentificationSegments
|
void |
setRenewVersion(boolean renewVersion)
Sets renewVersion value.
|
void |
setVersionString(String versionString)
Sets string representation of the shared entity version.
|
String |
toString() |
String |
toUniqueKey()
Returns unique key for this instance.
|
clear, collect, commonAfterUnmarshal, createContext, findReplacementId, getBaseLevelEntity, getBaseLevelEntityId, getCompiledType, getEvaluationLevel, getId, getLowerLevelEntity, getLowerLevelEntityId, getLowestLevelEntity, getLowestLevelEntityId, getModelInstance, getOwnContext, getType, internalVersionConflictMessage, isInternalyVersioned, isLocked, isLowestExistingEntity, isPersistent, setLowerLevelEntityId, setPersistent, toSimpleValue, toValue, updateLevelDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCompiledType, getType, toSimpleValue, toValueprotected ExternalValue()
ExternalValue.public ExternalValue(ModelInstance modelInstance, String type, String objectIdentification, Long processInstanceId, Long auditRevision)
ExternalValue.modelInstance - type - objectIdentification - processInstanceId - auditRevision - NullPointerException - if modelInstance or type is nullpublic ExternalValue(long id,
ModelInstance modelInstance,
String type,
String objectIdentification,
Long processInstanceId,
String versionString,
boolean renewVersion,
boolean register,
Long auditRevision)
ExternalValue.id - modelInstance - type - objectIdentification - processInstanceId - versionString - renewVersion - register - auditRevision - NullPointerException - if modelInstance or type is nullpublic String getObjectIdentification()
public boolean hasObjectIdentification()
public void setObjectIdentification(String objectIdentification)
objectIdentification - @Deprecated public ProcessInstance getProcessInstance()
@Deprecated public Long getProcessInstanceId()
@Deprecated public void setProcessInstanceId(Long processInstanceId)
processInstanceId - public Handle getHandle()
ComplexValuegetHandle in class ComplexValuepublic <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Valuepublic String toUniqueKey()
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValuereplaceReferencedIds in interface EvaluationLevelAwarereplaceReferencedIds in class ComplexValuepublic void replaceIdAndEvaluationLevel(Long newId, Long newBaseId, String newEvaluationLevel)
EvaluationLevelAwarereplaceIdAndEvaluationLevel in interface EvaluationLevelAwarereplaceIdAndEvaluationLevel in class ComplexValuepublic void rebind(ModelInstance modelInstance)
ComplexValuerebind in interface ModelInstanceAwarerebind in class ComplexValuepublic Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void remove()
public void revertRemove()
public boolean isRemoved()
ValueisRemoved in interface ValueisRemoved in class ComplexValuepublic void addToCachedNonsharedAssociations(String name, ComplexValue value)
name - value - public void removeFromCacheNonsharedAssociation(String name)
name - public ComplexValue getFromCachedNonsharedAssociations(String name)
name - public ExternalValue makeCopy(ModelInstance targetModelInstance)
Valuepublic String getVersionString()
public void setVersionString(String versionString)
versionString - public boolean isRenewVersion()
public void setRenewVersion(boolean renewVersion)
renewVersion - public void cleanAndSetRenewVersion()
public Long getAuditRevision()
public String[] getObjectIdentificationSegments()
public RecordValue createChangeProxy()
RecordChangeProxycreateChangeProxy in interface RecordChangeProxypublic int getProxyLevel()
RecordChangeProxygetProxyLevel in interface RecordChangeProxypublic RecordChangeProxy getOriginalRecord()
RecordChangeProxygetOriginalRecord in interface RecordChangeProxypublic boolean isProxyOf(RecordChangeProxy record)
RecordChangeProxyisProxyOf in interface RecordChangeProxyCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.