//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqsqlrecord.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqsqlfield.h>
#include <tqvariant.h>

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QSqlRecord_finalize(env, obj);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_fieldName(JNIEnv* env, jobject obj, jint i)
{
	TQString  _qstring;
	_qstring = ((TQSqlRecord*) QtSupport::getQt(env, obj))->fieldName((int) i);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_field__I(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((int) i), "org.trinitydesktop.qt.TQSqlField");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_field__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TQSqlRecord*) QtSupport::getQt(env, obj))->field((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name)), "org.trinitydesktop.qt.TQSqlField");
	return xret;
}

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

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

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

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

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

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

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

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

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

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

JNIEXPORT jint JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_position(JNIEnv* env, jobject obj, jstring name)
{
static TQString* _qstring_name = 0;
	jint xret = (jint) ((TQSqlRecord*) QtSupport::getQt(env, obj))->position((const TQString&)*(TQString*) QtSupport::toTQString(env, name, &_qstring_name));
	return xret;
}

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

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

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

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

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

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

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_toStringList__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	TQStringList  _qlist;
static TQString* _qstring_prefix = 0;
	_qlist = ((TQSqlRecord*) QtSupport::getQt(env, obj))->toStringList((const TQString&)*(TQString*) QtSupport::toTQString(env, prefix, &_qstring_prefix));
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_toString__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring prefix)
{
	TQString  _qstring;
static TQString* _qstring_prefix = 0;
	_qstring = ((TQSqlRecord*) 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_QSqlRecord_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 = ((TQSqlRecord*) 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 jobject JNICALL
Java_org_trinitydesktop_qt_QSqlRecord_value__I(JNIEnv* env, jobject obj, jint i)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new TQVariant(((TQSqlRecord*) QtSupport::getQt(env, obj))->value((int) i)), "org.trinitydesktop.qt.TQVariant", TRUE);
	return xret;
}

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

