mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-05 22:32:01 +01:00
Compare commits
2 Commits
920a5b75ef
...
306f638a48
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
306f638a48 | ||
|
|
20d4f5d984 |
@@ -1,4 +1,4 @@
|
||||
[[Property:modification_date|Mon, 09 Oct 2023 15:00:21 GMT]]
|
||||
[[Property:modification_date|Tue, 13 Aug 2024 09:46:34 GMT]]
|
||||
[[Property:publication_date|Mon, 23 Jan 2023 09:14:48 GMT]]
|
||||
[[Property:title|ET: The Dynamic Structure: Execution Model]]
|
||||
[[Property:weight|-10]]
|
||||
@@ -671,7 +671,7 @@ These attribute specializations are presented in the [[Void-safe programming in
|
||||
|
||||
Another special type of attribute supported by Eiffel Software's compiler is the '''transient attribute'''. When an instance of a class to which a transient attribute belongs is saved to persistent storage, the field for the transient attribute is not included. So, transient attributes are transient in the sense that they are part of the object at runtime, but not when the object is stored on disk.
|
||||
|
||||
This type of attribute has benefits when using the persistence mechanisms provided with EiffelStudio, like [http://eiffel.com/developers/learning_maps/Training/Maps/PersistenceCanPayOff/Serialization.html SED]. Because transient attributes are not stored, they need not be accounted for upon retrieval. So, objects stored before changes to a class that only affect transient attributes will still be retrievable using the new class definition (whereas, if non-transient attributes were changed, a mismatch would occur during retrieval).
|
||||
This type of attribute has benefits when using the persistence mechanisms provided with EiffelStudio, like [[Persistence, storage, and retrieval#With_the_SED_persistence_format|SED]]. Because transient attributes are not stored, they need not be accounted for upon retrieval. So, objects stored before changes to a class that only affect transient attributes will still be retrievable using the new class definition (whereas, if non-transient attributes were changed, a mismatch would occur during retrieval).
|
||||
|
||||
An attribute is marked as transient by including a note option in its declaration:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user