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.
tdebindings/qtjava/javalib/org/kde/qt/TQSqlDatabase.java

97 lines
4.2 KiB

//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();
}