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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_beginTransaction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->beginTransaction();
	return xret;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_commitTransaction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->commitTransaction();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlDriver_formatValue__Lorg_kde_qt_QSqlField_2(JNIEnv* env, jobject obj, jobject field)
{
	QString  _qstring;
	_qstring = ((QSqlDriver*) QtSupport::getQt(env, obj))->formatValue((const QSqlField*) QtSupport::getQt(env, field));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlDriver_formatValue__Lorg_kde_qt_QSqlField_2Z(JNIEnv* env, jobject obj, jobject field, jboolean trimStrings)
{
	QString  _qstring;
	_qstring = ((QSqlDriver*) QtSupport::getQt(env, obj))->formatValue((const QSqlField*) QtSupport::getQt(env, field), (bool) trimStrings);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_hasFeature(JNIEnv* env, jobject obj, jint f)
{
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->hasFeature((QSqlDriver::DriverFeature) f);
	return xret;
}

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

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_open__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring db)
{
static QString* _qstring_db = 0;
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->open((const QString&)*(QString*) QtSupport::toQString(env, db, &_qstring_db));
	return xret;
}

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_open__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring db, jstring user, jstring password, jstring host, jint port)
{
static QString* _qstring_db = 0;
static QString* _qstring_user = 0;
static QString* _qstring_password = 0;
static QString* _qstring_host = 0;
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->open((const QString&)*(QString*) QtSupport::toQString(env, db, &_qstring_db), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, password, &_qstring_password), (const QString&)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (int) port);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_open__Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2ILjava_lang_String_2(JNIEnv* env, jobject obj, jstring db, jstring user, jstring password, jstring host, jint port, jstring connOpts)
{
static QString* _qstring_db = 0;
static QString* _qstring_user = 0;
static QString* _qstring_password = 0;
static QString* _qstring_host = 0;
static QString* _qstring_connOpts = 0;
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->open((const QString&)*(QString*) QtSupport::toQString(env, db, &_qstring_db), (const QString&)*(QString*) QtSupport::toQString(env, user, &_qstring_user), (const QString&)*(QString*) QtSupport::toQString(env, password, &_qstring_password), (const QString&)*(QString*) QtSupport::toQString(env, host, &_qstring_host), (int) port, (const QString&)*(QString*) QtSupport::toQString(env, connOpts, &_qstring_connOpts));
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDriver_primaryIndex(JNIEnv* env, jobject obj, jstring tableName)
{
static QString* _qstring_tableName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlIndex(((QSqlDriver*) 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_QSqlDriver_recordInfo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tablename)
{
static QString* _qstring_tablename = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecordInfo(((QSqlDriver*) 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_QSqlDriver_recordInfo__Lorg_kde_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecordInfo(((QSqlDriver*) 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_QSqlDriver_record__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring tableName)
{
static QString* _qstring_tableName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecord(((QSqlDriver*) 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_QSqlDriver_record__Lorg_kde_qt_QSqlQueryInterface_2(JNIEnv* env, jobject obj, jobject query)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new QSqlRecord(((QSqlDriver*) QtSupport::getQt(env, obj))->record((const QSqlQuery&)*(const QSqlQuery*) QtSupport::getQt(env, query))), "org.kde.qt.QSqlRecord", TRUE);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlDriver_rollbackTransaction(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSqlDriver*) QtSupport::getQt(env, obj))->rollbackTransaction();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlDriver_tables(JNIEnv* env, jobject obj, jstring tableType)
{
	QStringList  _qlist;
static QString* _qstring_tableType = 0;
	_qlist = ((QSqlDriver*) QtSupport::getQt(env, obj))->tables((const QString&)*(QString*) QtSupport::toQString(env, tableType, &_qstring_tableType));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlDriver_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 = QSqlDriver::tr((const char*) QtSupport::toCharString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return QtSupport::fromQString(env, &_qstring);
}

