0
Javaアプリケーションのコントローラクラスに新しいデータベースを作成する方法を教えてください。例えば、私は、データベースに接続し、設定を保存することができています -Javaアプリケーションのコントローラクラスに新しいデータベースを作成する
private void saveProps() {
if (dbTypeComboBox.getSelectedItem().toString().contains("racle")) {
this.dbprops.setTypeDB(DBType.ORACLE);
} else if (dbTypeComboBox.getSelectedItem().toString().toLowerCase().contains("ysql")){
this.dbprops.setTypeDB(DBType.MySQL);
}else{
this.dbprops.setTypeDB(DBType.SYBASE);
}
this.dbprops.setHostName(hostTF.getText());
this.dbprops.setPort(portTF.getText());
this.dbprops.setUser(userTF.getText());
this.dbprops.setPass(passwordTF.getText());
this.dbprops.setDbDriver(dbDriverTF.getText());
try {
this.dbprops.setConnection_Timeout(Integer.parseInt(timeOutTF.getText()));
} catch (Exception ex) {
this.dbprops.setConnection_Timeout(10);
}
this.dbprops.setSIDOracle(sidTF.getText());
this.dbprops.setPrefixUserOracle(prefixUserTF.getText());
}
しかし、私は、作成、編集、またはビューコントローラアーキテクチャのコントローラクラスでDBを削除する方法を必要としています。
ありがとうございます。
スタックオーバーフローの答えではなく、そのためのチュートリアルが必要です。 – Mohayemin