You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
97 lines
4.2 KiB
97 lines
4.2 KiB
15 years ago
|
//Auto-generated by kalyptus. DO NOT EDIT.
|
||
|
package org.kde.qt;
|
||
|
|
||
|
import org.kde.qt.Qt;
|
||
|
import java.util.ArrayList;
|
||
|
|
||
13 years ago
|
public class TQSqlDatabase extends TQObject {
|
||
|
protected TQSqlDatabase(Class dummy){super((Class) null);}
|
||
|
public native TQMetaObject metaObject();
|
||
15 years ago
|
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);
|
||
13 years ago
|
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();
|
||
15 years ago
|
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();
|
||
13 years ago
|
public native TQSqlDriver driver();
|
||
15 years ago
|
public static native String tr(String arg1, String arg2);
|
||
|
public static native String tr(String arg1);
|
||
13 years ago
|
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();
|
||
15 years ago
|
public static native void removeDatabase(String connectionName);
|
||
13 years ago
|
public static native void removeDatabase(TQSqlDatabase db);
|
||
15 years ago
|
public static native boolean contains(String connectionName);
|
||
|
public static native boolean contains();
|
||
|
public static native ArrayList drivers();
|
||
13 years ago
|
// void registerSqlDriver(const TQString& arg1,const TQSqlDriverCreatorBase* arg2); >>>> NOT CONVERTED
|
||
15 years ago
|
public static native boolean isDriverAvailable(String name);
|
||
13 years ago
|
public TQSqlDatabase(String type, String name, TQObject parent, String objname) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(type,name,parent,objname);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(String type, String name, TQObject parent, String objname);
|
||
|
public TQSqlDatabase(String type, String name, TQObject parent) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(type,name,parent);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(String type, String name, TQObject parent);
|
||
|
public TQSqlDatabase(String type, String name) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(type,name);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(String type, String name);
|
||
|
public TQSqlDatabase(TQSqlDriver driver, TQObject parent, String objname) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(driver,parent,objname);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(TQSqlDriver driver, TQObject parent, String objname);
|
||
|
public TQSqlDatabase(TQSqlDriver driver, TQObject parent) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(driver,parent);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(TQSqlDriver driver, TQObject parent);
|
||
|
public TQSqlDatabase(TQSqlDriver driver) {
|
||
15 years ago
|
super((Class) null);
|
||
13 years ago
|
newTQSqlDatabase(driver);
|
||
15 years ago
|
}
|
||
13 years ago
|
private native void newTQSqlDatabase(TQSqlDriver driver);
|
||
15 years ago
|
/** 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();
|
||
|
}
|