📄 cwp4076.htm
字号:
<!-- saved from url=(0007)http:// -->
<HTML><HEAD><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><TITLE>Perst.Projection</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.Projection Class</DIV><DIV CLASS="Description">
Class use to project selected objects using relation field.
For all selected objects (specified by array ort iterator),
value of specified field (of IPersistent, array of IPersistent, Link or Relation type)
is inspected and all referenced object for projection (duplicate values are eliminated)
<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><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Base Classes: </SPAN>Object</DIV><DIV CLASS="Remarks"><SPAN CLASS="RemarkHdrX">Implemented interfaces: </SPAN>ICollection</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="CWP4077.HTM" TARGET="CNTFRAME">Projection</A></TD><TD CLASS="TableLightDesc">
Constructor of projection specified by class and field name of projected objects
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4078.HTM" TARGET="CNTFRAME">Projection</A></TD><TD CLASS="TableLightDesc">
Default constructor of projection. This constructor should be used
only when you are going to derive your class from Projection and redefine
map method in it or sepcify type and fieldName later using setProjectionField
method
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4079.HTM" TARGET="CNTFRAME">Count</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4081.HTM" TARGET="CNTFRAME">IsSynchronized</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4083.HTM" TARGET="CNTFRAME">SyncRoot</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4085.HTM" TARGET="CNTFRAME">CopyTo</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4086.HTM" TARGET="CNTFRAME">SetProjectionField</A></TD><TD CLASS="TableLightDesc">
Specify class of the projected objects and projection field name
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4087.HTM" TARGET="CNTFRAME">Project</A></TD><TD CLASS="TableLightDesc">
Project specified selection
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4088.HTM" TARGET="CNTFRAME">Project</A></TD><TD CLASS="TableLightDesc">
Project 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="CWP4089.HTM" TARGET="CNTFRAME">Project</A></TD><TD CLASS="TableLightDesc">
Project specified selection
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4090.HTM" TARGET="CNTFRAME">Project</A></TD><TD CLASS="TableLightDesc">
Project specified selection
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4091.HTM" TARGET="CNTFRAME">Join</A></TD><TD CLASS="TableLightDesc">
Join this projection with another projection.
Result of this join is set of objects present in both projections.
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4092.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc">
Get result of preceding project and join operations
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4093.HTM" TARGET="CNTFRAME">ToArray</A></TD><TD CLASS="TableLightDesc">
Get result of preceding project and join operations
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4094.HTM" TARGET="CNTFRAME">Length</A></TD><TD CLASS="TableLightDesc">
Get number of objets in the result
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4096.HTM" TARGET="CNTFRAME">GetEnumerator</A></TD><TD CLASS="TableLightDesc">
Get enumerator for result of preceding project and join operations
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4097.HTM" TARGET="CNTFRAME">Reset</A></TD><TD CLASS="TableLightDesc">
Reset projection - clear result of prceding project and join operations
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4098.HTM" TARGET="CNTFRAME">Add</A></TD><TD CLASS="TableLightDesc">
Add object to the set
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4099.HTM" TARGET="CNTFRAME">Map</A></TD><TD CLASS="TableLightDesc">
Get related objects for the object obj.
It is possible to redifine this method in derived classes
to provide application specific mapping
<P></TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4100.HTM" TARGET="CNTFRAME">hash</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR><TR height=20><TD width=20> </TD><TD CLASS="TableLightDesc"> </TD><TD CLASS="TableLightDesc"><A HREF="CWP4101.HTM" TARGET="CNTFRAME">field</A></TD><TD CLASS="TableLightDesc"> </TD><TD width=20> </TD></TR></TABLE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -