<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Interface java.sql.ResultSetMetaData
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.sql.html">This Package</a>  <a href="java.sql.ResultSet.html#_top_">Previous</a>  <a href="java.sql.Statement.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Interface java.sql.ResultSetMetaData
</h1>
<dl>
  <dt> public interface <b>ResultSetMetaData</b>
</dl>
A ResultSetMetaData object can be used to find out about the types 
 and properties of the columns in a ResultSet.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#columnNoNulls"><b>columnNoNulls</b></a>
  <dd>  Does not allow NULL values.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#columnNullable"><b>columnNullable</b></a>
  <dd>  Allows NULL values.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#columnNullableUnknown"><b>columnNullableUnknown</b></a>
  <dd>  Nullability unknown.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getCatalogName(int)"><b>getCatalogName</b></a>(int)
  <dd>  What's a column's table's catalog name?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnCount()"><b>getColumnCount</b></a>()
  <dd>  What's the number of columns in the ResultSet?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnDisplaySize(int)"><b>getColumnDisplaySize</b></a>(int)
  <dd>  What's the column's normal max width in chars?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnLabel(int)"><b>getColumnLabel</b></a>(int)
  <dd>  What's the suggested column title for use in printouts and
 displays?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnName(int)"><b>getColumnName</b></a>(int)
  <dd>  What's a column's name?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnType(int)"><b>getColumnType</b></a>(int)
  <dd>  What's a column's SQL type?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getColumnTypeName(int)"><b>getColumnTypeName</b></a>(int)
  <dd>  What's a column's data source specific type name?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getPrecision(int)"><b>getPrecision</b></a>(int)
  <dd>  What's a column's number of decimal digits?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getScale(int)"><b>getScale</b></a>(int)
  <dd>  What's a column's number of digits to right of the decimal point?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getSchemaName(int)"><b>getSchemaName</b></a>(int)
  <dd>  What's a column's table's schema?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getTableName(int)"><b>getTableName</b></a>(int)
  <dd>  What's a column's table name? 

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isAutoIncrement(int)"><b>isAutoIncrement</b></a>(int)
  <dd>  Is the column automatically numbered, thus read-only?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isCaseSensitive(int)"><b>isCaseSensitive</b></a>(int)
  <dd>  Does a column's case matter?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isCurrency(int)"><b>isCurrency</b></a>(int)
  <dd>  Is the column a cash value?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isDefinitelyWritable(int)"><b>isDefinitelyWritable</b></a>(int)
  <dd>  Will a write on the column definitely succeed?	

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isNullable(int)"><b>isNullable</b></a>(int)
  <dd>  Can you put a NULL in this column?		

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isReadOnly(int)"><b>isReadOnly</b></a>(int)
  <dd>  Is a column definitely not writable?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isSearchable(int)"><b>isSearchable</b></a>(int)
  <dd>  Can the column be used in a where clause?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isSigned(int)"><b>isSigned</b></a>(int)
  <dd>  Is the column a signed number?

 
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#isWritable(int)"><b>isWritable</b></a>(int)
  <dd>  Is it possible for a write on the column to succeed?

 
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="columnNoNulls"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>columnNoNulls</b>
<pre>
 public static final int columnNoNulls
</pre>
<dl>
  <dd> Does not allow NULL values.<p>
</dl>
<a name="columnNullable"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>columnNullable</b>
<pre>
 public static final int columnNullable
</pre>
<dl>
  <dd> Allows NULL values.<p>
</dl>
<a name="columnNullableUnknown"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>columnNullableUnknown</b>
<pre>
 public static final int columnNullableUnknown
</pre>
<dl>
  <dd> Nullability unknown.<p>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="getColumnCount()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnCount"><b>getColumnCount</b></a>
<pre>
 public abstract int getColumnCount() throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's the number of columns in the ResultSet?
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the number
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isAutoIncrement(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isAutoIncrement"><b>isAutoIncrement</b></a>
<pre>
 public abstract boolean isAutoIncrement(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Is the column automatically numbered, thus read-only?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isCaseSensitive(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isCaseSensitive"><b>isCaseSensitive</b></a>
<pre>
 public abstract boolean isCaseSensitive(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Does a column's case matter?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isSearchable(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isSearchable"><b>isSearchable</b></a>
<pre>
 public abstract boolean isSearchable(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Can the column be used in a where clause?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isCurrency(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isCurrency"><b>isCurrency</b></a>
<pre>
 public abstract boolean isCurrency(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Is the column a cash value?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isNullable(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isNullable"><b>isNullable</b></a>
<pre>
 public abstract int isNullable(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Can you put a NULL in this column?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> columnNoNulls, columnNullable or columnNullableUnknown
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isSigned(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isSigned"><b>isSigned</b></a>
<pre>
 public abstract boolean isSigned(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Is the column a signed number?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getColumnDisplaySize(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnDisplaySize"><b>getColumnDisplaySize</b></a>
<pre>
 public abstract int getColumnDisplaySize(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's the column's normal max width in chars?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> max width
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getColumnLabel(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnLabel"><b>getColumnLabel</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getColumnLabel(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's the suggested column title for use in printouts and
 displays?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getColumnName(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnName"><b>getColumnName</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getColumnName(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's name?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> column name
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getSchemaName(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getSchemaName"><b>getSchemaName</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getSchemaName(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's table's schema?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> schema name or "" if not applicable
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getPrecision(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getPrecision"><b>getPrecision</b></a>
<pre>
 public abstract int getPrecision(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's number of decimal digits?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> precision
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getScale(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getScale"><b>getScale</b></a>
<pre>
 public abstract int getScale(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's number of digits to right of the decimal point?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> scale
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getTableName(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getTableName"><b>getTableName</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getTableName(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's table name?
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> table name or "" if not applicable
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getCatalogName(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getCatalogName"><b>getCatalogName</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getCatalogName(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's table's catalog name?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> column name or "" if not applicable.
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="getColumnType(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnType"><b>getColumnType</b></a>
<pre>
 public abstract int getColumnType(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's SQL type?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> SQL type
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
    <dt> <b>See Also:</b>
    <dd> <a href="java.sql.Types.html#_top_">Types</a>
  </dl></dd>
</dl>
<a name="getColumnTypeName(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getColumnTypeName"><b>getColumnTypeName</b></a>
<pre>
 public abstract <a href="java.lang.String.html#_top_">String</a> getColumnTypeName(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> What's a column's data source specific type name?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> type name
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isReadOnly(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isReadOnly"><b>isReadOnly</b></a>
<pre>
 public abstract boolean isReadOnly(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Is a column definitely not writable?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isWritable(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isWritable"><b>isWritable</b></a>
<pre>
 public abstract boolean isWritable(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Is it possible for a write on the column to succeed?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<a name="isDefinitelyWritable(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="isDefinitelyWritable"><b>isDefinitelyWritable</b></a>
<pre>
 public abstract boolean isDefinitelyWritable(int column) throws <a href="java.sql.SQLException.html#_top_">SQLException</a>
</pre>
<dl>
  <dd> Will a write on the column definitely succeed?
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> column - the first column is 1, the second is 2, ...
    <dt> <b>Returns:</b>
    <dd> true if so
    <dt> <b>Throws:</b> <a href="java.sql.SQLException.html#_top_">SQLException</a>
    <dd> if a database-access error occurs.
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.sql.html">This Package</a>  <a href="java.sql.ResultSet.html#_top_">Previous</a>  <a href="java.sql.Statement.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
