/[classpath]/classpath/java/sql/ResultSetMetaData.java
ViewVC logotype

Diff of /classpath/java/sql/ResultSetMetaData.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by bryce, Fri Jun 21 05:34:12 2002 UTC revision 1.6 by mkoch, Sun Oct 12 16:38:16 2003 UTC
# Line 51  public interface ResultSetMetaData Line 51  public interface ResultSetMetaData
51    /**    /**
52     * The column does not allow NULL's.     * The column does not allow NULL's.
53     */     */
54    public static final int columnNoNulls = 0;    int columnNoNulls = 0;
55    
56    /**    /**
57     * The column allows NULL's.     * The column allows NULL's.
58     */     */
59    public static final int columnNullable = 1;    int columnNullable = 1;
60    
61    /**    /**
62     * It is unknown whether or not the column allows NULL's.     * It is unknown whether or not the column allows NULL's.
63     */     */
64    public static final int columnNullableUnknown = 2;    int columnNullableUnknown = 2;
65    
66    /**    /**
67     * This method returns the number of columns in the result set.     * This method returns the number of columns in the result set.
# Line 69  public interface ResultSetMetaData Line 69  public interface ResultSetMetaData
69     * @return The number of columns in the result set.     * @return The number of columns in the result set.
70     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
71     */     */
72    public int getColumnCount() throws SQLException;    int getColumnCount() throws SQLException;
73    
74    /**    /**
75     * This method test whether or not the column is an auto-increment column.     * This method test whether or not the column is an auto-increment column.
# Line 80  public interface ResultSetMetaData Line 80  public interface ResultSetMetaData
80     *         otherwise.     *         otherwise.
81     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
82     */     */
83    public boolean isAutoIncrement(int column) throws SQLException;    boolean isAutoIncrement(int column) throws SQLException;
84    
85    /**    /**
86     * This method tests whether or not a column is case sensitive in its values.     * This method tests whether or not a column is case sensitive in its values.
# Line 90  public interface ResultSetMetaData Line 90  public interface ResultSetMetaData
90     *         <code>false</code> otherwise.     *         <code>false</code> otherwise.
91     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
92     */     */
93    public boolean isCaseSensitive(int column) throws SQLException;    boolean isCaseSensitive(int column) throws SQLException;
94    
95    /**    /**
96     * This method tests whether not the specified column can be used in     * This method tests whether not the specified column can be used in
# Line 101  public interface ResultSetMetaData Line 101  public interface ResultSetMetaData
101     *         <code>false</code> otherwise.     *         <code>false</code> otherwise.
102     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
103     */     */
104    public boolean isSearchable(int column) throws SQLException;    boolean isSearchable(int column) throws SQLException;
105    
106    /**    /**
107     * This method tests whether or not the column stores a monetary value.     * This method tests whether or not the column stores a monetary value.
# Line 111  public interface ResultSetMetaData Line 111  public interface ResultSetMetaData
111     *         <code>false</code> otherwise.     *         <code>false</code> otherwise.
112     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
113     */     */
114    public boolean isCurrency(int column) throws SQLException;    boolean isCurrency(int column) throws SQLException;
115    
116    /**    /**
117     * This method returns a value indicating whether or not the specified     * This method returns a value indicating whether or not the specified
# Line 123  public interface ResultSetMetaData Line 123  public interface ResultSetMetaData
123     *         <code>columnNullable</code>, or <code>columnNullableUnknown</code>.     *         <code>columnNullable</code>, or <code>columnNullableUnknown</code>.
124     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
125     */     */
126    public int isNullable(int column) throws SQLException;    int isNullable(int column) throws SQLException;
127    
128    /**    /**
129     * This method tests whether or not the value of the specified column     * This method tests whether or not the value of the specified column
# Line 134  public interface ResultSetMetaData Line 134  public interface ResultSetMetaData
134     *         otherwise.     *         otherwise.
135     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
136     */     */
137    public boolean isSigned(int column) throws SQLException;    boolean isSigned(int column) throws SQLException;
138    
139    /**    /**
140     * This method returns the maximum number of characters that can be used     * This method returns the maximum number of characters that can be used
# Line 145  public interface ResultSetMetaData Line 145  public interface ResultSetMetaData
145     *         value for this column.     *         value for this column.
146     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
147     */     */
148    public int getColumnDisplaySize(int column) throws SQLException;    int getColumnDisplaySize(int column) throws SQLException;
149    
150    /**    /**
151     * This method returns a string that should be used as a caption for this     * This method returns a string that should be used as a caption for this
# Line 155  public interface ResultSetMetaData Line 155  public interface ResultSetMetaData
155     * @return A display string for the column.     * @return A display string for the column.
156     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
157     */     */
158    public String getColumnLabel(int column) throws SQLException;    String getColumnLabel(int column) throws SQLException;
159    
160    /**    /**
161     * This method returns the name of the specified column.     * This method returns the name of the specified column.
# Line 164  public interface ResultSetMetaData Line 164  public interface ResultSetMetaData
164     * @return The name of the column.     * @return The name of the column.
165     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
166     */     */
167    public String getColumnName(int column) throws SQLException;    String getColumnName(int column) throws SQLException;
168    
169    /**    /**
170     * This method returns the name of the schema that contains the specified     * This method returns the name of the schema that contains the specified
# Line 174  public interface ResultSetMetaData Line 174  public interface ResultSetMetaData
174     * @return The name of the schema that contains the column.     * @return The name of the schema that contains the column.
175     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
176     */     */
177    public String getSchemaName(int column) throws SQLException;    String getSchemaName(int column) throws SQLException;
178    
179    /**    /**
180     * This method returns the precision of the specified column, which is the     * This method returns the precision of the specified column, which is the
# Line 184  public interface ResultSetMetaData Line 184  public interface ResultSetMetaData
184     * @return The precision of the specified column.     * @return The precision of the specified column.
185     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
186     */     */
187    public int getPrecision(int column) throws SQLException;    int getPrecision(int column) throws SQLException;
188    
189    /**    /**
190     * This method returns the scale of the specified column, which is the     * This method returns the scale of the specified column, which is the
# Line 194  public interface ResultSetMetaData Line 194  public interface ResultSetMetaData
194     * @return The scale of the column.     * @return The scale of the column.
195     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
196     */     */
197    public int getScale(int column) throws SQLException;    int getScale(int column) throws SQLException;
198    
199    /**    /**
200     * This method returns the name of the table containing the specified     * This method returns the name of the table containing the specified
# Line 204  public interface ResultSetMetaData Line 204  public interface ResultSetMetaData
204     * @return The name of the table containing the column.     * @return The name of the table containing the column.
205     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
206     */     */
207    public String getTableName(int column) throws SQLException;    String getTableName(int column) throws SQLException;
208    
209    /**    /**
210     * This method returns the name of the catalog containing the specified     * This method returns the name of the catalog containing the specified
# Line 214  public interface ResultSetMetaData Line 214  public interface ResultSetMetaData
214     * @return The name of the catalog containing the column.     * @return The name of the catalog containing the column.
215     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
216     */     */
217    public String getCatalogName(int column) throws SQLException;    String getCatalogName(int column) throws SQLException;
218    
219    /**    /**
220     * This method returns the SQL type of the specified column.  This will     * This method returns the SQL type of the specified column.  This will
# Line 225  public interface ResultSetMetaData Line 225  public interface ResultSetMetaData
225     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
226     * @see Types     * @see Types
227     */     */
228    public int getColumnType(int column) throws SQLException;    int getColumnType(int column) throws SQLException;
229    
230    /**    /**
231     * This method returns the name of the SQL type for this column.     * This method returns the name of the SQL type for this column.
# Line 234  public interface ResultSetMetaData Line 234  public interface ResultSetMetaData
234     * @return The name of the SQL type for this column.     * @return The name of the SQL type for this column.
235     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
236     */     */
237    public String getColumnTypeName(int column) throws SQLException;    String getColumnTypeName(int column) throws SQLException;
238    
239    /**    /**
240     * This method tests whether or not the specified column is read only.     * This method tests whether or not the specified column is read only.
# Line 244  public interface ResultSetMetaData Line 244  public interface ResultSetMetaData
244     *         otherwise.     *         otherwise.
245     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
246     */     */
247    public boolean isReadOnly(int column) throws SQLException;    boolean isReadOnly(int column) throws SQLException;
248    
249    /**    /**
250     * This method tests whether or not the column may be writable.  This     * This method tests whether or not the column may be writable.  This
# Line 255  public interface ResultSetMetaData Line 255  public interface ResultSetMetaData
255     *         <code>false</code> otherwise.     *         <code>false</code> otherwise.
256     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
257     */     */
258    public boolean isWritable(int column) throws SQLException;    boolean isWritable(int column) throws SQLException;
259    
260    /**    /**
261     * This method tests whether or not the column is writable.  This     * This method tests whether or not the column is writable.  This
# Line 266  public interface ResultSetMetaData Line 266  public interface ResultSetMetaData
266     *         <code>false</code> otherwise.     *         <code>false</code> otherwise.
267     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
268     */     */
269    public boolean isDefinitelyWritable(int column) throws SQLException;    boolean isDefinitelyWritable(int column) throws SQLException;
270    
271    /**    /**
272     * This method returns the name of the Java class which will be used to     * This method returns the name of the Java class which will be used to
# Line 277  public interface ResultSetMetaData Line 277  public interface ResultSetMetaData
277     *         this column.     *         this column.
278     * @exception SQLException If an error occurs.     * @exception SQLException If an error occurs.
279     */     */
280    public String getColumnClassName(int column) throws SQLException;    String getColumnClassName(int column) throws SQLException;
281  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26