TBranchSetManager
Deals with the logistics of
TBranchSet
s and their members.Inheritance
Level | Ancestor | Description |
---|---|---|
1 | TObject | Ultimate ancestor in a class hierarchy |
2 | TBranchSetManager |
Source
Sql.Database.Logical.Branching.BranchSet.Manager.pas (38)
Description
Manager to deal with the creation, removal, and merging of BranchSets. This operates directly on the database, so any operation is immediatly applied. Any BranchSet returned in created in the database and can be used in branched tables.
Fields
Scope | Visibility | Type | Name | Description |
---|---|---|---|---|
Instance | private | TBranchSetTable | BranchSetTable | |
Instance | private | TSqlDatabase | Database |
Methods
Scope | Visibility | Result | Name | Description |
---|---|---|---|---|
Instance | private | DeleteDatabaseBranchSetBranchID(BranchID: TInteger; BranchSet: TBranchSet) | ||
Instance | private | DeleteDatabaseBranchSet(BranchSet: TBranchSet) | ||
Instance | protected | TList<TBranchSet> | GetBranchSetsContainingBranches(BranchIds: TCollection<TInteger>) | Returns all branch sets that contain all specified branches. |
Instance | protected | TBranchSet | GetBranchSetWithExactBranches(BranchIDs: array of TInteger) | Returns the branch set that is defined by the specified branches. |
Instance | protected | StoreBranchSet(BranchSet: TBranchSet) | Saves a branch set to the database. | |
Instance | public | Create(Database: TSqlDatabase; BranchSetTable: TBranchSetTable) | ||
Instance | public | TList<TBranchSet> | GetBranchSetsContainingBranchSet(BranchSet: TBranchSet) | Returns all branch sets that are a super set of the specified branch set. |
Instance | public | TBranchSet | GetBranchSetWithId(BranchSetID: TInteger) | Loads a branch set from the database. |
Instance | public | TBranchSet | GetMergedBranchSet(BranchSet1: TBranchSet; BranchSet2: TBranchSet) | Returns the branch set that is the union of the two individual sets. |
Instance | public | TList<TBranchSet> | GetSubsets(BranchSet: TBranchSet) | Returns the existing branch sets that are subsets of the specified branch sets. |
Instance | public | TBranchSet | SubtractBranchSet(BranchSet1: TBranchSet; BranchSet2: TBranchSet) | Returns the branch set with members from BranchSet1 that are not present in BranchSet2 . |
Instance | public | TBranchSet | GetOrCreateBranchSetWithBranches(BranchIDs: array of TInteger) | Returns the branch set containing the specified branches. |
Instance | public | TInteger | DeleteBranchFromBranchSet(BranchID: TInteger; BranchSet: TBranchSet) | Removes a branch from a single branch set. |
Instance | public | TList<TBranchSet> | GetBranchSetsContainingAtMostAllButOneBranches(BranchIDs: array of TInteger) | Returns all branch sets that contain matches with the specified branch set, but does not contain all of the branches in that set. |
Instance | public | AddBranchToAllBranchSetsContainingBranch(BranchToAdd: TInteger; ContainingBranch: TInteger) | Extends all branch sets containing a specified branch with a new branch. This is used when copying branches. |