summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/QSqlCursor.java
blob: 5e9ff87698adb054b04c6011a3d36f16f031dd3e (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 TQSqlCursor extends TQSqlRecord implements TQSqlQueryInterface {
	protected TQSqlCursor(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 TQSqlCursor(String name, boolean autopopulate, TQSqlDatabase db) {
		super((Class) null);
		newTQSqlCursor(name,autopopulate,db);
	}
	private native void newTQSqlCursor(String name, boolean autopopulate, TQSqlDatabase db);
	public TQSqlCursor(String name, boolean autopopulate) {
		super((Class) null);
		newTQSqlCursor(name,autopopulate);
	}
	private native void newTQSqlCursor(String name, boolean autopopulate);
	public TQSqlCursor(String name) {
		super((Class) null);
		newTQSqlCursor(name);
	}
	private native void newTQSqlCursor(String name);
	public TQSqlCursor() {
		super((Class) null);
		newTQSqlCursor();
	}
	private native void newTQSqlCursor();
	public TQSqlCursor(TQSqlCursor other) {
		super((Class) null);
		newTQSqlCursor(other);
	}
	private native void newTQSqlCursor(TQSqlCursor other);
	public native TQVariant value(int i);
	public native TQVariant value(String name);
	public native void setValue(int i, TQVariant val);
	public native void setValue(String name, TQVariant val);
	public native TQSqlIndex primaryIndex(boolean prime);
	public native TQSqlIndex primaryIndex();
	public native TQSqlIndex index(String[] fieldNames);
	public native TQSqlIndex index(String fieldName);
	public native void setPrimaryIndex(TQSqlIndex idx);
	public native void append(TQSqlFieldInfo fieldInfo);
	public native void insert(int pos, TQSqlFieldInfo 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 TQSqlRecord editBuffer(boolean copy);
	public native TQSqlRecord editBuffer();
	public native TQSqlRecord primeInsert();
	public native TQSqlRecord primeUpdate();
	public native TQSqlRecord 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(TQSqlIndex sort);
	public native boolean select(TQSqlIndex filter, TQSqlIndex sort);
	public native boolean select(String filter, TQSqlIndex sort);
	public native boolean select(String filter);
	public native void setSort(TQSqlIndex sort);
	public native TQSqlIndex 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 TQVariant 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, TQSqlField field, String fieldSep);
	protected native String toString(TQSqlRecord rec, String prefix, String fieldSep, String sep);
	protected native String toString(TQSqlIndex i, TQSqlRecord 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 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 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);
	// TQMap<TQString, TQVariant> boundValues(); >>>> NOT CONVERTED
	public native String executedQuery();
	protected native void beforeSeek();
}