📄 datatype.html
字号:
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> <B>convert</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value)</PRE>
<DL>
<DD>Converts an <A HREF="../../org/axiondb/DataType.html#accepts(java.lang.Object)"><CODE>acceptable</CODE></A> value to one of the appropriate type.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="read(java.io.DataInput)"><!-- --></A><H3>
read</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> <B>read</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/DataInput.html">DataInput</A> in) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>Instantiate an object of my type from the given <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/DataInput.html"><CODE>DataInput</CODE></A>. The next sequence of bytes to be read from the <code>DataInput</code> will have been written by <A HREF="../../org/axiondb/DataType.html#write(java.lang.Object, java.io.DataOutput)"><CODE>write(java.lang.Object, java.io.DataOutput)</CODE></A>.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="write(java.lang.Object, java.io.DataOutput)"><!-- --></A><H3>
write</H3>
<PRE>
public void <B>write</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) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/io/IOException.html">IOException</A></PRE>
<DL>
<DD>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>.<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>value</CODE> - the value to write, which must be <A HREF="../../org/axiondb/DataType.html#accepts(java.lang.Object)"><CODE>acceptable</CODE></A> to this <code>DataType</code></DL>
</DD>
</DL>
<HR>
<A NAME="supportsSuccessor()"><!-- --></A><H3>
supportsSuccessor</H3>
<PRE>
public boolean <B>supportsSuccessor</B>()</PRE>
<DL>
<DD>Returns <code>true</code> if the <A HREF="../../org/axiondb/DataType.html#successor(java.lang.Object)"><CODE>successor(java.lang.Object)</CODE></A> method is supported, false otherwise.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="successor(java.lang.Object)"><!-- --></A><H3>
successor</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> <B>successor</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/UnsupportedOperationException.html">UnsupportedOperationException</A></PRE>
<DL>
<DD>Returns the successor for the given value. For example, the successor of the integer 1 is 2.<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="toBoolean(java.lang.Object)"><!-- --></A><H3>
toBoolean</H3>
<PRE>
public boolean <B>toBoolean</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getBoolean(int)"><CODE>ResultSet.getBoolean(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toByte(java.lang.Object)"><!-- --></A><H3>
toByte</H3>
<PRE>
public byte <B>toByte</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getByte(int)"><CODE>ResultSet.getByte(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toDate(java.lang.Object)"><!-- --></A><H3>
toDate</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/Date.html">Date</A> <B>toDate</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getDate(int)"><CODE>ResultSet.getDate(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toDouble(java.lang.Object)"><!-- --></A><H3>
toDouble</H3>
<PRE>
public double <B>toDouble</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getDouble(int)"><CODE>ResultSet.getDouble(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toFloat(java.lang.Object)"><!-- --></A><H3>
toFloat</H3>
<PRE>
public float <B>toFloat</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getFloat(int)"><CODE>ResultSet.getFloat(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toInt(java.lang.Object)"><!-- --></A><H3>
toInt</H3>
<PRE>
public int <B>toInt</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getInt(int)"><CODE>ResultSet.getInt(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toLong(java.lang.Object)"><!-- --></A><H3>
toLong</H3>
<PRE>
public long <B>toLong</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getLong(int)"><CODE>ResultSet.getLong(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toShort(java.lang.Object)"><!-- --></A><H3>
toShort</H3>
<PRE>
public short <B>toShort</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getShort(int)"><CODE>ResultSet.getShort(int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toBigDecimal(java.lang.Object)"><!-- --></A><H3>
toBigDecimal</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/math/BigDecimal.html">BigDecimal</A> <B>toBigDecimal</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<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/ResultSet.html#getBigDecimal(int, int)"><CODE>ResultSet.getBigDecimal(int, int)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="toBigInteger(java.lang.Object)"><!-- --></A><H3>
toBigInteger</H3>
<PRE>
public <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/math/BigInteger.html">BigInteger</A> <B>toBigInteger</B>(<A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/lang/Object.html">Object</A> value) throws <A HREF="http://java.sun.com/products/jdk/1.3/docs/api/java/sql/SQLException.html">SQLException</A></PRE>
<DL>
<DD>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>.<DD><DL>
</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -