summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/trinitydesktop/qt/TQSqlQuery.java
blob: 3a2f31a8967e509288559db8d6bf73c586dccb4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//Auto-generated by kalyptus. DO NOT EDIT.
package org.trinitydesktop.qt;

import org.trinitydesktop.qt.Qt;

public class TQSqlQuery implements QtSupport, TQSqlQueryInterface {
	private long _qt;
	private boolean _allocatedInJavaWorld = true;
	protected TQSqlQuery(Class dummy){}

	public TQSqlQuery(TQSqlResult r) {
		newTQSqlQuery(r);
	}
	private native void newTQSqlQuery(TQSqlResult r);
	public TQSqlQuery(String query, TQSqlDatabase db) {
		newTQSqlQuery(query,db);
	}
	private native void newTQSqlQuery(String query, TQSqlDatabase db);
	public TQSqlQuery(String query) {
		newTQSqlQuery(query);
	}
	private native void newTQSqlQuery(String query);
	public TQSqlQuery() {
		newTQSqlQuery();
	}
	private native void newTQSqlQuery();
	public TQSqlQuery(TQSqlDatabase db) {
		newTQSqlQuery(db);
	}
	private native void newTQSqlQuery(TQSqlDatabase db);
	public TQSqlQuery(TQSqlQueryInterface other) {
		newTQSqlQuery(other);
	}
	private native void newTQSqlQuery(TQSqlQueryInterface other);
	public native boolean isValid();
	public native boolean isActive();
	public native boolean isNull(int field);
	public native int at();
	public native String lastQuery();
	public native int numRowsAffected();
	public native TQSqlError lastError();
	public native boolean isSelect();
	public native int size();
	public native TQSqlDriver driver();
	public native TQSqlResult result();
	public native boolean isForwardOnly();
	public native void setForwardOnly(boolean forward);
	public native boolean exec(String query);
	public native TQVariant value(int i);
	public native boolean seek(int i, boolean relative);
	public native boolean seek(int i);
	public native boolean next();
	public native boolean prev();
	public native boolean first();
	public native boolean last();
	public native boolean exec();
	public native boolean prepare(String query);
	public native void bindValue(String placeholder, TQVariant val);
	public native void bindValue(int pos, TQVariant val);
	public native void addBindValue(TQVariant val);
	public native void bindValue(String placeholder, TQVariant val, int type);
	public native void bindValue(int pos, TQVariant val, int type);
	public native void addBindValue(TQVariant val, int type);
	public native TQVariant boundValue(String placeholder);
	public native TQVariant boundValue(int pos);
	// TQStringVariantMap boundValues(); >>>> NOT CONVERTED
	public native String executedQuery();
	protected native void beforeSeek();
	protected native void afterSeek();
	/** Deletes the wrapped C++ instance */
	protected native void finalize() throws InternalError;
	/** Delete the wrapped C++ instance ahead of finalize() */
	public native void dispose();
	/** Has the wrapped C++ instance been deleted? */
	public native boolean isDisposed();
}