TBranchSetManager

Deals with the logistics of TBranchSets and their members.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBranchSetManager

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

ScopeVisibilityTypeNameDescription
InstanceprivateTBranchSetTableBranchSetTable
InstanceprivateTSqlDatabaseDatabase

Methods

ScopeVisibilityResultNameDescription
InstanceprivateDeleteDatabaseBranchSetBranchID(BranchID: TInteger; BranchSet: TBranchSet)
InstanceprivateDeleteDatabaseBranchSet(BranchSet: TBranchSet)
InstanceprotectedTList<TBranchSet>GetBranchSetsContainingBranches(BranchIds: TCollection<TInteger>)Returns all branch sets that contain all specified branches.
InstanceprotectedTBranchSetGetBranchSetWithExactBranches(BranchIDs: array of TInteger)Returns the branch set that is defined by the specified branches.
InstanceprotectedStoreBranchSet(BranchSet: TBranchSet)Saves a branch set to the database.
InstancepublicCreate(Database: TSqlDatabase; BranchSetTable: TBranchSetTable)
InstancepublicTList<TBranchSet>GetBranchSetsContainingBranchSet(BranchSet: TBranchSet)Returns all branch sets that are a super set of the specified branch set.
InstancepublicTBranchSetGetBranchSetWithId(BranchSetID: TInteger)Loads a branch set from the database.
InstancepublicTBranchSetGetMergedBranchSet(BranchSet1: TBranchSet; BranchSet2: TBranchSet)Returns the branch set that is the union of the two individual sets.
InstancepublicTList<TBranchSet>GetSubsets(BranchSet: TBranchSet)Returns the existing branch sets that are subsets of the specified branch sets.
InstancepublicTBranchSetSubtractBranchSet(BranchSet1: TBranchSet; BranchSet2: TBranchSet)Returns the branch set with members from BranchSet1 that are not present in BranchSet2.
InstancepublicTBranchSetGetOrCreateBranchSetWithBranches(BranchIDs: array of TInteger)Returns the branch set containing the specified branches.
InstancepublicTIntegerDeleteBranchFromBranchSet(BranchID: TInteger; BranchSet: TBranchSet)Removes a branch from a single branch set.
InstancepublicTList<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.
InstancepublicAddBranchToAllBranchSetsContainingBranch(BranchToAdd: TInteger; ContainingBranch: TInteger)Extends all branch sets containing a specified branch with a new branch. This is used when copying branches.