📄 datatype.html
字号:
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>BigDecimal</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/math/BigInteger.html">BigInteger</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toBigInteger(java.lang.Object)">toBigInteger</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>BigInteger</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Blob.html">Blob</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toBlob(java.lang.Object)">toBlob</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Blob.html"><CODE>Blob</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toBoolean(java.lang.Object)">toBoolean</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>boolean</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> byte</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toByte(java.lang.Object)">toByte</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>byte</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Clob.html">Clob</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toClob(java.lang.Object)">toClob</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Clob.html"><CODE>Clob</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Date.html">Date</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toDate(java.lang.Object)">toDate</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Date.html"><CODE>Date</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> double</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toDouble(java.lang.Object)">toDouble</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>double</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toFloat(java.lang.Object)">toFloat</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>float</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toInt(java.lang.Object)">toInt</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>int</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> long</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toLong(java.lang.Object)">toLong</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>long</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> short</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toShort(java.lang.Object)">toShort</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <code>short</code>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toString(java.lang.Object)">toString</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html"><CODE>String</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Time.html">Time</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toTime(java.lang.Object)">toTime</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Time.html"><CODE>Time</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Timestamp.html">Timestamp</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#toTimestamp(java.lang.Object)">toTimestamp</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</CODE>
<BR>
Convert the given non-<code>null</code> <i>value</i> to a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Timestamp.html"><CODE>Timestamp</CODE></A>, or throw a <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html"><CODE>SQLException</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../org/axiondb/DataType.html#write(java.lang.Object, java.io.DataOutput)">write</A></B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value, <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/DataOutput.html">DataOutput</A> out)</CODE>
<BR>
Write an object of my type to the given <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/DataOutput.html"><CODE>DataOutput</CODE></A>.</TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<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="getPreferredValueClassName()"><!-- --></A><H3>
getPreferredValueClassName</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/String.html">String</A> <B>getPreferredValueClassName</B>()</PRE>
<DL>
<DD>Returns the "normal" type returned by <A HREF="../../org/axiondb/DataType.html#convert(java.lang.Object)"><CODE>convert(java.lang.Object)</CODE></A>. Returns <tt>java.lang.Object</tt> if unknown.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also: </B><DD><A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/ResultSetMetaData.html#getColumnClassName(int)"><CODE>ResultSetMetaData.getColumnClassName(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getJdbcType()"><!-- --></A><H3>
getJdbcType</H3>
<PRE>
public int <B>getJdbcType</B>()</PRE>
<DL>
<DD>Returns the JDBC <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Types.html"><CODE>type code</CODE></A> most closely matching this type.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getComparator()"><!-- --></A><H3>
getComparator</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/util/Comparator.html">Comparator</A> <B>getComparator</B>()</PRE>
<DL>
<DD>Returns a comparator used for comparing and ordering values of this type.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="accepts(java.lang.Object)"><!-- --></A><H3>
accepts</H3>
<PRE>
public boolean <B>accepts</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</PRE>
<DL>
<DD>Return <code>true</code> if a field of my type can be assigned the given non-<code>null</code> <i>value</i>, <code>false</code> otherwise.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - non-<code>null</code> value</DL>
</DD>
</DL>
<HR>
<A NAME="convert(java.lang.Object)"><!-- --></A><H3>
convert</H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -