📄 cwp3888.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.Link</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.Link Interface</DIV><DIV CLASS="Description"> Interface for one-to-many relation. There are two types of relations:
embedded (when references to the relarted obejcts are stored in lreation
owner obejct itself) and stanalone (when relation is separate object, which contains
the reference to the relation owner and relation members). Both kinds of relations
implements Link interface. Embedded relation is created by Storage.createLink method
and standalone relation is represented by Relation persistent class created by
Storage.createRelation method.
<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="CWP3889.HTM" TARGET="CNTFRAME">Length</A></TD><TD CLASS="TableLightDesc">Number of the linked objects
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3891.HTM" TARGET="CNTFRAME">this</A></TD><TD CLASS="TableLightDesc"> Access element by index
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3893.HTM" TARGET="CNTFRAME">Get</A></TD><TD CLASS="TableLightDesc"> Get related object by index
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3894.HTM" TARGET="CNTFRAME">Set</A></TD><TD CLASS="TableLightDesc"> Replace i-th element of the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3895.HTM" TARGET="CNTFRAME">Remove</A></TD><TD CLASS="TableLightDesc"> Remove object with specified index from the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3896.HTM" TARGET="CNTFRAME">Remove</A></TD><TD CLASS="TableLightDesc"> Remove object from the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3897.HTM" TARGET="CNTFRAME">Insert</A></TD><TD CLASS="TableLightDesc"> Insert new object in the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3898.HTM" TARGET="CNTFRAME">Add</A></TD><TD CLASS="TableLightDesc"> Add new object to the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3899.HTM" TARGET="CNTFRAME">AddAll</A></TD><TD CLASS="TableLightDesc"> Add all elements of the array to the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3900.HTM" TARGET="CNTFRAME">AddAll</A></TD><TD CLASS="TableLightDesc"> Add specified elements of the array to the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3901.HTM" TARGET="CNTFRAME">AddAll</A></TD><TD CLASS="TableLightDesc"> Add all object members of the other relation to this relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3902.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc"> Get relation members as array of objects
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3903.HTM" TARGET="CNTFRAME">ToRawArray</A></TD><TD CLASS="TableLightDesc">
Return array with relation members. Members are not loaded and
size of the array can be greater than actual number of members.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3904.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc"> Get relation members as array with specifed element type
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3905.HTM" TARGET="CNTFRAME">Contains</A></TD><TD CLASS="TableLightDesc"> Checks if relation contains specified object
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3906.HTM" TARGET="CNTFRAME">ContainsElement</A></TD><TD CLASS="TableLightDesc">Check if i-th element of Link is the same as specified obj
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3907.HTM" TARGET="CNTFRAME">IndexOf</A></TD><TD CLASS="TableLightDesc"> Get index of the specified object in the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3908.HTM" TARGET="CNTFRAME">Clear</A></TD><TD CLASS="TableLightDesc"> Remove all members from the relation
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP3909.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get bidirectional enumerator started with specified current position
<P></TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -