⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jco.table.html

📁 SAP ERP的二次开发
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="addInfo(java.lang.String, int, int, int, int, java.lang.String, java.lang.String, int, java.lang.Object, com.sap.mw.jco.IExtendedFieldMetaData)"><!-- --></A><H3>
addInfo</H3>
<PRE>
public void <B>addInfo</B>(java.lang.String&nbsp;name,                    int&nbsp;type,                    int&nbsp;length,                    int&nbsp;offset,                    int&nbsp;decimals,                    java.lang.String&nbsp;sdefault,                    java.lang.String&nbsp;description,                    int&nbsp;flags,                    java.lang.Object&nbsp;tab_meta,                    com.sap.mw.jco.IExtendedFieldMetaData&nbsp;extended)</PRE>
<DL>
<DD>Adds a new field descriptor to the meta data object. Only allowed, if the table is empty. Otherwise an exception (group <tt>JCO_ERROR_NOT_SUPPORTED</tt>) will be thrown.<br> Generally, it is better to create first a metadata object and then the table<br> <code>      IMetaData tableMD = new JCO.MetaData("table name");      tableMD.addInfo(...);      ...      tableMD.addInfo(...);      JCO.Table table = new JCO.Table(tableMD); </code> It is possible to create more than one table instances from one metadata object.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html#addInfo(java.lang.String, int, int, int, int, java.lang.String, java.lang.String, int, java.lang.Object, com.sap.mw.jco.IExtendedFieldMetaData)">addInfo</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html">JCO.Record</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>name</CODE> - Field name for identifying this data field<DD><CODE>type</CODE> - Data field type<DD><CODE>length</CODE> - Data field internal length in bytes<DD><CODE>offset</CODE> - Data field offset in the internal JCO data buffer (with -1 JCo compute the offset automatically)<DD><CODE>decimals</CODE> - Data field number of decimals (only necessary for the data types JCO.TYPE_BCD and JCO.TYPE_FLOAT)<DD><CODE>sdefault</CODE> - Data Field default value<DD><CODE>description</CODE> - Description of data field<DD><CODE>flags</CODE> - additional attribute of the field. Has to be 0<DD><CODE>tab_meta</CODE> - Meta-data if the field is a complex field, i.e. structure or table, <tt>null</tt> otherwise<DD><CODE>extended</CODE> - extended meta data for this field or <tt>null</tt> if none available.</DL>
</DD>
</DL>
<HR>

<A NAME="ensureBufferCapacity(int)"><!-- --></A><H3>
ensureBufferCapacity</H3>
<PRE>
public void <B>ensureBufferCapacity</B>(int&nbsp;required_rows)</PRE>
<DL>
<DD>Checks the size of the buffer and allocates new memory if necessary  and initialize the rows. Initialize all added rows.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="trimToRows()"><!-- --></A><H3>
trimToRows</H3>
<PRE>
public void <B>trimToRows</B>()</PRE>
<DL>
<DD>Trims the capacity of this table to be the table's current number  of rows. An application can use this operation to minimize the  storage requirements of this table.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="copyFrom(com.sap.mw.jco.JCO.Record)"><!-- --></A><H3>
copyFrom</H3>
<PRE>
public int <B>copyFrom</B>(<A HREF="../../../../com/sap/mw/jco/JCO.Record.html">JCO.Record</A>&nbsp;source)</PRE>
<DL>
<DD>Appends the matching fields from the source record at the end of this table  Data fields are considered to be equivalent if the name and type of two  fields match. The data will be copied and converted as best as can,  i.e. strings will be cut off if the source field is longer than  the destination field, or they will be filled with spaces if the  source is shorter than the destination, etc.  If a single conversion fails so will the whole copy operation and  the record will be left untouched.<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html#copyFrom(com.sap.mw.jco.JCO.Record)">copyFrom</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html">JCO.Record</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>source</CODE> - the source record from which to copy the data<DT><B>Returns:</B><DD>the number of matching columns<DT><B>Throws:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Exception.html">JCO.Exception</A></CODE> - if something went wrong</DL>
</DD>
</DL>
<HR>

<A NAME="isEmpty()"><!-- --></A><H3>
isEmpty</H3>
<PRE>
public final boolean <B>isEmpty</B>()</PRE>
<DL>
<DD>Checks whether the table is empty.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if the table is empty, <tt>false</tt> otherwise.<DT><B>Since: </B><DD>JCo 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="isFirstRow()"><!-- --></A><H3>
isFirstRow</H3>
<PRE>
public final boolean <B>isFirstRow</B>()</PRE>
<DL>
<DD>Retrieves whether the row pointer is on the first row of this table.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if the row pointer is on the first row, <tt>false</tt> otherwise.<DT><B>Since: </B><DD>JCo 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="isLastRow()"><!-- --></A><H3>
isLastRow</H3>
<PRE>
public final boolean <B>isLastRow</B>()</PRE>
<DL>
<DD>Retrieves whether the row pointer is on the last row of this table.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD><tt>true</tt> if the row pointer is on the last row, <tt>false</tt> otherwise.<DT><B>Since: </B><DD>JCo 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="getNumRows()"><!-- --></A><H3>
getNumRows</H3>
<PRE>
public final int <B>getNumRows</B>()</PRE>
<DL>
<DD>Returns the number of rows<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of rows</DL>
</DD>
</DL>
<HR>

<A NAME="getNumColumns()"><!-- --></A><H3>
getNumColumns</H3>
<PRE>
public final int <B>getNumColumns</B>()</PRE>
<DL>
<DD>Returns the number of columns in the table  This is just a convenience function and returns  the same value as <tt>getFieldCount()</tt>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>the number of columns in the table<DT><B>See Also: </B><DD><A HREF="../../../../com/sap/mw/jco/JCO.MetaData.html#getFieldCount()"><CODE>JCO.MetaData.getFieldCount()</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="clear()"><!-- --></A><H3>
clear</H3>
<PRE>
public void <B>clear</B>()</PRE>
<DL>
<DD>Clears the table, i.e. deletes all rows<DD><DL>
<DT><B>Overrides:</B><DD><CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html#clear()">clear</A></CODE> in class <CODE><A HREF="../../../../com/sap/mw/jco/JCO.Record.html">JCO.Record</A></CODE></DL>
</DD>
<DD><DL>
<DT><B>Since: </B><DD>JCo 2.0</DD>
</DL>
</DD>
</DL>
<HR>

<A NAME="deleteAllRows()"><!-- --></A><H3>
deleteAllRows</H3>
<PRE>
public void <B>deleteAllRows</B>()</PRE>
<DL>
<DD>Deletes all rows of table<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="firstRow()"><!-- --></A><H3>
firstRow</H3>
<PRE>
public final void <B>firstRow</B>()</PRE>
<DL>
<DD>Moves the row pointer to the first row.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="lastRow()"><!-- --></A><H3>
lastRow</H3>
<PRE>
public final void <B>lastRow</B>()</PRE>
<DL>
<DD>Moves the row pointer to the last row.<DD><DL>
</DL>
</DD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -