//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QSqlQuery implements QtSupport, QSqlQueryInterface {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected QSqlQuery(Class dummy){}

	public QSqlQuery(QSqlResult r) {
		newQSqlQuery(r);
	}
	private native void newQSqlQuery(QSqlResult r);
	public QSqlQuery(String query, QSqlDatabase db) {
		newQSqlQuery(query,db);
	}
	private native void newQSqlQuery(String query, QSqlDatabase db);
	public QSqlQuery(String query) {
		newQSqlQuery(query);
	}
	private native void newQSqlQuery(String query);
	public QSqlQuery() {
		newQSqlQuery();
	}
	private native void newQSqlQuery();
	public QSqlQuery(QSqlDatabase db) {
		newQSqlQuery(db);
	}
	private native void newQSqlQuery(QSqlDatabase db);
	public QSqlQuery(QSqlQueryInterface other) {
		newQSqlQuery(other);
	}
	private native void newQSqlQuery(QSqlQueryInterface other);
	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 isForwardOnly();
	public native void setForwardOnly(boolean forward);
	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();
	public native boolean exec();
	public native boolean prepare(String query);
	public native void bindValue(String placeholder, QVariant val);
	public native void bindValue(int pos, QVariant val);
	public native void addBindValue(QVariant val);
	public native void bindValue(String placeholder, QVariant val, int type);
	public native void bindValue(int pos, QVariant val, int type);
	public native void addBindValue(QVariant val, int type);
	public native QVariant boundValue(String placeholder);
	public native QVariant boundValue(int pos);
	// QMap<QString, QVariant> boundValues(); >>>> NOT CONVERTED
	public native String executedQuery();
	protected native void beforeSeek();
	protected native void afterSeek();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}
