summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/org/kde/qt/TQSqlDatabase.java
blob: d046a32d60db2627f9e22b17847212dcafa84a27 (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
//Auto-generated by kalyptus. DO NOT EDIT.
package org.kde.qt;

import org.kde.qt.Qt;
import java.util.ArrayList;

public class TQSqlDatabase extends TQObject  {
	protected TQSqlDatabase(Class dummy){super((Class) null);}
	public native TQMetaObject metaObject();
	public native String className();
	public native boolean open();
	public native boolean open(String user, String password);
	public native void close();
	public native boolean isOpen();
	public native boolean isOpenError();
	public native ArrayList tables();
	public native ArrayList tables(int type);
	public native TQSqlIndex primaryIndex(String tablename);
	public native TQSqlRecord record(String tablename);
	public native TQSqlRecord record(TQSqlQueryInterface query);
	public native TQSqlRecordInfo recordInfo(String tablename);
	public native TQSqlRecordInfo recordInfo(TQSqlQueryInterface query);
	public native TQSqlQueryInterface exec(String query);
	public native TQSqlQueryInterface exec();
	public native TQSqlError lastError();
	public native boolean transaction();
	public native boolean commit();
	public native boolean rollback();
	public native void setDatabaseName(String name);
	public native void setUserName(String name);
	public native void setPassword(String password);
	public native void setHostName(String host);
	public native void setPort(int p);
	public native void setConnectOptions(String options);
	public native void setConnectOptions();
	public native String databaseName();
	public native String userName();
	public native String password();
	public native String hostName();
	public native String driverName();
	public native int port();
	public native String connectOptions();
	public native TQSqlDriver driver();
	public static native String tr(String arg1, String arg2);
	public static native String tr(String arg1);
	public static native TQSqlDatabase addDatabase(String type, String connectionName);
	public static native TQSqlDatabase addDatabase(String type);
	public static native TQSqlDatabase addDatabase(TQSqlDriver driver, String connectionName);
	public static native TQSqlDatabase addDatabase(TQSqlDriver driver);
	public static native TQSqlDatabase database(String connectionName, boolean open);
	public static native TQSqlDatabase database(String connectionName);
	public static native TQSqlDatabase database();
	public static native void removeDatabase(String connectionName);
	public static native void removeDatabase(TQSqlDatabase db);
	public static native boolean contains(String connectionName);
	public static native boolean contains();
	public static native ArrayList drivers();
	// void registerSqlDriver(const TQString& arg1,const TQSqlDriverCreatorBase* arg2); >>>> NOT CONVERTED
	public static native boolean isDriverAvailable(String name);
	public TQSqlDatabase(String type, String name, TQObject parent, String objname) {
		super((Class) null);
		newTQSqlDatabase(type,name,parent,objname);
	}
	private native void newTQSqlDatabase(String type, String name, TQObject parent, String objname);
	public TQSqlDatabase(String type, String name, TQObject parent) {
		super((Class) null);
		newTQSqlDatabase(type,name,parent);
	}
	private native void newTQSqlDatabase(String type, String name, TQObject parent);
	public TQSqlDatabase(String type, String name) {
		super((Class) null);
		newTQSqlDatabase(type,name);
	}
	private native void newTQSqlDatabase(String type, String name);
	public TQSqlDatabase(TQSqlDriver driver, TQObject parent, String objname) {
		super((Class) null);
		newTQSqlDatabase(driver,parent,objname);
	}
	private native void newTQSqlDatabase(TQSqlDriver driver, TQObject parent, String objname);
	public TQSqlDatabase(TQSqlDriver driver, TQObject parent) {
		super((Class) null);
		newTQSqlDatabase(driver,parent);
	}
	private native void newTQSqlDatabase(TQSqlDriver driver, TQObject parent);
	public TQSqlDatabase(TQSqlDriver driver) {
		super((Class) null);
		newTQSqlDatabase(driver);
	}
	private native void newTQSqlDatabase(TQSqlDriver driver);
	/** 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();
}