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

import org.kde.qt.Qt;

public class QSqlCursor extends QSqlRecord implements QSqlQueryInterface {
	protected QSqlCursor(Class dummy){super((Class) null);}
	public static final int ReadOnly = 0;
	public static final int Insert = 1;
	public static final int Update = 2;
	public static final int Delete = 4;
	public static final int Writable = 7;

	public QSqlCursor(String name, boolean autopopulate, QSqlDatabase db) {
		super((Class) null);
		newQSqlCursor(name,autopopulate,db);
	}
	private native void newQSqlCursor(String name, boolean autopopulate, QSqlDatabase db);
	public QSqlCursor(String name, boolean autopopulate) {
		super((Class) null);
		newQSqlCursor(name,autopopulate);
	}
	private native void newQSqlCursor(String name, boolean autopopulate);
	public QSqlCursor(String name) {
		super((Class) null);
		newQSqlCursor(name);
	}
	private native void newQSqlCursor(String name);
	public QSqlCursor() {
		super((Class) null);
		newQSqlCursor();
	}
	private native void newQSqlCursor();
	public QSqlCursor(QSqlCursor other) {
		super((Class) null);
		newQSqlCursor(other);
	}
	private native void newQSqlCursor(QSqlCursor other);
	public native QVariant value(int i);
	public native QVariant value(String name);
	public native void setValue(int i, QVariant val);
	public native void setValue(String name, QVariant val);
	public native QSqlIndex primaryIndex(boolean prime);
	public native QSqlIndex primaryIndex();
	public native QSqlIndex index(String[] fieldNames);
	public native QSqlIndex index(String fieldName);
	public native void setPrimaryIndex(QSqlIndex idx);
	public native void append(QSqlFieldInfo fieldInfo);
	public native void insert(int pos, QSqlFieldInfo fieldInfo);
	public native void remove(int pos);
	public native void clear();
	public native void setGenerated(String name, boolean generated);
	public native void setGenerated(int i, boolean generated);
	public native QSqlRecord editBuffer(boolean copy);
	public native QSqlRecord editBuffer();
	public native QSqlRecord primeInsert();
	public native QSqlRecord primeUpdate();
	public native QSqlRecord primeDelete();
	public native int insert(boolean invalidate);
	public native int insert();
	public native int update(boolean invalidate);
	public native int update();
	public native int del(boolean invalidate);
	public native int del();
	public native void setMode(int flags);
	public native int mode();
	public native void setCalculated(String name, boolean calculated);
	public native boolean isCalculated(String name);
	public native void setTrimmed(String name, boolean trim);
	public native boolean isTrimmed(String name);
	public native boolean isReadOnly();
	public native boolean canInsert();
	public native boolean canUpdate();
	public native boolean canDelete();
	public native boolean select();
	public native boolean select(QSqlIndex sort);
	public native boolean select(QSqlIndex filter, QSqlIndex sort);
	public native boolean select(String filter, QSqlIndex sort);
	public native boolean select(String filter);
	public native void setSort(QSqlIndex sort);
	public native QSqlIndex sort();
	public native void setFilter(String filter);
	public native String filter();
	public native void setName(String name, boolean autopopulate);
	public native void setName(String name);
	public native String name();
	public native String toString(String prefix, String sep);
	public native String toString(String prefix);
	public native String toString();
	public native boolean isNull(int i);
	public native boolean isNull(String name);
	protected native void afterSeek();
	public native boolean exec(String sql);
	protected native QVariant calculateField(String name);
	protected native int update(String filter, boolean invalidate);
	protected native int update(String filter);
	protected native int del(String filter, boolean invalidate);
	protected native int del(String filter);
	protected native String toString(String prefix, QSqlField field, String fieldSep);
	protected native String toString(QSqlRecord rec, String prefix, String fieldSep, String sep);
	protected native String toString(QSqlIndex i, QSqlRecord rec, String prefix, String fieldSep, String sep);
	/** 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();
	public native boolean isValid();
	public native boolean isActive();
	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 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();
}
