Search in sources :

Example 11 with DatabaseItemTree

use of com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree in project Gargoyle by callakrsos.

the class SqlitePane method apply.

@Override
public TreeItem<DatabaseItemTree<String>> apply(String t, Supplier<Connection> conSupplier) {
    try {
        DatabaseItemTree<String> databaseItemTree = new SqliteDatabaseItemTree("databases", conSupplier);
        TreeItem<DatabaseItemTree<String>> createNode = new DatabaseTreeNode().createNode(databaseItemTree);
        return createNode;
    } catch (Exception e) {
        e.printStackTrace();
    }
    return null;
}
Also used : SqliteDatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.sqlite.SqliteDatabaseItemTree) DatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree) SqliteDatabaseItemTree(com.kyj.fx.voeditor.visual.component.sql.dbtree.sqlite.SqliteDatabaseItemTree) DatabaseTreeNode(com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode)

Aggregations

DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree)11 DatabaseTreeNode (com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode)6 TreeItem (javafx.scene.control.TreeItem)5 DatabaseMetaData (java.sql.DatabaseMetaData)3 ResultSet (java.sql.ResultSet)3 MySQLDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.mysql.MySQLDatabaseItemTree)2 PostgreDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.postgre.PostgreDatabaseItemTree)2 JsonElement (com.google.gson.JsonElement)1 H2DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree)1 ColumnItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.ColumnItemTree)1 TableItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.TableItemTree)1 OracleDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.oracle.OracleDatabaseItemTree)1 PostgreTableItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.postgre.PostgreTableItemTree)1 SqliteColumnItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.sqlite.SqliteColumnItemTree)1 SqliteDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.sqlite.SqliteDatabaseItemTree)1 SaveSQLFileFunction (com.kyj.fx.voeditor.visual.component.sql.functions.SaveSQLFileFunction)1 SqlKeywords (com.kyj.fx.voeditor.visual.component.text.SqlKeywords)1 GargoyleConnectionFailException (com.kyj.fx.voeditor.visual.exceptions.GargoyleConnectionFailException)1 ResourceLoader (com.kyj.fx.voeditor.visual.momory.ResourceLoader)1 DbUtil (com.kyj.fx.voeditor.visual.util.DbUtil)1