//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsqlrecord.h>
#include <qstring.h>
#include <qsqlindex.h>
#include <qstringlist.h>
#include <qsqldatabase.h>
#include <qsqlerror.h>
#include <qsql.h>
#include <qsqlquery.h>

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

class QSqlDatabaseJBridge : public QSqlDatabase
{
public:
	QSqlDatabaseJBridge(const QString& arg1,const QString& arg2,QObject* arg3,const char* arg4) : QSqlDatabase(arg1,arg2,arg3,arg4) {};
	QSqlDatabaseJBridge(const QString& arg1,const QString& arg2,QObject* arg3) : QSqlDatabase(arg1,arg2,arg3) {};
	QSqlDatabaseJBridge(const QString& arg1,const QString& arg2) : QSqlDatabase(arg1,arg2) {};
	QSqlDatabaseJBridge(QSqlDriver* arg1,QObject* arg2,const char* arg3) : QSqlDatabase(arg1,arg2,arg3) {};
	QSqlDatabaseJBridge(QSqlDriver* arg1,QObject* arg2) : QSqlDatabase(arg1,arg2) {};
	QSqlDatabaseJBridge(QSqlDriver* arg1) : QSqlDatabase(arg1) {};
	~QSqlDatabaseJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.qt.QSqlDatabase",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_addDatabase__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring type)
{
	(void) cls;
static QString* _qstring_type = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::addDatabase((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type)), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_addDatabase__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring type, jstring connectionName)
{
	(void) cls;
static QString* _qstring_type = 0;
static QString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::addDatabase((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type), (const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName)), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_addDatabase__Lorg_kde_qt_QSqlDriver_2(JNIEnv* env, jclass cls, jobject driver)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::addDatabase((QSqlDriver*) QtSupport::getQt(env, driver)), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_addDatabase__Lorg_kde_qt_QSqlDriver_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject driver, jstring connectionName)
{
	(void) cls;
static QString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::addDatabase((QSqlDriver*) QtSupport::getQt(env, driver), (const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName)), "org.kde.qt.QSqlDatabase");
	return xret;
}

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDatabase_contains__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static QString* _qstring_connectionName = 0;
	jboolean xret = (jboolean) QSqlDatabaseJBridge::contains((const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_database__(JNIEnv* env, jclass cls)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::database(), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_database__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static QString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::database((const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName)), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_database__Ljava_lang_String_2Z(JNIEnv* env, jclass cls, jstring connectionName, jboolean open)
{
	(void) cls;
static QString* _qstring_connectionName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QSqlDatabaseJBridge::database((const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName), (bool) open), "org.kde.qt.QSqlDatabase");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlDatabase_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_drivers(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QSqlDatabaseJBridge::drivers();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_exec__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlQuery(((QSqlDatabase*) QtSupport::getQt(env, obj))->exec()), "org.kde.qt.QSqlQueryInterface", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_exec__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring query)
{
static QString* _qstring_query = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlQuery(((QSqlDatabase*) QtSupport::getQt(env, obj))->exec((const QString&)*(QString*) QtSupport::toQString(env, query, &_qstring_query))), "org.kde.qt.QSqlQueryInterface", TRUE);
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDatabase_isDriverAvailable(JNIEnv* env, jclass cls, jstring name)
{
	(void) cls;
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) QSqlDatabaseJBridge::isDriverAvailable((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlDatabase*) QtSupport::getQt(env, obj))->metaObject(), "org.kde.qt.QMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_newQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring name)
{
static QString* _qstring_type = 0;
static QString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type), (const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_newQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jstring type, jstring name, jobject parent)
{
static QString* _qstring_type = 0;
static QString* _qstring_name = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type), (const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_newQSqlDatabase__Ljava_lang_String_2Ljava_lang_String_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring type, jstring name, jobject parent, jstring objname)
{
static QString* _qstring_type = 0;
static QString* _qstring_name = 0;
static QCString* _qstring_objname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((const QString&)*(QString*) QtSupport::toQString(env, type, &_qstring_type), (const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (QObject*) 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_kde_qt_QSqlDatabase_newQSqlDatabase__Lorg_kde_qt_QSqlDriver_2(JNIEnv* env, jobject obj, jobject driver)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((QSqlDriver*) QtSupport::getQt(env, driver)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_newQSqlDatabase__Lorg_kde_qt_QSqlDriver_2Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject driver, jobject parent)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((QSqlDriver*) QtSupport::getQt(env, driver), (QObject*) QtSupport::getQt(env, parent)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_newQSqlDatabase__Lorg_kde_qt_QSqlDriver_2Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject driver, jobject parent, jstring objname)
{
static QCString* _qstring_objname = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSqlDatabaseJBridge((QSqlDriver*) QtSupport::getQt(env, driver), (QObject*) 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_kde_qt_QSqlDatabase_open__(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSqlDatabase*) QtSupport::getQt(env, obj))->open();
	return xret;
}

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

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_primaryIndex(JNIEnv* env, jobject obj, jstring tablename)
{
static QString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlIndex(((QSqlDatabase*) QtSupport::getQt(env, obj))->primaryIndex((const QString&)*(QString*) QtSupport::toQString(env, tablename, &_qstring_tablename))), "org.kde.qt.QSqlIndex", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_recordInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tablename)
{
static QString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecordInfo(((QSqlDatabase*) QtSupport::getQt(env, obj))->recordInfo((const QString&)*(QString*) QtSupport::toQString(env, tablename, &_qstring_tablename))), "org.kde.qt.QSqlRecordInfo", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_recordInfo__Lorg_kde_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecordInfo(((QSqlDatabase*) QtSupport::getQt(env, obj))->recordInfo((const QSqlQuery&)*(const QSqlQuery*) QtSupport::getQt(env, query))), "org.kde.qt.QSqlRecordInfo", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_record__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tablename)
{
static QString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecord(((QSqlDatabase*) QtSupport::getQt(env, obj))->record((const QString&)*(QString*) QtSupport::toQString(env, tablename, &_qstring_tablename))), "org.kde.qt.QSqlRecord", TRUE);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_record__Lorg_kde_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecord(((QSqlDatabase*) QtSupport::getQt(env, obj))->record((const QSqlQuery&)*(const QSqlQuery*) QtSupport::getQt(env, query))), "org.kde.qt.QSqlRecord", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_removeDatabase__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring connectionName)
{
	(void) cls;
static QString* _qstring_connectionName = 0;
	QSqlDatabaseJBridge::removeDatabase((const QString&)*(QString*) QtSupport::toQString(env, connectionName, &_qstring_connectionName));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_removeDatabase__Lorg_kde_qt_QSqlDatabase_2(JNIEnv* env, jclass cls, jobject db)
{
	(void) cls;
	QSqlDatabaseJBridge::removeDatabase((QSqlDatabase*) QtSupport::getQt(env, db));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_setConnectOptions__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring options)
{
static QString* _qstring_options = 0;
	((QSqlDatabase*) QtSupport::getQt(env, obj))->setConnectOptions((const QString&)*(QString*) QtSupport::toQString(env, options, &_qstring_options));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_setDatabaseName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((QSqlDatabase*) QtSupport::getQt(env, obj))->setDatabaseName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_setHostName(JNIEnv* env, jobject obj, jstring host)
{
static QString* _qstring_host = 0;
	((QSqlDatabase*) QtSupport::getQt(env, obj))->setHostName((const QString&)*(QString*) QtSupport::toQString(env, host, &_qstring_host));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_setPassword(JNIEnv* env, jobject obj, jstring password)
{
static QString* _qstring_password = 0;
	((QSqlDatabase*) QtSupport::getQt(env, obj))->setPassword((const QString&)*(QString*) QtSupport::toQString(env, password, &_qstring_password));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlDatabase_setUserName(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	((QSqlDatabase*) QtSupport::getQt(env, obj))->setUserName((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_tables__(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((QSqlDatabase*) QtSupport::getQt(env, obj))->tables();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDatabase_tables__I(JNIEnv* env, jobject obj, jint type)
{
	QStringList  _qlist;
	_qlist = ((QSqlDatabase*) QtSupport::getQt(env, obj))->tables((QSql::TableType) type);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlDatabase_tr__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
	_qstring = QSqlDatabaseJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlDatabase_tr__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring arg1, jstring arg2)
{
	QString  _qstring;
	(void) cls;
static QCString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	_qstring = QSqlDatabaseJBridge::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

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

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

