📄 cwp3730.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.IPersistent</TITLE><LINK REL=STYLESHEET HREF="../CommentReport.css" TYPE="text/css"></HEAD><BODY topmargin=0 rightmargin=0 leftmargin=0 style="background-image: url(../titletile.jpg); background-repeat:repeat-x; background-position: 0 0;" ><DIV CLASS="PageHeading">Perst.IPersistent Interface</DIV><DIV CLASS="Description"> Interface of all persistent capable objects
<P></DIV><IMG src="../GradLeft.jpg" width=7 height=378 alt="" border="0" style="position:absolute; left:10; top:18;z-Index:2"><IMG src="../GradTop.jpg" width=352 height=7 alt="" border="0" align="top" style="position:absolute; left:10; top:18; z-index:1"><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Access: </SPAN>Public</DIV><TABLE CLASS="InfoTable" cellpadding=0 cellspacing=0><TR height=20><TD width=20> </TD><TD valign=top align=left width=9 bgcolor="#cccc66"><IMG SRC="../graycorner.jpg" align=top></TD><TD CLASS="TableLightLabel" WIDTH=206>Members</TD><TD CLASS="TableLightLabel" >Description</TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3731.HTM" TARGET="CNTFRAME">Oid</A></TD><TD CLASS="TableLightDesc"> Get object identifier (OID)
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3733.HTM" TARGET="CNTFRAME">Storage</A></TD><TD CLASS="TableLightDesc"> Get storage in which this object is stored
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3735.HTM" TARGET="CNTFRAME">Load</A></TD><TD CLASS="TableLightDesc"> Load object from the database (if needed)
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3736.HTM" TARGET="CNTFRAME">IsRaw</A></TD><TD CLASS="TableLightDesc"> Check if object is stub and has to be loaded from the database
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3737.HTM" TARGET="CNTFRAME">IsPersistent</A></TD><TD CLASS="TableLightDesc"> Check if object is persistent
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3738.HTM" TARGET="CNTFRAME">IsDeleted</A></TD><TD CLASS="TableLightDesc"> Check if object is deleted by GC from process memory
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3739.HTM" TARGET="CNTFRAME">IsModified</A></TD><TD CLASS="TableLightDesc"> Check if object was modified within current transaction
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3740.HTM" TARGET="CNTFRAME">MakePersistent</A></TD><TD CLASS="TableLightDesc"> Explicitely make object peristent. Usually objects are made persistent
implicitlely using "persistency on reachability apporach", but this
method allows to do it explicitly
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3741.HTM" TARGET="CNTFRAME">Store</A></TD><TD CLASS="TableLightDesc"> Save object in the database
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3742.HTM" TARGET="CNTFRAME">Modify</A></TD><TD CLASS="TableLightDesc">
Mark object as modified. Object will be saved to the database during transaction commit.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3743.HTM" TARGET="CNTFRAME">Deallocate</A></TD><TD CLASS="TableLightDesc"> Deallocate persistent object from the database
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3744.HTM" TARGET="CNTFRAME">RecursiveLoading</A></TD><TD CLASS="TableLightDesc"> Specified whether object should be automatically loaded when it is referenced
by other loaded peristent object. Default implementation of this method
returns <code>true</code> making all cluster of referenced objects loaded together.
To avoid main memory overflow you should stop recursive loading of all objects
from the database to main memory by redefining this method in some classes and returing
<code>false</code> in it. In this case object has to be loaded explicitely
using Persistent.load method.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3745.HTM" TARGET="CNTFRAME">OnLoad</A></TD><TD CLASS="TableLightDesc"> This method is called by the database after loading of the object.
It can be used to initialize transient fields of the object.
Default implementation of this method do nothing
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3746.HTM" TARGET="CNTFRAME">OnStore</A></TD><TD CLASS="TableLightDesc"> This method is called by the database befire storing of the object.
It can be used to initialize transient fields of the object.
Default implementation of this method do nothing
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3747.HTM" TARGET="CNTFRAME">Invalidate</A></TD><TD CLASS="TableLightDesc">
Invalidate object. Invalidated object has to be explicitly
reloaded using load() method. Attempt to store invalidated object
will cause StoraegError exception.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3748.HTM" TARGET="CNTFRAME">AssignOid</A></TD><TD CLASS="TableLightDesc">
Method used to associate object with storage.
This method is used by Storage class and you should not use it explicitly.
<P></TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -