X-Git-Url: http://secure.phpeclipse.com

diff --git a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/sql/SQLResults.java b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/sql/SQLResults.java
index 3abc2b9..28325e7 100644
--- a/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/sql/SQLResults.java
+++ b/archive/net.sourceforge.phpeclipse.quantum.sql/src/com/quantum/sql/SQLResults.java
@@ -1,139 +1,20 @@
 package com.quantum.sql;
 
-import java.util.ArrayList;
-import java.util.Vector;
 
-/**
- * com.quantum project
- * @author root
- *
-*/
-public class SQLResults {
-	private String query;
-	private String table;
-	private ArrayList rows = new ArrayList();
-	private Vector columns;
-	private Vector columnTypes;
-	private int[] columnSizes;
-	private int updateCount = 0;
-	private boolean resultSet = false;
-	private boolean hasMore = false;
-	private boolean isError = false;
-	private int maxSize = -1;
-	
-	public void setColumnNames(Vector columns) {
-		this.columns = columns;
-	}
-	public String getColumnName(int column) {
-		if (columns.size() < column) return ""; //$NON-NLS-1$
-		return columns.elementAt(column - 1).toString();
-			
-	}
-	public void setColumnTypes(Vector columnsTypes) {
-		this.columnTypes = columnsTypes;
-	}
-	public String getColumnType(int column) {
-		if (columnTypes.size() < column) return ""; //$NON-NLS-1$
-		return columnTypes.elementAt(column - 1).toString();
-	}
-	public void setColumnSizes(int[] columnSizes) {
-		this.columnSizes = columnSizes;
-	}
-	public int getColumnSize(int column) {
-		if (columnSizes.length < column) return 0;
-		return columnSizes[column - 1];
-	}
-	public void addRow(Vector row) {
-		rows.add(row);
-	}
-	public Object getElement(int column, int row) {
-		return ((Vector) rows.get(row - 1)).elementAt(column - 1);
-	}
-	public int getColumnCount() {
-		if (columns.size() > 0) {
-			return columns.size();
-		}
-		return 0;
-	}
-	public int getRowCount() {
-		return rows.size();
-	}
-	/**
-	 * Returns the query.
-	 * @return String
-	 */
-	public String getQuery() {
-		return query;
-	}
-
-	/**
-	 * Sets the query.
-	 * @param query The query to set
-	 */
-	public void setQuery(String query) {
-		this.query = query;
-	}
-
-	/**
-	 * Returns the resultSet.
-	 * @return boolean
-	 */
-	public boolean isResultSet() {
-		return resultSet;
-	}
-
-	/**
-	 * Sets the resultSet.
-	 * @param resultSet The resultSet to set
-	 */
-	public void setResultSet(boolean resultSet) {
-		this.resultSet = resultSet;
-	}
 
-	public int getUpdateCount() {
-		return updateCount;
-	}
-
-	public void setUpdateCount(int updateCount) {
-		this.updateCount = updateCount;
-	}
-
-	public String getTable() {
-		return table;
-	}
-
-	public void setTable(String table) {
-		this.table = table;
-	}
-
-	public boolean hasMore() {
-		return hasMore;
-	}
-
-	public void setHasMore(boolean hasMore) {
-		this.hasMore = hasMore;
-	}
-
-	public int getMaxSize() {
-		return maxSize;
-	}
+/**
+ * @author BC
+ */
+public abstract class SQLResults {
+	public abstract boolean isResultSet();
 
-	public void setMaxSize(int maxSize) {
-		this.maxSize = maxSize;
-	}
+	private long time;
 
-	public boolean isError() {
-		return isError;
+	public long getTime() {
+		return this.time;
 	}
 
-	public void setIsError(boolean isError) {
-		this.isError = isError;
+	public void setTime(long time) {
+		this.time = time;
 	}
-	/**
-	 * 
-	 */
-	public Object[] getRows() {
-		return rows.toArray();		
-	}
-
 }