public interface InternalCDOBranchManager extends CDOBranchManager, ILifecycle
Modifier and Type | Interface and Description |
---|---|
static interface |
InternalCDOBranchManager.BranchLoader
If the meaning of this type isn't clear, there really should be more of a description here...
|
static interface |
InternalCDOBranchManager.BranchLoader2
If the meaning of this type isn't clear, there really should be more of a description here...
|
static interface |
InternalCDOBranchManager.BranchLoader3
If the meaning of this type isn't clear, there really should be more of a description here...
|
ILifecycle.DeferrableActivation
getBranches, getRepository
activate, deactivate, getLifecycleState, isActive
addListener, getListeners, hasListeners, removeListener
void setRepository(CDOCommonRepository repository)
InternalCDOBranchManager.BranchLoader getBranchLoader()
void setBranchLoader(InternalCDOBranchManager.BranchLoader branchLoader)
CDOTimeProvider getTimeProvider()
@Deprecated void setTimeProvider(CDOTimeProvider timeProvider)
setRepository(CDOCommonRepository)
void initMainBranch(boolean local, long timestamp)
InternalCDOBranch getMainBranch()
CDOBranchManager
The main branch has the fixed name
"MAIN" and the fixed
ID
0 (zero).
getMainBranch
in interface CDOBranchManager
InternalCDOBranch getBranch(int branchID)
CDOBranchManager
Note that this method never returns null
. Due to the lazy loading nature of branch managers this
method returns a transparent branch proxy if the branch is not already loaded in the internal branch
cache. This can result in unchecked exceptions being thrown from calls to arbitrary branch methods if the ID
that the proxy was created with does not exist in the branch tree.
getBranch
in interface CDOBranchManager
InternalCDOBranch getBranch(int id, String name, InternalCDOBranch baseBranch, long baseTimeStamp)
InternalCDOBranch getBranch(int id, InternalCDOBranchManager.BranchLoader.BranchInfo branchInfo)
InternalCDOBranch getBranch(String path)
CDOBranchManager
getBranch
in interface CDOBranchManager
path
- A concatenation of the names of all branches from the main branch
to the
requested branch, separated by slashes
("/" characters). Example:
"MAIN/team1/smith".InternalCDOBranch createBranch(int id, String name, InternalCDOBranch baseBranch, long baseTimeStamp)
@Deprecated void renameBranch(CDOBranch branch, String newName)
CDOBranch.setName(String)
.@Deprecated void handleBranchCreated(InternalCDOBranch branch)
#handleBranchChanged(InternalCDOBranch, ChangeKind)
.void handleBranchChanged(InternalCDOBranch branch, CDOBranchChangedEvent.ChangeKind changeKind)
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html