//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstring.h>
#include <tqsqlindex.h>
#include <tqstringlist.h>
#include <tqsqlcursor.h>
#include <tqsqlerror.h>
#include <tqsql.h>
#include <tqsqlfield.h>
#include <tqvariant.h>
#include <tqsqlquery.h>

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

class TQSqlCursorJBridge : public TQSqlCursor
{
public:
	TQSqlCursorJBridge(const TQString& arg1,bool arg2,TQSqlDatabase* arg3) : TQSqlCursor(arg1,arg2,arg3) {};
	TQSqlCursorJBridge(const TQString& arg1,bool arg2) : TQSqlCursor(arg1,arg2) {};
	TQSqlCursorJBridge(const TQString& arg1) : TQSqlCursor(arg1) {};
	TQSqlCursorJBridge() : TQSqlCursor() {};
	TQSqlCursorJBridge(const TQSqlCursor& arg1) : TQSqlCursor(arg1) {};
	void protected_afterSeek() {
		TQSqlCursor::afterSeek();
		return;
	}
	bool protected_exec(const TQString& arg1) {
		return (bool) TQSqlCursor::exec(arg1);
	}
	TQVariant protected_calculateField(const TQString& arg1) {
		return (TQVariant) TQSqlCursor::calculateField(arg1);
	}
	int protected_update(const TQString& arg1,bool arg2) {
		return (int) TQSqlCursor::update(arg1,arg2);
	}
	int protected_update(const TQString& arg1) {
		return (int) TQSqlCursor::update(arg1);
	}
	int protected_del(const TQString& arg1,bool arg2) {
		return (int) TQSqlCursor::del(arg1,arg2);
	}
	int protected_del(const TQString& arg1) {
		return (int) TQSqlCursor::del(arg1);
	}
	TQString protected_toString(const TQString& arg1,TQSqlField* arg2,const TQString& arg3) {
		return (TQString) TQSqlCursor::toString(arg1,arg2,arg3);
	}
	TQString protected_toString(TQSqlRecord* arg1,const TQString& arg2,const TQString& arg3,const TQString& arg4) {
		return (TQString) TQSqlCursor::toString(arg1,arg2,arg3,arg4);
	}
	TQString protected_toString(const TQSqlIndex& arg1,TQSqlRecord* arg2,const TQString& arg3,const TQString& arg4,const TQString& arg5) {
		return (TQString) TQSqlCursor::toString(arg1,arg2,arg3,arg4,arg5);
	}
	~TQSqlCursorJBridge() {QtSupport::qtKeyDeleted(this);}
	void protected_beforeSeek() {
		TQSqlQuery::beforeSeek();
		return;
	}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_addBindValue__Lorg_trinitydesktop_qt_QVariant_2(JNIEnv* env, jobject obj, jobject val)
{
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->addBindValue((const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_addBindValue__Lorg_trinitydesktop_qt_QVariant_2I(JNIEnv* env, jobject obj, jobject val, jint type)
{
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->addBindValue((const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val), (TQSql::ParameterType) type);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_append(JNIEnv* env, jobject obj, jobject fieldInfo)
{
	((TQSqlCursor*) QtSupport::getQt(env, obj))->append((const TQSqlFieldInfo&)*(const TQSqlFieldInfo*) QtSupport::getQt(env, fieldInfo));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_at(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->at();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_bindValue__ILorg_trinitydesktop_qt_QVariant_2(JNIEnv* env, jobject obj, jint pos, jobject val)
{
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->bindValue((int) pos, (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_bindValue__ILorg_trinitydesktop_qt_QVariant_2I(JNIEnv* env, jobject obj, jint pos, jobject val, jint type)
{
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->bindValue((int) pos, (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val), (TQSql::ParameterType) type);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_bindValue__Ljava_lang_String_2Lorg_trinitydesktop_qt_QVariant_2(JNIEnv* env, jobject obj, jstring placeholder, jobject val)
{
static TQString* _qstring_placeholder = 0;
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->bindValue((const TQString&)*(TQString*) QtSupport::toTQString(env, placeholder, &_qstring_placeholder), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_bindValue__Ljava_lang_String_2Lorg_trinitydesktop_qt_QVariant_2I(JNIEnv* env, jobject obj, jstring placeholder, jobject val, jint type)
{
static TQString* _qstring_placeholder = 0;
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->bindValue((const TQString&)*(TQString*) QtSupport::toTQString(env, placeholder, &_qstring_placeholder), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val), (TQSql::ParameterType) type);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_boundValue__I(JNIEnv* env, jobject obj, jint pos)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->boundValue((int) pos)), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_boundValue__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring placeholder)
{
static TQString* _qstring_placeholder = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->boundValue((const TQString&)*(TQString*) QtSupport::toTQString(env, placeholder, &_qstring_placeholder))), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_calculateField(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_calculateField((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_canDelete(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->canDelete();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_canInsert(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->canInsert();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_canUpdate(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->canUpdate();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_del__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlCursor*) QtSupport::getQt(env, obj))->del();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_del__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filter)
{
static TQString* _qstring_filter = 0;
	jint xret = (jint) ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_del((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_del__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring filter, jboolean invalidate)
{
static TQString* _qstring_filter = 0;
	jint xret = (jint) ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_del((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) invalidate);
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSqlCursor_finalize(env, obj);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_driver(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->driver(), "org.trinitydesktop.qt.TQSqlDriver");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_editBuffer__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlCursor*) QtSupport::getQt(env, obj))->editBuffer(), "org.trinitydesktop.qt.TQSqlRecord");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_editBuffer__Z(JNIEnv* env, jobject obj, jboolean copy)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlCursor*) QtSupport::getQt(env, obj))->editBuffer((bool) copy), "org.trinitydesktop.qt.TQSqlRecord");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_exec__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->exec();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_exec__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring sql)
{
static TQString* _qstring_sql = 0;
	jboolean xret = (jboolean) ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_exec((const TQString&)*(TQString*) QtSupport::toTQString(env, sql, &_qstring_sql));
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_executedQuery(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->executedQuery();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_filter(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlCursor*) QtSupport::getQt(env, obj))->filter();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_first(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->first();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_index__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fieldName)
{
static TQString* _qstring_fieldName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlCursor*) QtSupport::getQt(env, obj))->index((const TQString&)*(TQString*) QtSupport::toTQString(env, fieldName, &_qstring_fieldName))), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_index___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray fieldNames)
{
static TQStringList* _qlist_fieldNames = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlCursor*) QtSupport::getQt(env, obj))->index((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, fieldNames, &_qlist_fieldNames))), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_insert__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlCursor*) QtSupport::getQt(env, obj))->insert();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_insert__ILorg_trinitydesktop_qt_QSqlFieldInfo_2(JNIEnv* env, jobject obj, jint pos, jobject fieldInfo)
{
	((TQSqlCursor*) QtSupport::getQt(env, obj))->insert((int) pos, (const TQSqlFieldInfo&)*(const TQSqlFieldInfo*) QtSupport::getQt(env, fieldInfo));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isActive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->isActive();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isCalculated(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->isCalculated((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isForwardOnly(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->isForwardOnly();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isNull__I(JNIEnv* env, jobject obj, jint i)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->isNull((int) i);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isNull__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->isNull((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isReadOnly(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->isReadOnly();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isSelect(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->isSelect();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isTrimmed(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->isTrimmed((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_isValid(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->isValid();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_lastError(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlError(((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->lastError()), "org.trinitydesktop.qt.TQSqlError", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_lastQuery(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->lastQuery();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_last(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->last();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_mode(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlCursor*) QtSupport::getQt(env, obj))->mode();
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_name(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlCursor*) QtSupport::getQt(env, obj))->name();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_newTQSqlCursor__(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlCursorJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_newTQSqlCursor__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlCursorJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_newTQSqlCursor__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean autopopulate)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlCursorJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) autopopulate));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_newTQSqlCursor__Ljava_lang_String_2ZLorg_trinitydesktop_qt_QSqlDatabase_2(JNIEnv* env, jobject obj, jstring name, jboolean autopopulate, jobject db)
{
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlCursorJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) autopopulate, (TQSqlDatabase*) QtSupport::getQt(env, db)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_newTQSqlCursor__Lorg_trinitydesktop_qt_QSqlCursor_2(JNIEnv* env, jobject obj, jobject other)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlCursorJBridge((const TQSqlCursor&)*(const TQSqlCursor*) QtSupport::getQt(env, other)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_next(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->next();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_numRowsAffected(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->numRowsAffected();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_prepare(JNIEnv* env, jobject obj, jstring query)
{
static TQString* _qstring_query = 0;
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->prepare((const TQString&)*(TQString*) QtSupport::toTQString(env, query, &_qstring_query));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_prev(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->prev();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_primaryIndex__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlCursor*) QtSupport::getQt(env, obj))->primaryIndex()), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_primaryIndex__Z(JNIEnv* env, jobject obj, jboolean prime)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlCursor*) QtSupport::getQt(env, obj))->primaryIndex((bool) prime)), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_primeDelete(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlCursor*) QtSupport::getQt(env, obj))->primeDelete(), "org.trinitydesktop.qt.TQSqlRecord");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_primeInsert(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlCursor*) QtSupport::getQt(env, obj))->primeInsert(), "org.trinitydesktop.qt.TQSqlRecord");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_primeUpdate(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlCursor*) QtSupport::getQt(env, obj))->primeUpdate(), "org.trinitydesktop.qt.TQSqlRecord");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_result(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->result(), "org.trinitydesktop.qt.TQSqlResult");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_seek__I(JNIEnv* env, jobject obj, jint i)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->seek((int) i);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_seek__IZ(JNIEnv* env, jobject obj, jint i, jboolean relative)
{
	jboolean xret = (jboolean) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->seek((int) i, (bool) relative);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_select__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->select();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_select__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filter)
{
static TQString* _qstring_filter = 0;
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->select((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_select__Ljava_lang_String_2Lorg_trinitydesktop_qt_QSqlIndex_2(JNIEnv* env, jobject obj, jstring filter, jobject sort)
{
static TQString* _qstring_filter = 0;
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->select((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, sort));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_select__Lorg_trinitydesktop_qt_QSqlIndex_2(JNIEnv* env, jobject obj, jobject sort)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->select((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, sort));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_select__Lorg_trinitydesktop_qt_QSqlIndex_2Lorg_trinitydesktop_qt_QSqlIndex_2(JNIEnv* env, jobject obj, jobject filter, jobject sort)
{
	jboolean xret = (jboolean) ((TQSqlCursor*) QtSupport::getQt(env, obj))->select((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, filter), (const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, sort));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setCalculated(JNIEnv* env, jobject obj, jstring name, jboolean calculated)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setCalculated((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) calculated);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setFilter(JNIEnv* env, jobject obj, jstring filter)
{
static TQString* _qstring_filter = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setFilter((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setForwardOnly(JNIEnv* env, jobject obj, jboolean forward)
{
	((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->setForwardOnly((bool) forward);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setGenerated__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean generated)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setGenerated((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) generated);
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setName__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setName__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring name, jboolean autopopulate)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setName((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) autopopulate);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setPrimaryIndex(JNIEnv* env, jobject obj, jobject idx)
{
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setPrimaryIndex((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, idx));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setSort(JNIEnv* env, jobject obj, jobject sort)
{
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setSort((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, sort));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setTrimmed(JNIEnv* env, jobject obj, jstring name, jboolean trim)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setTrimmed((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (bool) trim);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setValue__ILorg_trinitydesktop_qt_QVariant_2(JNIEnv* env, jobject obj, jint i, jobject val)
{
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setValue((int) i, (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_setValue__Ljava_lang_String_2Lorg_trinitydesktop_qt_QVariant_2(JNIEnv* env, jobject obj, jstring name, jobject val)
{
static TQString* _qstring_name = 0;
	((TQSqlCursor*) QtSupport::getQt(env, obj))->setValue((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (const TQVariant&)*(const TQVariant*) QtSupport::getQt(env, val));
	return;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_size(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlQuery*)(TQSqlCursor*) QtSupport::getQt(env, obj))->size();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_sort(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlCursor*) QtSupport::getQt(env, obj))->sort()), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TQSqlCursor*) QtSupport::getQt(env, obj))->toString();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
	_qstring = ((TQSqlCursor*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix, jstring sep)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_sep = 0;
	_qstring = ((TQSqlCursor*) QtSupport::getQt(env, obj))->toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__Ljava_lang_String_2Lorg_trinitydesktop_qt_QSqlField_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix, jobject field, jstring fieldSep)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_fieldSep = 0;
	_qstring = ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (TQSqlField*) QtSupport::getQt(env, field), (const TQString&)*(TQString*) QtSupport::toTQString(env, fieldSep, &_qstring_fieldSep));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__Lorg_trinitydesktop_qt_QSqlIndex_2Lorg_trinitydesktop_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)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_fieldSep = 0;
static TQString* _qstring_sep = 0;
	_qstring = ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((const TQSqlIndex&)*(const TQSqlIndex*) QtSupport::getQt(env, i), (TQSqlRecord*) QtSupport::getQt(env, rec), (const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toTQString(env, fieldSep, &_qstring_fieldSep), (const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_toString__Lorg_trinitydesktop_qt_QSqlRecord_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject rec, jstring prefix, jstring fieldSep, jstring sep)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
static TQString* _qstring_fieldSep = 0;
static TQString* _qstring_sep = 0;
	_qstring = ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_toString((TQSqlRecord*) QtSupport::getQt(env, rec), (const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix), (const TQString&)*(TQString*) QtSupport::toTQString(env, fieldSep, &_qstring_fieldSep), (const TQString&)*(TQString*) QtSupport::toTQString(env, sep, &_qstring_sep));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_update__(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlCursor*) QtSupport::getQt(env, obj))->update();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_update__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filter)
{
static TQString* _qstring_filter = 0;
	jint xret = (jint) ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_update((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_update__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring filter, jboolean invalidate)
{
static TQString* _qstring_filter = 0;
	jint xret = (jint) ((TQSqlCursorJBridge*) QtSupport::getQt(env, obj))->protected_update((const TQString&)*(TQString*) QtSupport::toTQString(env, filter, &_qstring_filter), (bool) invalidate);
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_value__I(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlCursor*) QtSupport::getQt(env, obj))->value((int) i)), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlCursor_value__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlCursor*) QtSupport::getQt(env, obj))->value((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name))), "org.trinitydesktop.qt.TQVariant", true);
	return xret;
}

