|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntityAttributeSetter
This is used by EntityDelegate
:s to set attributes
on the target entity when an entity is copied with preserveAttrs
set
to true
.
All attribute setters are run just after the target entity has been created,
before all setup locks have been released. The only exception is for files,
where some attribute setters can be run after the file data has been copied
to the target file. See isRunAfterCopyingFileData()
.
Method Summary | |
---|---|
boolean |
isRunAfterCopyingFileData()
If the entity attribute setter is used for setting attributes on a file, should it be run after the file data has been copied to the target file? If it should, it cannot require any other locks than a read lock on the source and a write lock on the target. |
void |
setAttributes(EntityImplementation source,
EntityImplementation target)
Set attributes on the target entity. |
Method Detail |
---|
void setAttributes(EntityImplementation source, EntityImplementation target)
isRunAfterCopyingFileData()
returns true
. In that case
the source entity is locked for reading and the target entity locked for
writing.
source
- The source entity. Locked for reading.target
- The target entity to set attributes on. Locked for writing.boolean isRunAfterCopyingFileData()
This can be used to set attributes that would otherwise be affected by the file data copying, such as a file's last modification time.
For entities other than files, this property has no effect.
true
if the attribute setter should be run after copying
file data for a file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |