Uses of Class
org.pgcodekeeper.core.model.difftree.TreeElement
Packages that use TreeElement
Package
Description
-
Uses of TreeElement in org.pgcodekeeper.core
Methods in org.pgcodekeeper.core with parameters of type TreeElementModifier and TypeMethodDescriptionPgDiff.diff(TreeElement root, AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, IgnoreList ignoreList) Gets selected elements from root, compares them between source and target and generates a migration script. -
Uses of TreeElement in org.pgcodekeeper.core.api
Methods in org.pgcodekeeper.core.api with parameters of type TreeElementModifier and TypeMethodDescriptionstatic StringPgCodeKeeperApi.diff(ISettings settings, TreeElement root, AbstractDatabase oldDb, AbstractDatabase newDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesOldDb, List<Map.Entry<PgStatement, PgStatement>> additionalDependenciesNewDb, Collection<String> ignoreLists) Compares two databases and generates a migration script with filtering and additional dependencies. -
Uses of TreeElement in org.pgcodekeeper.core.model.difftree
Methods in org.pgcodekeeper.core.model.difftree that return TreeElementModifier and TypeMethodDescriptionstatic TreeElementDiffTree.create(ISettings settings, AbstractDatabase left, AbstractDatabase right) Creates a diff tree comparing two database schemas.static TreeElementDiffTree.create(ISettings settings, AbstractDatabase left, AbstractDatabase right, IMonitor monitor) Creates a diff tree comparing two database schemas with progress monitoring.DiffTree.createTree(AbstractDatabase left, AbstractDatabase right) Creates a diff tree by comparing two database schemas and building a hierarchical tree structure representing the differences between them.TreeElement.findElement(PgStatement st) Finds an element in the tree by database statement.TreeElement.getChild(int index) Gets a child element by index.Gets a child element by name (any type).Gets a child element by name and type.TreeElement.getCopy()Creates a copy of elements starting from current element.TreeElement.getParent()Gets the parent element.TreeElement.getRevertedCopy()Creates a copy of elements starting from current with sides reverted: left -> right, right -> left, both -> bothMethods in org.pgcodekeeper.core.model.difftree that return types with arguments of type TreeElementModifier and TypeMethodDescriptionTreeFlattener.flatten(TreeElement root) Flattens the tree structure applying all configured filters.TreeElement.getChildren()Gets the list of child elements.static Set<TreeElement>DiffTree.getTablesWithChangedColumns(AbstractDatabase oldDbFull, AbstractDatabase newDbFull, List<TreeElement> selected) Gets tables that have changed columns from the selected elements.Methods in org.pgcodekeeper.core.model.difftree with parameters of type TreeElementModifier and TypeMethodDescriptionvoidTreeElement.addChild(TreeElement child) Adds a child element to this element.static voidDiffTree.addColumns(List<AbstractColumn> left, List<AbstractColumn> right, TreeElement parent, List<TreeElement> list) Deprecated.this method is deprecatedintCompareTree.compare(TreeElement o1, TreeElement o2) TreeFlattener.flatten(TreeElement root) Flattens the tree structure applying all configured filters.IgnoreList.getNameStatus(TreeElement el, boolean inAddSubtree, String... dbNames) Determines the add status for a tree element based on ignore rules.booleanIgnoredObject.match(TreeElement el, String... dbNames) Checks if this ignore rule matches the given tree element and database names.voidTreeElement.setParent(TreeElement el) Deprecated.this method should only be used for column relationshipsMethod parameters in org.pgcodekeeper.core.model.difftree with type arguments of type TreeElementModifier and TypeMethodDescriptionstatic Set<TreeElement>DiffTree.getTablesWithChangedColumns(AbstractDatabase oldDbFull, AbstractDatabase newDbFull, List<TreeElement> selected) Gets tables that have changed columns from the selected elements. -
Uses of TreeElement in org.pgcodekeeper.core.model.exporter
Constructor parameters in org.pgcodekeeper.core.model.exporter with type arguments of type TreeElementModifierConstructorDescriptionModelExporter(Path outDir, AbstractDatabase newDb, AbstractDatabase oldDb, DatabaseType databaseType, Collection<TreeElement> changedObjects, String sqlEncoding, ISettings settings) Creates a new ModelExporter for partial or project export.OverridesModelExporter(Path outDir, AbstractDatabase newDb, AbstractDatabase oldDb, Collection<TreeElement> changedObjects, String sqlEncoding, DatabaseType dbType, ISettings settings) Creates a new overrides model exporter. -
Uses of TreeElement in org.pgcodekeeper.core.model.graph
Methods in org.pgcodekeeper.core.model.graph that return types with arguments of type TreeElementModifier and TypeMethodDescriptionDepcyTreeExtender.getDepcies()Returns all dependent elements based on user selection.Method parameters in org.pgcodekeeper.core.model.graph with type arguments of type TreeElementModifier and TypeMethodDescriptionstatic voidActionsToScriptConverter.fillScript(SQLScript script, Set<ActionContainer> actions, Set<PgStatement> toRefresh, AbstractDatabase oldDbFull, AbstractDatabase newDbFull, List<TreeElement> selected) Fills the SQL script with statements based on resolved database actions.Constructors in org.pgcodekeeper.core.model.graph with parameters of type TreeElementModifierConstructorDescriptionDepcyTreeExtender(AbstractDatabase dbSource, AbstractDatabase dbTarget, TreeElement root) Creates a new dependency tree extender. -
Uses of TreeElement in org.pgcodekeeper.core.utils
Constructor parameters in org.pgcodekeeper.core.utils with type arguments of type TreeElementModifierConstructorDescriptionProjectUpdater(AbstractDatabase dbNew, AbstractDatabase dbOld, Collection<TreeElement> changedObjects, DatabaseType dbType, String encoding, Path dirExport, boolean overridesOnly, ISettings settings) Creates a new project updater with specified configuration.