Search in sources :

Example 1 with DatabaseTreeNode

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

the class PostgreSqlPane method apply.

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

Example 2 with DatabaseTreeNode

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

the class MysqlPane method apply.

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

Example 3 with DatabaseTreeNode

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

the class OracleSqlPane method apply.

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

Example 4 with DatabaseTreeNode

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

the class H2Pane method apply.

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

Example 5 with DatabaseTreeNode

use of com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode 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

DatabaseTreeNode (com.kyj.fx.voeditor.visual.component.sql.dbtree.DatabaseTreeNode)5 DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.commons.DatabaseItemTree)5 H2DatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.H2.H2DatabaseItemTree)1 MySQLDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.mysql.MySQLDatabaseItemTree)1 OracleDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.oracle.OracleDatabaseItemTree)1 PostgreDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.postgre.PostgreDatabaseItemTree)1 SqliteDatabaseItemTree (com.kyj.fx.voeditor.visual.component.sql.dbtree.sqlite.SqliteDatabaseItemTree)1