public abstract class CompiledRecord extends CompiledNamespace implements RecordHolder
| Constructor and Description |
|---|
CompiledRecord(RecordHolder recordHolder,
CompiledContext mainContext) |
CompiledRecord(RecordHolder recordHolder,
ExecutionContext nestedRecordContext,
CompiledContext mainContext) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
asMap()
Returns a map view of this record.
|
RecordHolder |
createChangeProxy()
Creates change proxy on this record holder.
|
void |
createPropertyProxy(HolderFactory holderFactory,
String property)
Creates change proxy for all object referenced by the propery and sets the proxy values to the property.
|
boolean |
equals(Object obj) |
Object |
executeMethod(Namespace parentNamespace,
FunctionSignature signature,
Object... arguments)
Executes method with parameters.
|
long |
getBaseLevelEntityId()
Returns id of the corresponding record in the base level.
|
RecordHolder |
getBaseLevelHolder()
Returns base level record holder.
|
RecordHolder |
getCompiled(Object compiledContext)
Returns instance of the compiled record for this record holder.
|
CompiledContext |
getCompiledContext()
Returns main compiled context.
|
static CompiledContext |
getCompiledContext(String moduleName,
ExecutionContext ctx) |
ExecutionContext |
getExecutionContext(RecordType asType) |
String |
getId()
Returns the id of the holder if present.
|
String |
getIdentificationString()
Returns identification string (string form of primary key)
|
Object |
getJavaIdentification()
Returns identification in plain java form.
|
Object |
getJavaObject()
Returns underlying java object if there is some.
|
static ExecutionContext |
getModuleContext(String moduleName,
ExecutionContext ctx) |
Namespace |
getNamespace(Namespace parentNamespace)
Returns namespace of this record.
|
ValueHolder |
getNotCompiledValue() |
RecordHolder |
getOriginalRecord()
Returns proxied record that is not proxy.
|
Object |
getProperty(String name)
Returns the property given the property name, if no such property exists, exception is
thrown.
|
int |
getProxyLevel()
For original record it returns 0.
|
RecordHolder |
getRecordHolder()
Returns corresponding record holder.
|
RecordHolder |
getRecordOnProxyLevel(int proxyLevel)
Returns record on the defined proxy level or on the smaller level if such does not exist.
|
static RecordType |
getStaticType() |
RecordType |
getType()
Returns the type of the holder.
|
String |
getVersionString()
Returns version in string format.
|
int |
hashCode() |
boolean |
hasOptimisticLockRelevantChanges()
Returns true if record has changes of properties that affect optimistic lock version.
|
boolean |
isProxy()
Returns true if record is proxy.
|
boolean |
isRemoved()
Returns true if the record is removed from the model instance.
|
boolean |
isUpdateNecessary(String property)
Returns true if association should be updated.
|
RecordHolder |
mergeChanges(Namespace namespace,
boolean cascade,
boolean checkConflicts)
If this is wrapper it merges all its changes to the wrapped record.
|
void |
remove(boolean isCascaded)
Removes record.
|
void |
resetAsType() |
void |
setCompiled(RecordHolder compiled) |
void |
setProperty(String name,
Object value)
Sets the property given the property name.
|
void |
setThisSideOfAssociation(String name,
Object object)
Sets value only this side of the association.
|
String |
toString() |
addVariable, addVariable, checkRollback, checkRollback, createChildContext, createList, createList, createMap, createMap, createOperationHolder, createOperationHolder, createOperationHolder, createOperationHolder, createRecord, createRecord, createRecordByConstructor, createRecordByConstructor, createReference, createSet, createSet, getCompiledContext, getComponent, getComponent, getConstantValue, getConstantValue, getEvaluationLevel, getEvaluationLevel, getExecutionContext, getModelId, getModelId, getModelInstance, getModelProviderService, getModelProviderService, getNamespace, getNamespace, getProcessModel, getProcessModel, getPropertySafe, getReferencedOperation, getReferencedOperation, getStaticVariableValue, getType, getType, getVariableValue, getVariableValue, nullsOrEquals, requireNonNull, selectContext, special, toboolean, toboolean, toBoolean, toBoolean, toCompiled, toCompiled, toCompiledObject, toCompiledObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetProxiedRecordpublic CompiledRecord(RecordHolder recordHolder, ExecutionContext nestedRecordContext, CompiledContext mainContext)
recordHolder - nestedRecordContext - mainContext - public CompiledRecord(RecordHolder recordHolder, CompiledContext mainContext)
recordHolder - mainContext - public static RecordType getStaticType()
public ExecutionContext getExecutionContext(RecordType asType)
public void resetAsType()
public static ExecutionContext getModuleContext(String moduleName, ExecutionContext ctx)
public static CompiledContext getCompiledContext(String moduleName, ExecutionContext ctx)
public RecordHolder getRecordHolder()
public RecordHolder getCompiled(Object compiledContext)
RecordHoldergetCompiled in interface RecordHolderpublic void setCompiled(RecordHolder compiled)
setCompiled in interface RecordHolderpublic CompiledContext getCompiledContext()
getCompiledContext in class CompiledNamespacepublic Object getProperty(String name)
RecordHoldergetProperty in interface RecordHolderpublic void setProperty(String name, Object value)
RecordHoldersetProperty in interface RecordHolderpublic String getId()
ValueHoldergetId in interface ValueHolderpublic void setThisSideOfAssociation(String name, Object object)
AssociationHandlersetThisSideOfAssociation in interface AssociationHandlerpublic boolean isUpdateNecessary(String property)
AssociationHandlerisUpdateNecessary in interface AssociationHandlerpublic RecordType getType()
ValueHoldergetType in interface RecordHoldergetType in interface ValueHolderpublic String getIdentificationString()
RecordHoldergetIdentificationString in interface RecordHolderpublic String getVersionString()
RecordHoldergetVersionString in interface RecordHolderpublic Object getJavaIdentification()
RecordHoldergetJavaIdentification in interface RecordHolderpublic Map<String,Object> asMap()
RecordHolderasMap in interface RecordHolderpublic void remove(boolean isCascaded)
RecordHolderremove in interface RecordHolderpublic long getBaseLevelEntityId()
RecordHoldergetBaseLevelEntityId in interface RecordHolderpublic RecordHolder getBaseLevelHolder()
RecordHoldergetBaseLevelHolder in interface RecordHolderpublic boolean hasOptimisticLockRelevantChanges()
RecordHolderhasOptimisticLockRelevantChanges in interface RecordHolderpublic boolean isRemoved()
RecordHolderisRemoved in interface RecordHolderpublic Namespace getNamespace(Namespace parentNamespace)
RecordHoldergetNamespace in interface RecordHolderpublic Object getJavaObject()
RecordHoldergetJavaObject in interface RecordHolderpublic RecordHolder createChangeProxy()
RecordHoldercreateChangeProxy in interface RecordHolderpublic RecordHolder mergeChanges(Namespace namespace, boolean cascade, boolean checkConflicts) throws LspsException
RecordHoldermergeChanges in interface RecordHolderLspsExceptionpublic int getProxyLevel()
RecordHoldergetProxyLevel in interface RecordHolderpublic RecordHolder getOriginalRecord()
RecordHoldergetOriginalRecord in interface RecordHolderpublic RecordHolder getRecordOnProxyLevel(int proxyLevel)
RecordHoldergetRecordOnProxyLevel in interface RecordHolderpublic void createPropertyProxy(HolderFactory holderFactory, String property)
RecordHoldercreatePropertyProxy in interface RecordHolderpublic boolean isProxy()
RecordHolderisProxy in interface RecordHolderpublic Object executeMethod(Namespace parentNamespace, FunctionSignature signature, Object... arguments) throws ErrorException
RecordHolderexecuteMethod in interface RecordHolderErrorExceptionpublic ValueHolder getNotCompiledValue()
getNotCompiledValue in interface ValueHolderCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.