next up previous contents
Next: 7.4 Graphical User Interface Up: 7.3 Persistent Storage of Previous: 7.3.2 Database of Persistent

7.3.3 Usage of Persistent Objects

Program 7.3 demonstrates the simplicity of making an object persistent. In this example an object named system.job-limit of type integer-class is requested from the Persistent Storage Manager. Depending on whether the object does already exist in the Persistent Storage Manager, its printed representation will be loaded from the database and re-instantiated, or a new object will be created from scratch based on the printed representation given as argument to the registration.
\begin{Program}
% latex2html id marker 7134\footnotesize
\centering
\listingin...
...t}
\caption{
A persistent object named
\texttt{system.job-limit}.}
\end{Program}



Rudi Strasser
1999-05-27