summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QSqlQuery.java
blob: ff5574eb341b7e4cb3c1451d00ed3467cf917d77 (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.kde.qt;

import org.kde.qt.Qt;

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

	public QSqlQuery(QSqlResult r) {
		newQSqlQuery(r);
	}
	private native void newQSqlQuery(QSqlResult r);
	public QSqlQuery(String query, QSqlDatabase db) {
		newQSqlQuery(query,db);
	}
	private native void newQSqlQuery(String query, QSqlDatabase db);
	public QSqlQuery(String query) {
		newQSqlQuery(query);
	}
	private native void newQSqlQuery(String query);
	public QSqlQuery() {
		newQSqlQuery();
	}
	private native void newQSqlQuery();
	public QSqlQuery(QSqlDatabase db) {
		newQSqlQuery(db);
	}
	private native void newQSqlQuery(QSqlDatabase db);
	public QSqlQuery(QSqlQueryInterface other) {
		newQSqlQuery(other);
	}
	private native void newQSqlQuery(QSqlQueryInterface 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 QSqlError lastError();
	public native boolean isSelect();
	public native int size();
	public native QSqlDriver driver();
	public native QSqlResult result();
	public native boolean isForwardOnly();
	public native void setForwardOnly(boolean forward);
	public native boolean exec(String query);
	public native QVariant 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, QVariant val);
	public native void bindValue(int pos, QVariant val);
	public native void addBindValue(QVariant val);
	public native void bindValue(String placeholder, QVariant val, int type);
	public native void bindValue(int pos, QVariant val, int type);
	public native void addBindValue(QVariant val, int type);
	public native QVariant boundValue(String placeholder);
	public native QVariant boundValue(int pos);
	// QMap<QString, QVariant> 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();
}