Package com.dci.intellij.dbn.object

Examples of com.dci.intellij.dbn.object.DBTable


            List<DBObject> selectedObjects = DatabaseBrowserManager.getInstance(object.getProject()).getSelectedObjects();
            add(new GenerateSelectStatementAction(selectedObjects));
        }

        if (object instanceof DBTable) {
            DBTable table = (DBTable) object;
            add(new GenerateInsertStatementAction(table));
        }

        DatabaseCompatibilityInterface compatibilityInterface = DatabaseCompatibilityInterface.getInstance(object);
        if (object instanceof DBSchemaObject &&
View Full Code Here


            if (shortestPath[0] != null && shortestPath[0].size() < path.size()) {
                return;
            }
        }

        DBTable sourceTable = (DBTable) sourceColumn.getDataset();
        for (DBColumn column : sourceTable.getForeignKeyColumns()) {
            if (column != sourceColumn) {
                DBColumn fkColumn = column.getForeignKeyColumn();
                buildDependencyPath(path, fkColumn, targetColumn, shortestPath);
            }

        }

        for (DBColumn pkColumn : sourceTable.getPrimaryKeyColumns()) {
            if (pkColumn != sourceColumn) {
                for (DBColumn fkColumn : pkColumn.getReferencingColumns()) {
                    buildDependencyPath(path, fkColumn, targetColumn, shortestPath);
                }
            }
View Full Code Here

    }

    @Override
    protected void initLists() {
        super.initLists();
        DBTable table = getTable();
        if (table != null) {
            columns = initChildObjects().createSubcontentObjectList(DBObjectType.COLUMN, this, COLUMNS_LOADER, table, DBObjectRelationType.INDEX_COLUMN, false);
        }
    }
View Full Code Here

    public void actionPerformed(AnActionEvent e) {
        new Thread() {
            public void run() {
                if (object instanceof DBTable) {
                    DBTable table = (DBTable) object;
                    DBTable target = (DBTable) table.getSchema().getChildObject(DBObjectType.TABLE, "ALLOCATIONS", false);
                    DataDependencyPath[] shortestPath = new DataDependencyPath[1];
                    DataDependencyPathBuilder.buildDependencyPath(null, table.getColumns().get(0), target.getColumns().get(0), shortestPath);
                    System.out.println();
                }
            }
        }.start();
    }
View Full Code Here

    }

    public boolean matches(DataModelRow row, boolean lenient) {
        // try fast match by primary key
        if (getModel().getDataset() instanceof DBTable) {
            DBTable table = (DBTable) getModel().getDataset();
            List<DBColumn> uniqueColumns = table.getPrimaryKeyColumns();
            if (uniqueColumns.size() == 0) {
                uniqueColumns = table.getUniqueKeyColumns();
            }
            if (uniqueColumns.size() > 0) {
                for (DBColumn uniqueColumn : uniqueColumns) {
                    int index = getModel().getHeader().indexOfColumn(uniqueColumn);
                    DatasetEditorModelCell localCell = getCellAtIndex(index);
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.object.DBTable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.