public interface RecordHolder extends ValueHolder, AssociationHandler
RecordType
must implement this interface.Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asMap()
Returns a map view of this record.
|
RecordHolder |
createChangeProxy(RecordHolder proxySet,
boolean isLazySpreading)
Creates change proxy on this record holder.
|
void |
createPropertyProxy(HolderFactory holderFactory,
String property,
RecordHolder proxySet)
Creates change proxy for all object referenced by the propery and sets the proxy values to the property.
|
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.
|
String |
getEvaluationLevel()
Returns the evaluation level.
|
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.
|
Namespace |
getNamespace(Namespace parentNamespace)
Returns namespace of this record.
|
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.
|
RecordHolder |
getProxiedRecord()
Returns proxied record of this record.
|
int |
getProxyLevel()
For original record it returns 0.
|
RecordHolder |
getProxySet()
Returns proxySet of this record.
|
RecordHolder |
getRecordOnProxyLevel(int proxyLevel)
Returns record with the defined proxy level or with the smaller level if such does not exist.
|
RecordType |
getType()
Returns the type of the holder.
|
Long |
getVersion()
Returns version in string format.
|
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.
|
RecordHolder |
mergeChanges(Namespace namespace,
boolean checkConflicts)
If this is wrapper it merges all its changes to the wrapped record.
|
void |
remove(boolean isCascaded)
Removes record.
|
void |
setCompiled(RecordHolder compiled)
Set instance of compiled record.
|
void |
setProperty(String name,
Object value)
Sets the property given the property name.
|
getId, getNotCompiledValueHolder
isUpdateNecessary, setThisSideOfAssociation
RecordType getType()
ValueHolder
getType
in interface ValueHolder
Object getProperty(String name)
name
- NullPointerException
- if name
is nullIllegalArgumentException
- if no property named name
existsvoid setProperty(String name, Object value)
name
- value
- NullPointerException
- if name
is nullIllegalArgumentException
- if no property named name
existsString getIdentificationString()
Long getVersion()
Object getJavaIdentification()
Map<String,Object> asMap()
void remove(boolean isCascaded)
isCascaded
- String getEvaluationLevel()
long getBaseLevelEntityId()
RecordHolder getBaseLevelHolder()
boolean hasOptimisticLockRelevantChanges()
boolean isRemoved()
Namespace getNamespace(Namespace parentNamespace)
parentNamespace
- Object getJavaObject()
RecordHolder createChangeProxy(RecordHolder proxySet, boolean isLazySpreading)
proxySet
- isLazySpreading
- RecordHolder mergeChanges(Namespace namespace, boolean checkConflicts) throws LspsException
namespace
- checkConflicts
- LspsException
int getProxyLevel()
RecordHolder getOriginalRecord()
RecordHolder getProxiedRecord()
RecordHolder getProxySet()
RecordHolder getRecordOnProxyLevel(int proxyLevel)
proxyLevel
- void createPropertyProxy(HolderFactory holderFactory, String property, RecordHolder proxySet)
holderFactory
- property
- proxySet
- boolean isProxy()
Object executeMethod(Namespace parentNamespace, FunctionSignature signature, Object... arguments) throws ErrorException
parentNamespace
- signature
- arguments
- ErrorException
RecordHolder getCompiled(Object compiledContext)
compiledContext
- void setCompiled(RecordHolder compiled)
compiled
- Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.