/***************************************************************************
                            QSqlQuery.java -  description
                             -------------------
    begin                : Wed Nov 21 17:05:56 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 17:05:56 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
***************************************************************************/

package org.kde.qt;

import java.util.*;
import java.lang.Error;

public class  QSqlQuery implements QtSupport, QSqlQueryInterface {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;

	protected QSqlQuery(Class dummy){}

	private native void newQSqlQuery( QSqlResult r);
	public QSqlQuery( QSqlResult r) {
		newQSqlQuery( r);
	}
	private native void newQSqlQuery( String query, QSqlDatabase db);
	public QSqlQuery( String query, QSqlDatabase db) {
		newQSqlQuery( query, db);
	}
	public QSqlQuery( String query) {
		this( query, null);
	}
	private native void newQSqlQuery();
	public QSqlQuery() {
		newQSqlQuery();
	}
	private native void newQSqlQuery( QSqlQueryInterface other);
	public QSqlQuery( QSqlQueryInterface other) {
		newQSqlQuery( other);
	}
	protected native void finalize() throws InternalError;
	public native boolean isValid();
	public native boolean isActive();
	public native boolean isNull( int field);
	public native int at();
	public native String lastQuery();
	public native int numRowsAffected();
	public native QSqlError lastError();
	public native boolean isSelect();
	public native int size();
	public native QSqlDriver driver();
	public native QSqlResult result();
	public native boolean exec( String query);
	public native QVariant value( int i);
	public native boolean seek( int i, boolean relative);
	public native boolean seek( int i);
	public native boolean next();
	public native boolean prev();
	public native boolean first();
	public native boolean last();
	protected native void beforeSeek();
	protected native void afterSeek();
}
