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, updateLevelData
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCompiledType, getType, toSimpleValue, toValue
protected 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()
ComplexValue
getHandle
in class ComplexValue
public <T,E extends Throwable> T accept(ValueVisitor<T,E> visitor) throws E extends Throwable
Value
public String toUniqueKey()
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
preUnmarshal
in interface UnmarshalCallback
parent
- 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)
UnmarshalCallback
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public void replaceReferencedIds(Map<Long,Long> replacementMap)
ComplexValue
replaceReferencedIds
in interface EvaluationLevelAware
replaceReferencedIds
in class ComplexValue
public void replaceIdAndEvaluationLevel(Long newId, Long newBaseId, String newEvaluationLevel)
EvaluationLevelAware
replaceIdAndEvaluationLevel
in interface EvaluationLevelAware
replaceIdAndEvaluationLevel
in class ComplexValue
public void rebind(ModelInstance modelInstance)
ComplexValue
rebind
in interface ModelInstanceAware
rebind
in class ComplexValue
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public void remove()
public void revertRemove()
public boolean isRemoved()
Value
isRemoved
in interface Value
isRemoved
in class ComplexValue
public 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)
Value
public 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()
RecordChangeProxy
createChangeProxy
in interface RecordChangeProxy
public int getProxyLevel()
RecordChangeProxy
getProxyLevel
in interface RecordChangeProxy
public RecordChangeProxy getOriginalRecord()
RecordChangeProxy
getOriginalRecord
in interface RecordChangeProxy
public boolean isProxyOf(RecordChangeProxy record)
RecordChangeProxy
isProxyOf
in interface RecordChangeProxy
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.