summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QSqlCursor.java
blob: fd3482cb3e49d291395c32b36086f23c7d12fa44 (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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;

public class QSqlCursor extends QSqlRecord implements QSqlQueryInterface {
	protected QSqlCursor(Class dummy){super((Class) null);}
	public static final int ReadOnly = 0;
	public static final int Insert = 1;
	public static final int Update = 2;
	public static final int Delete = 4;
	public static final int Writable = 7;

	public QSqlCursor(String name, boolean autopopulate, QSqlDatabase db) {
		super((Class) null);
		newQSqlCursor(name,autopopulate,db);
	}
	private native void newQSqlCursor(String name, boolean autopopulate, QSqlDatabase db);
	public QSqlCursor(String name, boolean autopopulate) {
		super((Class) null);
		newQSqlCursor(name,autopopulate);
	}
	private native void newQSqlCursor(String name, boolean autopopulate);
	public QSqlCursor(String name) {
		super((Class) null);
		newQSqlCursor(name);
	}
	private native void newQSqlCursor(String name);
	public QSqlCursor() {
		super((Class) null);
		newQSqlCursor();
	}
	private native void newQSqlCursor();
	public QSqlCursor(QSqlCursor other) {
		super((Class) null);
		newQSqlCursor(other);
	}
	private native void newQSqlCursor(QSqlCursor other);
	public native QVariant value(int i);
	public native QVariant value(String name);
	public native void setValue(int i, QVariant val);
	public native void setValue(String name, QVariant val);
	public native QSqlIndex primaryIndex(boolean prime);
	public native QSqlIndex primaryIndex();
	public native QSqlIndex index(String[] fieldNames);
	public native QSqlIndex index(String fieldName);
	public native void setPrimaryIndex(QSqlIndex idx);
	public native void append(QSqlFieldInfo fieldInfo);
	public native void insert(int pos, QSqlFieldInfo fieldInfo);
	public native void remove(int pos);
	public native void clear();
	public native void setGenerated(String name, boolean generated);
	public native void setGenerated(int i, boolean generated);
	public native QSqlRecord editBuffer(boolean copy);
	public native QSqlRecord editBuffer();
	public native QSqlRecord primeInsert();
	public native QSqlRecord primeUpdate();
	public native QSqlRecord primeDelete();
	public native int insert(boolean invalidate);
	public native int insert();
	public native int update(boolean invalidate);
	public native int update();
	public native int del(boolean invalidate);
	public native int del();
	public native void setMode(int flags);
	public native int mode();
	public native void setCalculated(String name, boolean calculated);
	public native boolean isCalculated(String name);
	public native void setTrimmed(String name, boolean trim);
	public native boolean isTrimmed(String name);
	public native boolean isReadOnly();
	public native boolean canInsert();
	public native boolean canUpdate();
	public native boolean canDelete();
	public native boolean select();
	public native boolean select(QSqlIndex sort);
	public native boolean select(QSqlIndex filter, QSqlIndex sort);
	public native boolean select(String filter, QSqlIndex sort);
	public native boolean select(String filter);
	public native void setSort(QSqlIndex sort);
	public native QSqlIndex sort();
	public native void setFilter(String filter);
	public native String filter();
	public native void setName(String name, boolean autopopulate);
	public native void setName(String name);
	public native String name();
	public native String toString(String prefix, String sep);
	public native String toString(String prefix);
	public native String toString();
	public native boolean isNull(int i);
	public native boolean isNull(String name);
	protected native void afterSeek();
	public native boolean exec(String sql);
	protected native QVariant calculateField(String name);
	protected native int update(String filter, boolean invalidate);
	protected native int update(String filter);
	protected native int del(String filter, boolean invalidate);
	protected native int del(String filter);
	protected native String toString(String prefix, QSqlField field, String fieldSep);
	protected native String toString(QSqlRecord rec, String prefix, String fieldSep, String sep);
	protected native String toString(QSqlIndex i, QSqlRecord rec, String prefix, String fieldSep, String sep);
	/** 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();
	public native boolean isValid();
	public native boolean isActive();
	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 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();
}