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

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

class TQSqlDatabaseJBridge : public TQSqlDatabase
{
public:
	TQSqlDatabaseJBridge(const TQString& arg1,const TQString& arg2,TQObject* arg3,const char* arg4) : TQSqlDatabase(arg1,arg2,arg3,arg4) {};
	TQSqlDatabaseJBridge(const TQString& arg1,const TQString& arg2,TQObject* arg3) : TQSqlDatabase(arg1,arg2,arg3) {};
	TQSqlDatabaseJBridge(const TQString& arg1,const TQString& arg2) : TQSqlDatabase(arg1,arg2) {};
	TQSqlDatabaseJBridge(TQSqlDriver* arg1,TQObject* arg2,const char* arg3) : TQSqlDatabase(arg1,arg2,arg3) {};
	TQSqlDatabaseJBridge(TQSqlDriver* arg1,TQObject* arg2) : TQSqlDatabase(arg1,arg2) {};
	TQSqlDatabaseJBridge(TQSqlDriver* arg1) : TQSqlDatabase(arg1) {};
	~TQSqlDatabaseJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.qt.TQSqlDatabase",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_addDatabase__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static TQString* _qstring_type = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::addDatabase((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type)), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_addDatabase__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring type, jstring connectionName)
{
	(void) cls;
static TQString* _qstring_type = 0;
static TQString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::addDatabase((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName)), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_addDatabase__Lorg_trinitydesktop_qt_QSqlDriver_2(JNIEnv* env, jclass cls, jobject driver)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::addDatabase((TQSqlDriver*) QtSupport::getQt(env, driver)), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_addDatabase__Lorg_trinitydesktop_qt_QSqlDriver_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject driver, jstring connectionName)
{
	(void) cls;
static TQString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::addDatabase((TQSqlDriver*) QtSupport::getQt(env, driver), (const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName)), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((TQSqlDatabase*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_close(JNIEnv* env, jobject obj)
{
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->close();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_commit(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->commit();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_contains__(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	jboolean xret = (jboolean) TQSqlDatabaseJBridge::contains();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_contains__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static TQString* _qstring_connectionName = 0;
	jboolean xret = (jboolean) TQSqlDatabaseJBridge::contains((const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_database__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::database(), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_database__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static TQString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::database((const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName)), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_database__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring connectionName, jboolean open)
{
	(void) cls;
static TQString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQSqlDatabaseJBridge::database((const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName), (bool) open), "org.trinitydesktop.qt.TQSqlDatabase");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSqlDatabase_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_drivers(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TQSqlDatabaseJBridge::drivers();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_exec__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlQuery(((TQSqlDatabase*) QtSupport::getQt(env, obj))->exec()), "org.trinitydesktop.qt.TQSqlQueryInterface", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_exec__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring query)
{
static TQString* _qstring_query = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlQuery(((TQSqlDatabase*) QtSupport::getQt(env, obj))->exec((const TQString&)*(TQString*) QtSupport::toTQString(env, query, &_qstring_query))), "org.trinitydesktop.qt.TQSqlQueryInterface", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((TQSqlDatabase*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (TQSqlDatabase*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_isDriverAvailable(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static TQString* _qstring_name = 0;
	jboolean xret = (jboolean) TQSqlDatabaseJBridge::isDriverAvailable((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_isOpenError(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->isOpenError();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_isOpen(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->isOpen();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlDatabase*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_newTQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring name)
{
static TQString* _qstring_type = 0;
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlDatabaseJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type), (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_QSqlDatabase_newTQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jstring type, jstring name, jobject parent)
{
static TQString* _qstring_type = 0;
static TQString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlDatabaseJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_newTQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring name, jobject parent, jstring objname)
{
static TQString* _qstring_type = 0;
static TQString* _qstring_name = 0;
static TQCString* _qstring_objname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlDatabaseJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, type, &_qstring_type), (const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, objname, &_qstring_objname)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_newTQSqlDatabase__Lorg_trinitydesktop_qt_QSqlDriver_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject driver, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlDatabaseJBridge((TQSqlDriver*) QtSupport::getQt(env, driver), (TQObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_newTQSqlDatabase__Lorg_trinitydesktop_qt_QSqlDriver_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject driver, jobject parent, jstring objname)
{
static TQCString* _qstring_objname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TQSqlDatabaseJBridge((TQSqlDriver*) QtSupport::getQt(env, driver), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, objname, &_qstring_objname)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_open__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->open();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_open__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring user, jstring password)
{
static TQString* _qstring_user = 0;
static TQString* _qstring_password = 0;
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->open((const TQString&)*(TQString*) QtSupport::toTQString(env, user, &_qstring_user), (const TQString&)*(TQString*) QtSupport::toTQString(env, password, &_qstring_password));
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_port(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->port();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_primaryIndex(JNIEnv* env, jobject obj, jstring tablename)
{
static TQString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlIndex(((TQSqlDatabase*) QtSupport::getQt(env, obj))->primaryIndex((const TQString&)*(TQString*) QtSupport::toTQString(env, tablename, &_qstring_tablename))), "org.trinitydesktop.qt.TQSqlIndex", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_recordInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tablename)
{
static TQString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlRecordInfo(((TQSqlDatabase*) QtSupport::getQt(env, obj))->recordInfo((const TQString&)*(TQString*) QtSupport::toTQString(env, tablename, &_qstring_tablename))), "org.trinitydesktop.qt.TQSqlRecordInfo", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_recordInfo__Lorg_trinitydesktop_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlRecordInfo(((TQSqlDatabase*) QtSupport::getQt(env, obj))->recordInfo((const TQSqlQuery&)*(const TQSqlQuery*) QtSupport::getQt(env, query))), "org.trinitydesktop.qt.TQSqlRecordInfo", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_record__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tablename)
{
static TQString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlRecord(((TQSqlDatabase*) QtSupport::getQt(env, obj))->record((const TQString&)*(TQString*) QtSupport::toTQString(env, tablename, &_qstring_tablename))), "org.trinitydesktop.qt.TQSqlRecord", true);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_record__Lorg_trinitydesktop_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQSqlRecord(((TQSqlDatabase*) QtSupport::getQt(env, obj))->record((const TQSqlQuery&)*(const TQSqlQuery*) QtSupport::getQt(env, query))), "org.trinitydesktop.qt.TQSqlRecord", true);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_removeDatabase__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static TQString* _qstring_connectionName = 0;
	TQSqlDatabaseJBridge::removeDatabase((const TQString&)*(TQString*) QtSupport::toTQString(env, connectionName, &_qstring_connectionName));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_removeDatabase__Lorg_trinitydesktop_qt_QSqlDatabase_2(JNIEnv* env, jclass cls, jobject db)
{
	(void) cls;
	TQSqlDatabaseJBridge::removeDatabase((TQSqlDatabase*) QtSupport::getQt(env, db));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_rollback(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->rollback();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_setConnectOptions__(JNIEnv* env, jobject obj)
{
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->setConnectOptions();
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_setConnectOptions__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring options)
{
static TQString* _qstring_options = 0;
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->setConnectOptions((const TQString&)*(TQString*) QtSupport::toTQString(env, options, &_qstring_options));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_setHostName(JNIEnv* env, jobject obj, jstring host)
{
static TQString* _qstring_host = 0;
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->setHostName((const TQString&)*(TQString*) QtSupport::toTQString(env, host, &_qstring_host));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_setPassword(JNIEnv* env, jobject obj, jstring password)
{
static TQString* _qstring_password = 0;
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->setPassword((const TQString&)*(TQString*) QtSupport::toTQString(env, password, &_qstring_password));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_setPort(JNIEnv* env, jobject obj, jint p)
{
	((TQSqlDatabase*) QtSupport::getQt(env, obj))->setPort((int) p);
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_tables__(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TQSqlDatabase*) QtSupport::getQt(env, obj))->tables();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_tables__I(JNIEnv* env, jobject obj, jint type)
{
	TQStringList  _qlist;
	_qlist = ((TQSqlDatabase*) QtSupport::getQt(env, obj))->tables((TQSql::TableType) type);
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
	_qstring = TQSqlDatabaseJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	TQString  _qstring;
	(void) cls;
static TQCString* _qstring_arg1 = 0;
static TQCString* _qstring_arg2 = 0;
	_qstring = TQSqlDatabaseJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_qt_QSqlDatabase_transaction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TQSqlDatabase*) QtSupport::getQt(env, obj))->transaction();
	return xret;
}

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

