? testGAF.java ? JDK1.1patch.txt ? src/ORG/as220/tinySQL/Utils.class Index: people.DBF =================================================================== RCS file: /home/cvsroot/tinySQL/people.DBF,v retrieving revision 1.8 diff -u -w -r1.8 people.DBF Binary files /tmp/cvsX4wotb and people.DBF differ Index: classes/tinySQL.jar =================================================================== RCS file: /home/cvsroot/tinySQL/classes/tinySQL.jar,v retrieving revision 1.4 diff -u -w -r1.4 tinySQL.jar Binary files /tmp/cvsQSyMFe and tinySQL.jar differ Index: classes/ORG/as220/tinySQL/CUP$parser$actions.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/CUP$parser$actions.class,v retrieving revision 1.4 diff -u -w -r1.4 CUP$parser$actions.class Binary files /tmp/cvslUpQ9g and CUP$parser$actions.class differ Index: classes/ORG/as220/tinySQL/DBFHeader.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/DBFHeader.class,v retrieving revision 1.2 diff -u -w -r1.2 DBFHeader.class Binary files /tmp/cvsg79eIl and DBFHeader.class differ Index: classes/ORG/as220/tinySQL/Utils.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/Utils.class,v retrieving revision 1.4 diff -u -w -r1.4 Utils.class Binary files /tmp/cvsBBGp9p and Utils.class differ Index: classes/ORG/as220/tinySQL/dbfFile.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/dbfFile.class,v retrieving revision 1.6 diff -u -w -r1.6 dbfFile.class Binary files /tmp/cvsYKD1su and dbfFile.class differ Index: classes/ORG/as220/tinySQL/dbfFileConnection.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/dbfFileConnection.class,v retrieving revision 1.5 diff -u -w -r1.5 dbfFileConnection.class Binary files /tmp/cvsjBbHOy and dbfFileConnection.class differ Index: classes/ORG/as220/tinySQL/dbfFileDatabaseMetaData.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/dbfFileDatabaseMetaData.class,v retrieving revision 1.3 diff -u -w -r1.3 dbfFileDatabaseMetaData.class Binary files /tmp/cvsEF2eVC and dbfFileDatabaseMetaData.class differ Index: classes/ORG/as220/tinySQL/dbfFileDriver.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/dbfFileDriver.class,v retrieving revision 1.5 diff -u -w -r1.5 dbfFileDriver.class Binary files /tmp/cvsRh9iVG and dbfFileDriver.class differ Index: classes/ORG/as220/tinySQL/dbfFileTable.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/dbfFileTable.class,v retrieving revision 1.6 diff -u -w -r1.6 dbfFileTable.class Binary files /tmp/cvs0zCHXK and dbfFileTable.class differ Index: classes/ORG/as220/tinySQL/parser.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/parser.class,v retrieving revision 1.6 diff -u -w -r1.6 parser.class Binary files /tmp/cvsP1xLSO and parser.class differ Index: classes/ORG/as220/tinySQL/scanner.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/scanner.class,v retrieving revision 1.5 diff -u -w -r1.5 scanner.class Binary files /tmp/cvscN6eFS and scanner.class differ Index: classes/ORG/as220/tinySQL/sym.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/sym.class,v retrieving revision 1.5 diff -u -w -r1.5 sym.class Binary files /tmp/cvsPuVDjW and sym.class differ Index: classes/ORG/as220/tinySQL/textFile.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/textFile.class,v retrieving revision 1.6 diff -u -w -r1.6 textFile.class Binary files /tmp/cvsIQ4831 and textFile.class differ Index: classes/ORG/as220/tinySQL/textFileConnection.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/textFileConnection.class,v retrieving revision 1.5 diff -u -w -r1.5 textFileConnection.class Binary files /tmp/cvshCA2R7 and textFileConnection.class differ Index: classes/ORG/as220/tinySQL/textFileDriver.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/textFileDriver.class,v retrieving revision 1.4 diff -u -w -r1.4 textFileDriver.class Binary files /tmp/cvsUN6Drd and textFileDriver.class differ Index: classes/ORG/as220/tinySQL/textFileTable.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/textFileTable.class,v retrieving revision 1.5 diff -u -w -r1.5 textFileTable.class Binary files /tmp/cvsdhh1Ui and textFileTable.class differ Index: classes/ORG/as220/tinySQL/tinySQL.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQL.class,v retrieving revision 1.5 diff -u -w -r1.5 tinySQL.class Binary files /tmp/cvsaLtego and tinySQL.class differ Index: classes/ORG/as220/tinySQL/tinySQLConnection.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLConnection.class,v retrieving revision 1.5 diff -u -w -r1.5 tinySQLConnection.class Binary files /tmp/cvsB4WkCt and tinySQLConnection.class differ Index: classes/ORG/as220/tinySQL/tinySQLDriver.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLDriver.class,v retrieving revision 1.4 diff -u -w -r1.4 tinySQLDriver.class Binary files /tmp/cvsUVFXRy and tinySQLDriver.class differ Index: classes/ORG/as220/tinySQL/tinySQLException.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLException.class,v retrieving revision 1.6 diff -u -w -r1.6 tinySQLException.class Binary files /tmp/cvsrsMjTD and tinySQLException.class differ Index: classes/ORG/as220/tinySQL/tinySQLResultSet.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLResultSet.class,v retrieving revision 1.6 diff -u -w -r1.6 tinySQLResultSet.class Binary files /tmp/cvsuJIWLI and tinySQLResultSet.class differ Index: classes/ORG/as220/tinySQL/tinySQLResultSetMetaData.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLResultSetMetaData.class,v retrieving revision 1.5 diff -u -w -r1.5 tinySQLResultSetMetaData.class Binary files /tmp/cvsdqfbvN and tinySQLResultSetMetaData.class differ Index: classes/ORG/as220/tinySQL/tinySQLStatement.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLStatement.class,v retrieving revision 1.5 diff -u -w -r1.5 tinySQLStatement.class Binary files /tmp/cvs8co3gS and tinySQLStatement.class differ Index: classes/ORG/as220/tinySQL/tinySQLTable.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySQLTable.class,v retrieving revision 1.5 diff -u -w -r1.5 tinySQLTable.class Binary files /tmp/cvs7VldiZ and tinySQLTable.class differ Index: classes/ORG/as220/tinySQL/tinySqlDatabaseMetaData.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tinySqlDatabaseMetaData.class,v retrieving revision 1.2 diff -u -w -r1.2 tinySqlDatabaseMetaData.class Binary files /tmp/cvsE6Cm35 and tinySqlDatabaseMetaData.class differ Index: classes/ORG/as220/tinySQL/tsColumn.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tsColumn.class,v retrieving revision 1.6 diff -u -w -r1.6 tsColumn.class Binary files /tmp/cvs1BDEGc and tsColumn.class differ Index: classes/ORG/as220/tinySQL/tsResultSet.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tsResultSet.class,v retrieving revision 1.6 diff -u -w -r1.6 tsResultSet.class Binary files /tmp/cvsq0VPmj and tsResultSet.class differ Index: classes/ORG/as220/tinySQL/tsRow.class =================================================================== RCS file: /home/cvsroot/tinySQL/classes/ORG/as220/tinySQL/tsRow.class,v retrieving revision 1.5 diff -u -w -r1.5 tsRow.class Binary files /tmp/cvsjskjXp and tsRow.class differ Index: src/ORG/as220/tinySQL/Utils.java =================================================================== RCS file: /home/cvsroot/tinySQL/src/ORG/as220/tinySQL/Utils.java,v retrieving revision 1.6 diff -u -w -r1.6 Utils.java --- src/ORG/as220/tinySQL/Utils.java 2001/10/01 13:27:26 1.6 +++ src/ORG/as220/tinySQL/Utils.java 2001/10/31 04:16:59 @@ -250,31 +250,16 @@ */ public final static Vector getAllFiles(final String path, final String suffix) { - class MyDir extends javax.swing.filechooser.FileSystemView { - public File createNewFolder(File containingDir) { - return null; - } - public File[] getRoots() { - return null; - } - public boolean isHiddenFile(File f) { - return false; - } - public boolean isRoot(File f) { - return false; - } - } - MyDir view = new MyDir(); Vector vec = new Vector(20); - File dir = view.createFileObject(path); - File[] ff = view.getFiles(dir, false); + File dir = new File(path); + String[] ff = dir.list(); String upperSuffix = null; if (suffix != null) upperSuffix = suffix.toUpperCase(); for (int ii=0; iijava.util.Map object associated + * @return the java.util.Hashtable object associated * with this Connection object */ - public java.util.Map getTypeMap() throws SQLException { + public java.util.Hashtable getTypeMap() throws SQLException { throw new SQLException("tinySQL does not support getTypeMap."); } @@ -503,11 +503,11 @@ * this connection. The type map will be used for the * custom mapping of SQL structured types and distinct types. * - * @param the java.util.Map object to install + * @param the java.util.Hashtable object to install * as the replacement for this Connection * object's default type map */ - public void setTypeMap(java.util.Map map) throws SQLException { + public void setTypeMap(java.util.Hashtable map) throws SQLException { throw new SQLException("tinySQL does not support setTypeMap."); } Index: src/ORG/as220/tinySQL/tinySQLResultSet.java =================================================================== RCS file: /home/cvsroot/tinySQL/src/ORG/as220/tinySQL/tinySQLResultSet.java,v retrieving revision 1.5 diff -u -w -r1.5 tinySQLResultSet.java --- src/ORG/as220/tinySQL/tinySQLResultSet.java 2001/10/26 22:39:55 1.5 +++ src/ORG/as220/tinySQL/tinySQLResultSet.java 2001/10/31 04:17:04 @@ -40,10 +40,10 @@ import java.sql.SQLException; import java.sql.SQLWarning; import java.sql.Statement; -import java.sql.Blob; -import java.sql.Clob; -import java.sql.Ref; -import java.sql.Array; +//import java.sql.Blob; +//import java.sql.Clob; +//import java.sql.Ref; +//import java.sql.Array; import java.sql.Time; import java.sql.Timestamp; import java.sql.Types; @@ -2394,7 +2394,7 @@ * JDBC 2.0 * * Returns the value of a column in the current row as a Java object. - * This method uses the given Map object + * This method uses the given Hashtable object * for the custom mapping of the * SQL structured or distinct type that is being retrieved. * @@ -2402,126 +2402,24 @@ * @param map the mapping from SQL type names to Java classes * @return an object representing the SQL value */ - public Object getObject(int i, java.util.Map map) throws SQLException { + public Object getObject(int i, java.util.Hashtable map) throws SQLException { throw new SQLException("tinySQL does not support getObject."); } - /** - * JDBC 2.0 - * - * Gets a REF(<structured-type>) column value from the current row. - * - * @param i the first column is 1, the second is 2, ... - * @return a Ref object representing an SQL REF value - */ - public Ref getRef(int i) throws SQLException { - throw new SQLException("tinySQL does not support getRef."); - } - - /** - * JDBC 2.0 - * - * Gets a BLOB value in the current row of this ResultSet object. - * - * @param i the first column is 1, the second is 2, ... - * @return a Blob object representing the SQL BLOB value in - * the specified column - */ - public Blob getBlob(int i) throws SQLException { - throw new SQLException("tinySQL does not support getBlob."); - } - - /** - * JDBC 2.0 - * - * Gets a CLOB value in the current row of this ResultSet object. - * - * @param i the first column is 1, the second is 2, ... - * @return a Clob object representing the SQL CLOB value in - * the specified column - */ - public Clob getClob(int i) throws SQLException { - throw new SQLException("tinySQL does not support getClob."); - } - - /** - * JDBC 2.0 - * - * Gets an SQL ARRAY value from the current row of this ResultSet object. - * - * @param i the first column is 1, the second is 2, ... - * @return an Array object representing the SQL ARRAY value in - * the specified column - */ - public Array getArray(int i) throws SQLException { - throw new SQLException("tinySQL does not support getArray."); - } /** * JDBC 2.0 * * Returns the value in the specified column as a Java object. - * This method uses the specified Map object for + * This method uses the specified Hashtable object for * custom mapping if appropriate. * * @param colName the name of the column from which to retrieve the value * @param map the mapping from SQL type names to Java classes * @return an object representing the SQL value in the specified column */ - public Object getObject(String colName, java.util.Map map) throws SQLException { + public Object getObject(String colName, java.util.Hashtable map) throws SQLException { throw new SQLException("tinySQL does not support getObject."); - } - - /** - * JDBC 2.0 - * - * Gets a REF(<structured-type>) column value from the current row. - * - * @param colName the column name - * @return a Ref object representing the SQL REF value in - * the specified column - */ - public Ref getRef(String colName) throws SQLException { - throw new SQLException("tinySQL does not support getRef."); - } - - /** - * JDBC 2.0 - * - * Gets a BLOB value in the current row of this ResultSet object. - * - * @param colName the name of the column from which to retrieve the value - * @return a Blob object representing the SQL BLOB value in - * the specified column - */ - public Blob getBlob(String colName) throws SQLException { - throw new SQLException("tinySQL does not support getBlob."); - } - - /** - * JDBC 2.0 - * - * Gets a CLOB value in the current row of this ResultSet object. - * - * @param colName the name of the column from which to retrieve the value - * @return a Clob object representing the SQL CLOB value in - * the specified column - */ - public Clob getClob(String colName) throws SQLException { - throw new SQLException("tinySQL does not support getClob."); - } - - /** - * JDBC 2.0 - * - * Gets an SQL ARRAY value in the current row of this ResultSet object. - * - * @param colName the name of the column from which to retrieve the value - * @return an Array object representing the SQL ARRAY value in - * the specified column - */ - public Array getArray(String colName) throws SQLException { - throw new SQLException("tinySQL does not support getArray."); } /** Index: src/ORG/as220/tinySQL/tsResultSet.java =================================================================== RCS file: /home/cvsroot/tinySQL/src/ORG/as220/tinySQL/tsResultSet.java,v retrieving revision 1.3 diff -u -w -r1.3 tsResultSet.java --- src/ORG/as220/tinySQL/tsResultSet.java 2001/10/26 22:39:55 1.3 +++ src/ORG/as220/tinySQL/tsResultSet.java 2001/10/31 04:17:04 @@ -40,6 +40,9 @@ */ public class tsResultSet { + public static final int TYPE_FORWARD_ONLY = 1003; + public static final int TYPE_SCROLL_SENSITIVE = 1005; + public static final int TYPE_SCROLL_INSENSITIVE = 1004; private Vector rows;// = new Vector(); // all the rows private Vector tsColumns;// = new Vector(); // all the tsColumn objects private Vector columns; // SQL-Query columns @@ -75,9 +78,9 @@ public void setType (int type) { - if ((type == ResultSet.TYPE_FORWARD_ONLY) || - (type == ResultSet.TYPE_SCROLL_SENSITIVE) || - (type == ResultSet.TYPE_SCROLL_INSENSITIVE)) + if ((type == TYPE_FORWARD_ONLY) || + (type == TYPE_SCROLL_SENSITIVE) || + (type == TYPE_SCROLL_INSENSITIVE)) this.type = type; } @@ -99,7 +102,7 @@ public void addColumn (tsColumn col) { - tsColumns.add (col); + tsColumns.addElement (col); } public boolean getMoreResults (int newPos, int fetchsize) @@ -110,9 +113,9 @@ { try { - if (type != ResultSet.TYPE_SCROLL_INSENSITIVE) + if (type != TYPE_SCROLL_INSENSITIVE) { - rows.clear (); + rows.removeAllElements (); windowStart = newPos; } dbengine.contSelectStatement (this); @@ -132,7 +135,7 @@ public boolean addRow (tsRow row) { - rows.add (row); + rows.addElement (row); // System.out.println ("Fetchsize " + fetchsize + " is > 0 "); if ((fetchsize > 0) && (rows.size () >= fetchsize)) {