//Auto-generated by kalyptus. DO NOT EDIT.
#include <qsqlrecord.h>
#include <qstring.h>
#include <qstringlist.h>
#include <qsqlfield.h>
#include <qvariant.h>

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

class QSqlRecordJBridge : public QSqlRecord
{
public:
	QSqlRecordJBridge() : QSqlRecord() {};
	QSqlRecordJBridge(const QSqlRecord& arg1) : QSqlRecord(arg1) {};
	void public_clear() {
		QSqlRecord::clear();
		return;
	}
	void public_clearValues() {
		QSqlRecord::clearValues();
		return;
	}
	~QSqlRecordJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_append(JNIEnv* env, jobject obj, jobject field)
{
	((QSqlRecord*) QtSupport::getQt(env, obj))->append((const QSqlField&)*(const QSqlField*) QtSupport::getQt(env, field));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_clearValues__(JNIEnv* env, jobject obj)
{
	((QSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clearValues();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_clearValues__Z(JNIEnv* env, jobject obj, jboolean nullify)
{
	((QSqlRecord*) QtSupport::getQt(env, obj))->clearValues((bool) nullify);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_clear(JNIEnv* env, jobject obj)
{
	((QSqlRecordJBridge*) QtSupport::getQt(env, obj))->public_clear();
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlRecord_contains(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QSqlRecord*) QtSupport::getQt(env, obj))->contains((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlRecord_count(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((QSqlRecord*) QtSupport::getQt(env, obj))->count();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSqlRecord_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSqlRecord_fieldName(JNIEnv* env, jobject obj, jint i)
{
	QString  _qstring;
	_qstring = ((QSqlRecord*) QtSupport::getQt(env, obj))->fieldName((int) i);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlRecord_field__I(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.kde.qt.QSqlField");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlRecord_field__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((QSqlRecord*) QtSupport::getQt(env, obj))->field((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name)), "org.kde.qt.QSqlField");
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_insert(JNIEnv* env, jobject obj, jint pos, jobject field)
{
	((QSqlRecord*) QtSupport::getQt(env, obj))->insert((int) pos, (const QSqlField&)*(const QSqlField*) QtSupport::getQt(env, field));
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlRecord_isEmpty(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSqlRecord*) QtSupport::getQt(env, obj))->isEmpty();
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlRecord_isGenerated__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QSqlRecord*) QtSupport::getQt(env, obj))->isGenerated((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSqlRecord_isNull__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jboolean xret = (jboolean) ((QSqlRecord*) QtSupport::getQt(env, obj))->isNull((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSqlRecord_position(JNIEnv* env, jobject obj, jstring name)
{
static QString* _qstring_name = 0;
	jint xret = (jint) ((QSqlRecord*) QtSupport::getQt(env, obj))->position((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name));
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_setNull__I(JNIEnv* env, jobject obj, jint i)
{
	((QSqlRecord*) QtSupport::getQt(env, obj))->setNull((int) i);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSqlRecord_setValue__Ljava_lang_String_2Lorg_kde_qt_QVariant_2(JNIEnv* env, jobject obj, jstring name, jobject val)
{
static QString* _qstring_name = 0;
	((QSqlRecord*) QtSupport::getQt(env, obj))->setValue((const QString&)*(QString*) QtSupport::toQString(env, name, &_qstring_name), (const QVariant&)*(const QVariant*) QtSupport::getQt(env, val));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSqlRecord_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	QStringList  _qlist;
static QString* _qstring_prefix = 0;
	_qlist = ((QSqlRecord*) QtSupport::getQt(env, obj))->toStringList((const QString&)*(QString*) QtSupport::toQString(env, prefix, &_qstring_prefix));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

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

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

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

