mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 23:02:28 +01:00
Update wikipage Persistence, storage, and retrieval. (Signed-off-by:tqa7ve2mnbntqnfca3i6rk7arhc2kxr8).
git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@1846 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -75,7 +75,7 @@ If the structure in the file has been corrupted and <eiffel>retrieved</eiffel> i
|
||||
|
||||
==With SED storable==
|
||||
|
||||
The example below will show you how to store an object using the SED storable mechanism assuming the current class is a descendant of [[ref:libraries/base/reference/sed_storable_facilities_chart|SED_STORABLE_FACILITIES]]. It uses <eiffel>store</eiffel> feature from the but you could also use <eiffel>session_store</eiffel> or <eiffel>basic_store</eiffel> too.
|
||||
The example below will show you how to store an object using the SED storable mechanism assuming the current class is a descendant of [[ref:libraries/base/reference/sed_storable_facilities_chart|SED_STORABLE_FACILITIES]]. It uses the <eiffel>store</eiffel> feature but you could also use <eiffel>session_store</eiffel> or <eiffel>basic_store</eiffel> too.
|
||||
|
||||
<code>
|
||||
store_object (o: ANY; p: PATH)
|
||||
@@ -103,7 +103,7 @@ retrieve (p: PATH)
|
||||
do
|
||||
create f.make_with_path (p)
|
||||
f.open_read
|
||||
create reader.make_for_reading (f)
|
||||
create reader.make_for_reading (f)
|
||||
if attached {MY_TYPE} retrieved (reader, False) as data then
|
||||
-- Retrieved result is of expected type.
|
||||
-- Proceed with processing of result,
|
||||
|
||||
Reference in New Issue
Block a user