151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski/* 251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Copyright (c) 2000, 2005, Oracle and/or its affiliates. All rights reserved. 351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * This code is free software; you can redistribute it and/or modify it 651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * under the terms of the GNU General Public License version 2 only, as 751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * published by the Free Software Foundation. Oracle designates this 851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * particular file as subject to the "Classpath" exception as provided 951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * by Oracle in the LICENSE file that accompanied this code. 1051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 1151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * This code is distributed in the hope that it will be useful, but WITHOUT 1251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * version 2 for more details (a copy is included in the LICENSE file that 1551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * accompanied this code). 1651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 1751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * You should have received a copy of the GNU General Public License version 1851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 2 along with this work; if not, write to the Free Software Foundation, 1951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 2151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * or visit www.oracle.com if you need additional information or have any 2351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * questions. 2451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 2551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 2651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebskipackage javax.sql; 2751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 2851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebskiimport java.sql.*; 2951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 3051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski/** 3151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * An object that contains information about the columns in a 3251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>RowSet</code> object. This interface is 3351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * an extension of the <code>ResultSetMetaData</code> interface with 3451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * methods for setting the values in a <code>RowSetMetaData</code> object. 3551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * When a <code>RowSetReader</code> object reads data into a <code>RowSet</code> 3651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * object, it creates a <code>RowSetMetaData</code> object and initializes it 3751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * using the methods in the <code>RowSetMetaData</code> interface. Then the 3851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * reader passes the <code>RowSetMetaData</code> object to the rowset. 3951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <P> 4051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The methods in this interface are invoked internally when an application 4151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * calls the method <code>RowSet.execute</code>; an application 4251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * programmer would not use them directly. 4351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 4451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @since 1.4 4551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 4651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 4751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebskipublic interface RowSetMetaData extends ResultSetMetaData { 4851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 4951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 5051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the number of columns in the <code>RowSet</code> object to 5151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * the given number. 5251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 5351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnCount the number of columns in the <code>RowSet</code> object 5451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 5551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 5651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnCount(int columnCount) throws SQLException; 5751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 5851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 5951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column is automatically numbered, 6051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is for a <code>RowSet</code> object's 6151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * columns not to be automatically numbered. 6251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 6351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 6451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property <code>true</code> if the column is automatically 6551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * numbered; <code>false</code> if it is not 6651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 6751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 6851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 6951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setAutoIncrement(int columnIndex, boolean property) throws SQLException; 7051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 7151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 7251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column is case sensitive. 7351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is <code>false</code>. 7451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 7551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 7651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property <code>true</code> if the column is case sensitive; 7751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>false</code> if it is not 7851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 7951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 8051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 8151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setCaseSensitive(int columnIndex, boolean property) throws SQLException; 8251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 8351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 8451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column can be used in a where clause. 8551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is <code>false</code>. 8651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 8751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 8851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property <code>true</code> if the column can be used in a 8951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>WHERE</code> clause; <code>false</code> if it cannot 9051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 9151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 9251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 9351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setSearchable(int columnIndex, boolean property) throws SQLException; 9451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 9551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 9651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column is a cash value. 9751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is <code>false</code>. 9851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 9951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 10051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property <code>true</code> if the column is a cash value; 10151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>false</code> if it is not 10251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 10351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 10451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 10551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setCurrency(int columnIndex, boolean property) throws SQLException; 10651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 10751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 10851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column's value can be set to 10951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>NULL</code>. 11051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is <code>ResultSetMetaData.columnNullableUnknown</code> 11151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 11251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 11351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property one of the following constants: 11451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>ResultSetMetaData.columnNoNulls</code>, 11551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>ResultSetMetaData.columnNullable</code>, or 11651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>ResultSetMetaData.columnNullableUnknown</code> 11751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 11851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 11951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 12051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setNullable(int columnIndex, int property) throws SQLException; 12151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 12251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 12351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets whether the designated column is a signed number. 12451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * The default is <code>false</code>. 12551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 12651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 12751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param property <code>true</code> if the column is a signed number; 12851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>false</code> if it is not 12951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 13051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 13151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 13251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setSigned(int columnIndex, boolean property) throws SQLException; 13351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 13451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 13551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's normal maximum width in chars to the 13651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * given <code>int</code>. 13751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 13851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 13951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param size the normal maximum number of characters for 14051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * the designated column 14151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 14251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 14351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 14451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnDisplaySize(int columnIndex, int size) throws SQLException; 14551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 14651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 14751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the suggested column title for use in printouts and 14851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * displays, if any, to the given <code>String</code>. 14951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 15051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 15151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param label the column title 15251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 15351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 15451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnLabel(int columnIndex, String label) throws SQLException; 15551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 15651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 15751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the name of the designated column to the given <code>String</code>. 15851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 15951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 16051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnName the designated column's name 16151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 16251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 16351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnName(int columnIndex, String columnName) throws SQLException; 16451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 16551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 16651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the name of the designated column's table's schema, if any, to 16751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * the given <code>String</code>. 16851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 16951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 17051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param schemaName the schema name 17151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 17251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 17351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setSchemaName(int columnIndex, String schemaName) throws SQLException; 17451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 17551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 17651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's number of decimal digits to the 17751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * given <code>int</code>. 17851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 17951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 18051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param precision the total number of decimal digits 18151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 18251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 18351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setPrecision(int columnIndex, int precision) throws SQLException; 18451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 18551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 18651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's number of digits to the 18751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * right of the decimal point to the given <code>int</code>. 18851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 18951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 19051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param scale the number of digits to right of decimal point 19151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 19251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 19351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setScale(int columnIndex, int scale) throws SQLException; 19451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 19551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 19651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's table name, if any, to the given 19751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>String</code>. 19851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 19951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 20051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param tableName the column's table name 20151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 20251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 20351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setTableName(int columnIndex, String tableName) throws SQLException; 20451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 20551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 20651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's table's catalog name, if any, to the given 20751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * <code>String</code>. 20851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 20951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 21051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param catalogName the column's catalog name 21151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 21251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 21351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setCatalogName(int columnIndex, String catalogName) throws SQLException; 21451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 21551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 21651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's SQL type to the one given. 21751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 21851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 21951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param SQLType the column's SQL type 22051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 22151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @see Types 22251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 22351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnType(int columnIndex, int SQLType) throws SQLException; 22451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 22551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski /** 22651b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * Sets the designated column's type name that is specific to the 22751b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * data source, if any, to the given <code>String</code>. 22851b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * 22951b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param columnIndex the first column is 1, the second is 2, ... 23051b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @param typeName data source specific type name. 23151b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski * @exception SQLException if a database access error occurs 23251b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski */ 23351b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski void setColumnTypeName(int columnIndex, String typeName) throws SQLException; 23451b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski 23551b1b6997fd3f980076b8081f7f1165ccc2a4008Piotr Jastrzebski} 236