1 package SQLite.JDBC2z; 2 3 import java.sql.Types; 4 import java.util.Vector; 5 6 public class TableResultX extends SQLite.TableResult { 7 public int sql_type[]; 8 TableResultX()9 public TableResultX() { 10 super(); 11 sql_type = new int[this.ncolumns]; 12 for (int i = 0; i < this.ncolumns; i++) { 13 sql_type[i] = Types.VARCHAR; 14 } 15 } 16 TableResultX(int maxrows)17 public TableResultX(int maxrows) { 18 super(maxrows); 19 sql_type = new int[this.ncolumns]; 20 for (int i = 0; i < this.ncolumns; i++) { 21 sql_type[i] = Types.VARCHAR; 22 } 23 } 24 TableResultX(SQLite.TableResult tr)25 public TableResultX(SQLite.TableResult tr) { 26 this.column = tr.column; 27 this.rows = tr.rows; 28 this.ncolumns = tr.ncolumns; 29 this.nrows = tr.nrows; 30 this.types = tr.types; 31 this.maxrows = tr.maxrows; 32 sql_type = new int[tr.ncolumns]; 33 for (int i = 0; i < this.ncolumns; i++) { 34 sql_type[i] = Types.VARCHAR; 35 } 36 if (tr.types != null) { 37 for (int i = 0; i < tr.types.length; i++) { 38 sql_type[i] = JDBCDatabaseMetaData.mapSqlType(tr.types[i]); 39 } 40 } 41 } 42 sql_types(int types[])43 void sql_types(int types[]) { 44 sql_type = types; 45 } 46 } 47