📄 jcorecord.html
字号:
<HR>
<A NAME="getValue(java.lang.String)"><!-- --></A><H3>
getValue</H3>
<PRE>
java.lang.Object <B>getValue</B>(java.lang.String fieldName)</PRE>
<DL>
<DD>Returns the value of the named field as an object
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the name of the field
<DT><B>Returns:</B><DD>the value of the specified field
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to an <tt>Object</tt>
<DD><CODE><A HREF="../../../../com/sap/conn/jco/JCoRuntimeException.html" title="class in com.sap.conn.jco">JCoRuntimeException</A></CODE> - thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not exist</DL>
</DD>
</DL>
<HR>
<A NAME="getString(int)"><!-- --></A><H3>
getString</H3>
<PRE>
java.lang.String <B>getString</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a string. If the data type of the field is <tt>CHAR</tt> or <tt>STRING</tt>, the return value all trailing balancks
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>String</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getChar(int)"><!-- --></A><H3>
getChar</H3>
<PRE>
char <B>getChar</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a char
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the character of the field or <tt>' '</tt> if the field was empty.
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>char</tt>, i.e. if the underlying field contained more than one character
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getByte(int)"><!-- --></A><H3>
getByte</H3>
<PRE>
byte <B>getByte</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a byte
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a byte
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>byte</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getByte(java.lang.String)"><!-- --></A><H3>
getByte</H3>
<PRE>
byte <B>getByte</B>(java.lang.String fieldName)</PRE>
<DL>
<DD>Returns the value of the named field as a byte
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the name of the field
<DT><B>Returns:</B><DD>the value of the specified field
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>byte</tt>
<DD><CODE><A HREF="../../../../com/sap/conn/jco/JCoRuntimeException.html" title="class in com.sap.conn.jco">JCoRuntimeException</A></CODE> - thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not exist</DL>
</DD>
</DL>
<HR>
<A NAME="getFloat(int)"><!-- --></A><H3>
getFloat</H3>
<PRE>
float <B>getFloat</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a float Please use setValue(float value, ...) and getFloat(...) methods only if you operate with float values. Double value converted to float and back to double may also differ from original value. Please also don't mix those methods, because i.e. setting your values with setValue(float value, ...) and getting them using getDouble(...) may return not the same value.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a float
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>float</tt></DL>
</DD>
</DL>
<HR>
<A NAME="getFloat(java.lang.String)"><!-- --></A><H3>
getFloat</H3>
<PRE>
float <B>getFloat</B>(java.lang.String fieldName)</PRE>
<DL>
<DD>Returns the value of the named field as a float Please use setValue(float value, ...) and getFloat(...) methods only if you operate with float values. Double value converted to float and back to double may also differ from original value. Please also don't mix those methods, because i.e. setting your values with setValue(float value, ...) and getting them using getDouble(...) may return not the same value.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fieldName</CODE> - the name of the field
<DT><B>Returns:</B><DD>the value of the specified field
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>float</tt>
<DD><CODE><A HREF="../../../../com/sap/conn/jco/JCoRuntimeException.html" title="class in com.sap.conn.jco">JCoRuntimeException</A></CODE> - thrown with group JCO_ERROR_FIELD_NOT_FOUND if a field with the specified name does not exist</DL>
</DD>
</DL>
<HR>
<A NAME="getShort(int)"><!-- --></A><H3>
getShort</H3>
<PRE>
short <B>getShort</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a short
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a short
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>short</tt></DL>
</DD>
</DL>
<HR>
<A NAME="getInt(int)"><!-- --></A><H3>
getInt</H3>
<PRE>
int <B>getInt</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as an integer
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as an integer
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to an <tt>int</tt></DL>
</DD>
</DL>
<HR>
<A NAME="getLong(int)"><!-- --></A><H3>
getLong</H3>
<PRE>
long <B>getLong</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a long
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a long
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to an <tt>long</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getBigInteger(int)"><!-- --></A><H3>
getBigInteger</H3>
<PRE>
java.math.BigInteger <B>getBigInteger</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a BigInteger object
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a BigInteger object
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>BigInteger</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getDouble(int)"><!-- --></A><H3>
getDouble</H3>
<PRE>
double <B>getDouble</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a double
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a double
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>double</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index is out of range</DL>
</DD>
</DL>
<HR>
<A NAME="getBigDecimal(int)"><!-- --></A><H3>
getBigDecimal</H3>
<PRE>
java.math.BigDecimal <B>getBigDecimal</B>(int index)</PRE>
<DL>
<DD>Returns the value of the i'th field as a BigDecimal object
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the field
<DT><B>Returns:</B><DD>the field's value as a BigDecimal object
<DT><B>Throws:</B>
<DD><CODE>JCoConversionException</CODE> - thrown if the value could not be converted to a <tt>BigDecimal</tt>
<DD><CODE>java.lang.IndexOutOfBoundsException</CODE> - thrown if the index
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -