/***************************************************************************
                            QSqlCursor.cpp -  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.                                   *
 *                                                                         *
***************************************************************************/

#define _BOOL_H_
#include <qsqlcursor.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QSqlCursor.h>

class QSqlCursorJBridge : public QSqlCursor
{
public:
	QSqlCursorJBridge(const QString& name, bool autopopulate, QSqlDatabase* db) : QSqlCursor(name, autopopulate, db) {}
	QSqlCursorJBridge(const QSqlCursor& other) : QSqlCursor(other) {}
	~QSqlCursorJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_afterSeek() {
		QSqlCursor::afterSeek();
		return;
	}
	bool  protected_exec(const QString& sql) {
		return (bool ) QSqlCursor::exec(sql);
	}
	 QVariant  protected_calculateField(const QString& name) {
		return ( QVariant ) QSqlCursor::calculateField(name);
	}
	 int  protected_update(const QString& filter, bool invalidate) {
		return ( int ) QSqlCursor::update(filter, invalidate);
	}
	 int  protected_del(const QString& filter, bool invalidate) {
		return ( int ) QSqlCursor::del(filter, invalidate);
	}
	 QString  protected_toString(const QString& prefix, QSqlField* field, const QString& fieldSep) {
		return ( QString ) QSqlCursor::toString(prefix, field, fieldSep);
	}
	 QString  protected_toString(QSqlRecord* rec, const QString& prefix, const QString& fieldSep, const QString& sep) {
		return ( QString ) QSqlCursor::toString(rec, prefix, fieldSep, sep);
	}
	 QString  protected_toString(const QSqlIndex& i, QSqlRecord* rec, const QString& prefix, const QString& fieldSep, const QString& sep) {
		return ( QString ) QSqlCursor::toString(i, rec, prefix, fieldSep, sep);
	}
	void protected_beforeSeek() {
		QSqlCursor::beforeSeek();
		return;
	}
};


JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_newQSqlCursor__Ljava_lang_String_2ZLorg_kde_qt_QSqlDatabase_2(JNIEnv *env, jobject obj, jstring name, jboolean autopopulate, jobject db)
{
static QString * _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlCursorJBridge((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) autopopulate, (QSqlDatabase*) QtSupport::getQt(env, db)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_newQSqlCursor__(JNIEnv *env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlCursorJBridge(QString::null, TRUE, 0));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_newQSqlCursor__Lorg_kde_qt_QSqlCursor_2(JNIEnv *env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlCursorJBridge((QSqlCursor&) *(QSqlCursor *) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_finalize(JNIEnv *env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QSqlCursor*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_value__I(JNIEnv *env, jobject obj, jint i)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QVariant (((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_value__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QVariant (((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->value((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_primaryIndex(JNIEnv *env, jobject obj, jboolean prime)
{
	QSqlIndex  _qsql;
	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->primaryIndex((bool) prime);
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlIndex(_qsql), "org.kde.qt.QSqlIndex", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_index___3Ljava_lang_String_2(JNIEnv *env, jobject obj, jobjectArray fieldNames)
{
	QSqlIndex  _qsql;
static QStringList * _qlist_fieldNames = 0;
	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->index((QStringList&) * (QStringList *) QtSupport::toQStringList(env, fieldNames, &_qlist_fieldNames));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlIndex(_qsql), "org.kde.qt.QSqlIndex", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_index__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring fieldName)
{
	QSqlIndex  _qsql;
static QString * _qstring_fieldName = 0;
	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->index((QString&) * (QString *) QtSupport::toQString(env, fieldName, &_qstring_fieldName));
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlIndex(_qsql), "org.kde.qt.QSqlIndex", TRUE);
}

//JNIEXPORT jobject JNICALL
//Java_org_kde_qt_QSqlCursor_index__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring fieldName)
//{
//	QSqlIndex  _qsql;
//static QCString * _qstring_fieldName = 0;
//	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->index((char*) QtSupport::toCharString(env, fieldName, &_qstring_fieldName));
//	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlIndex(_qsql), "org.kde.qt.QSqlIndex", TRUE);
//}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setPrimaryIndex(JNIEnv *env, jobject obj, jobject idx)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setPrimaryIndex((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, idx));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_append(JNIEnv *env, jobject obj, jobject fieldInfo)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->append((QSqlFieldInfo&) *(QSqlFieldInfo *) QtSupport::getQt(env, fieldInfo));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_insert__ILorg_kde_qt_QSqlFieldInfo_2(JNIEnv *env, jobject obj, jint pos, jobject fieldInfo)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->insert((int) pos, (QSqlFieldInfo&) *(QSqlFieldInfo *) QtSupport::getQt(env, fieldInfo));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_remove(JNIEnv *env, jobject obj, jint pos)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->remove((int) pos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_clear(JNIEnv *env, jobject obj)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->clear();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setGenerated__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring name, jboolean generated)
{
static QString * _qstring_name = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setGenerated((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) generated);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setGenerated__IZ(JNIEnv *env, jobject obj, jint i, jboolean generated)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setGenerated((int) i, (bool) generated);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_editBuffer__Z(JNIEnv *env, jobject obj, jboolean copy)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->editBuffer((bool) copy), "org.kde.qt.QSqlRecord");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_editBuffer__(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->editBuffer(FALSE), "org.kde.qt.QSqlRecord");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_primeInsert(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->primeInsert(), "org.kde.qt.QSqlRecord");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_primeUpdate(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->primeUpdate(), "org.kde.qt.QSqlRecord");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_primeDelete(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->primeDelete(), "org.kde.qt.QSqlRecord");
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_insert__Z(JNIEnv *env, jobject obj, jboolean invalidate)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->insert((bool) invalidate);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_insert__(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->insert(TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_update__Z(JNIEnv *env, jobject obj, jboolean invalidate)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->update((bool) invalidate);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_update__(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->update(TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_del__Z(JNIEnv *env, jobject obj, jboolean invalidate)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->del((bool) invalidate);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_del__(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->del(TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setMode(JNIEnv *env, jobject obj, jint flags)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setMode((int) flags);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_mode(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->mode();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setCalculated(JNIEnv *env, jobject obj, jstring name, jboolean calculated)
{
static QString * _qstring_name = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setCalculated((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) calculated);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isCalculated(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isCalculated((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name));
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setTrimmed(JNIEnv *env, jobject obj, jstring name, jboolean trim)
{
static QString * _qstring_name = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setTrimmed((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) trim);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isTrimmed(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isTrimmed((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isReadOnly(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isReadOnly();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_canInsert(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->canInsert();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_canUpdate(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->canUpdate();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_canDelete(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->canDelete();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_select__(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->select();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_select__Lorg_kde_qt_QSqlIndex_2(JNIEnv *env, jobject obj, jobject sort)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->select((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, sort));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_select__Lorg_kde_qt_QSqlIndex_2Lorg_kde_qt_QSqlIndex_2(JNIEnv *env, jobject obj, jobject filter, jobject sort)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->select((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, filter), (QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, sort));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_select__Ljava_lang_String_2Lorg_kde_qt_QSqlIndex_2(JNIEnv *env, jobject obj, jstring filter, jobject sort)
{
static QString * _qstring_filter = 0;
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->select((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, sort));
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_select__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring filter)
{
static QString * _qstring_filter = 0;
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->select((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), QSqlIndex());
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setSort(JNIEnv *env, jobject obj, jobject sort)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setSort((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, sort));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_sort(JNIEnv *env, jobject obj)
{
	QSqlIndex  _qsql;
	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->sort();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlIndex(_qsql), "org.kde.qt.QSqlIndex", TRUE);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setFilter(JNIEnv *env, jobject obj, jstring filter)
{
static QString * _qstring_filter = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setFilter((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter));
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_filter(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->filter();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setName__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring name, jboolean autopopulate)
{
static QString * _qstring_name = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setName((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), (bool) autopopulate);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_setName__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->setName((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name), TRUE);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_name(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_toString__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring prefix, jstring sep)
{
	QString  _qstring;
static QString * _qstring_sep = 0;
static QString * _qstring_prefix = 0;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->toString((QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix), (QString&) * (QString *) QtSupport::toQString(env, sep, &_qstring_sep));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_afterSeek(JNIEnv *env, jobject obj)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_afterSeek();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_exec(JNIEnv *env, jobject obj, jstring sql)
{
static QString * _qstring_sql = 0;
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_exec((QString&) * (QString *) QtSupport::toQString(env, sql, &_qstring_sql));
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_calculateField(JNIEnv *env, jobject obj, jstring name)
{
static QString * _qstring_name = 0;
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QVariant (((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_calculateField((QString&) * (QString *) QtSupport::toQString(env, name, &_qstring_name))), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_update__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring filter, jboolean invalidate)
{
static QString * _qstring_filter = 0;
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_update((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (bool) invalidate);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_update__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring filter)
{
static QString * _qstring_filter = 0;
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_update((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), TRUE);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_del__Ljava_lang_String_2Z(JNIEnv *env, jobject obj, jstring filter, jboolean invalidate)
{
static QString * _qstring_filter = 0;
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_del((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), (bool) invalidate);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_del__Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring filter)
{
static QString * _qstring_filter = 0;
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_del((QString&) * (QString *) QtSupport::toQString(env, filter, &_qstring_filter), TRUE);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_toString__Ljava_lang_String_2Lorg_kde_qt_QSqlField_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jstring prefix, jobject field, jstring fieldSep)
{
	QString  _qstring;
static QString * _qstring_fieldSep = 0;
static QString * _qstring_prefix = 0;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix), (QSqlField*) QtSupport::getQt(env, field), (QString&) * (QString *) QtSupport::toQString(env, fieldSep, &_qstring_fieldSep));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_toString__Lorg_kde_qt_QSqlRecord_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject rec, jstring prefix, jstring fieldSep, jstring sep)
{
	QString  _qstring;
static QString * _qstring_sep = 0;
static QString * _qstring_fieldSep = 0;
static QString * _qstring_prefix = 0;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((QSqlRecord*) QtSupport::getQt(env, rec), (QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix), (QString&) * (QString *) QtSupport::toQString(env, fieldSep, &_qstring_fieldSep), (QString&) * (QString *) QtSupport::toQString(env, sep, &_qstring_sep));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_toString__Lorg_kde_qt_QSqlIndex_2Lorg_kde_qt_QSqlRecord_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv *env, jobject obj, jobject i, jobject rec, jstring prefix, jstring fieldSep, jstring sep)
{
	QString  _qstring;
static QString * _qstring_sep = 0;
static QString * _qstring_fieldSep = 0;
static QString * _qstring_prefix = 0;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((QSqlIndex&) *(QSqlIndex *) QtSupport::getQt(env, i), (QSqlRecord*) QtSupport::getQt(env, rec), (QString&) * (QString *) QtSupport::toQString(env, prefix, &_qstring_prefix), (QString&) * (QString *) QtSupport::toQString(env, fieldSep, &_qstring_fieldSep), (QString&) * (QString *) QtSupport::toQString(env, sep, &_qstring_sep));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isValid(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isValid();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isActive(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isActive();
}

//JNIEXPORT jboolean JNICALL
//Java_org_kde_qt_QSqlCursor_isNull(JNIEnv *env, jobject obj, jint field)
//{
//	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isNull((int) field);
//}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_at(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->at();
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlCursor_lastQuery(JNIEnv *env, jobject obj)
{
	QString  _qstring;
	_qstring = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->lastQuery();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_numRowsAffected(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->numRowsAffected();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_lastError(JNIEnv *env, jobject obj)
{
	QSqlError  _qsql;
	_qsql = ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->lastError();
	return (jobject) QtSupport::objectForQtKey(env, (void *)new QSqlError(_qsql), "org.kde.qt.QSqlError", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_isSelect(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->isSelect();
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlCursor_size(JNIEnv *env, jobject obj)
{
	return (jint) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->size();
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_driver(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->driver(), "org.kde.qt.QSqlDriver");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_result(JNIEnv *env, jobject obj)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->result(), "org.kde.qt.QSqlResult");
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlCursor_value(JNIEnv *env, jobject obj, jint i)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  QVariant (((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->value((int) i)), "org.kde.qt.QVariant", TRUE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_seek__IZ(JNIEnv *env, jobject obj, jint i, jboolean relative)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->seek((int) i, (bool) relative);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_seek__I(JNIEnv *env, jobject obj, jint i)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->seek((int) i, FALSE);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_next(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->next();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_prev(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->prev();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_first(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->first();
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlCursor_last(JNIEnv *env, jobject obj)
{
	return (jboolean) ((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->last();
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlCursor_beforeSeek(JNIEnv *env, jobject obj)
{
	((QSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_beforeSeek();
	return;
}

