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| Modifier and Type | Method and Description |
|---|---|
InternalCDOBranch |
createBranch(int id,
java.lang.String name,
InternalCDOBranch baseBranch,
long baseTimeStamp) |
InternalCDOBranch |
getBranch(int branchID)
Returns the branch with the given unique integer ID.
|
InternalCDOBranch |
getBranch(int id,
InternalCDOBranchManager.BranchLoader.BranchInfo branchInfo) |
InternalCDOBranch |
getBranch(int id,
java.lang.String name,
InternalCDOBranch baseBranch,
long baseTimeStamp) |
InternalCDOBranch |
getBranch(java.lang.String path)
Returns the branch with the given absolute path.
|
InternalCDOBranchManager.BranchLoader |
getBranchLoader() |
InternalCDOBranch |
getMainBranch()
Returns the main branch of the branch tree managed by this branch manager.
|
CDOTimeProvider |
getTimeProvider() |
void |
handleBranchChanged(InternalCDOBranch branch,
CDOBranchChangedEvent.ChangeKind changeKind) |
void |
handleBranchCreated(InternalCDOBranch branch)
Deprecated.
As of 4.3 use
#handleBranchChanged(InternalCDOBranch, ChangeKind). |
void |
initMainBranch(boolean local,
long timestamp) |
void |
renameBranch(CDOBranch branch,
java.lang.String newName)
Deprecated.
as of 4.4 use
CDOBranch.setName(String). |
void |
setBranchLoader(InternalCDOBranchManager.BranchLoader branchLoader) |
void |
setRepository(CDOCommonRepository repository) |
void |
setTimeProvider(CDOTimeProvider timeProvider)
Deprecated.
As of 4.2 replaced by
setRepository(CDOCommonRepository) |
getBranches, getRepositoryactivate, deactivate, getLifecycleState, isActiveaddListener, getListeners, hasListeners, removeListenervoid 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 CDOBranchManagerInternalCDOBranch 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 CDOBranchManagerInternalCDOBranch getBranch(int id, java.lang.String name, InternalCDOBranch baseBranch, long baseTimeStamp)
InternalCDOBranch getBranch(int id, InternalCDOBranchManager.BranchLoader.BranchInfo branchInfo)
InternalCDOBranch getBranch(java.lang.String path)
CDOBranchManagergetBranch in interface CDOBranchManagerpath - 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, java.lang.String name, InternalCDOBranch baseBranch, long baseTimeStamp)
@Deprecated void renameBranch(CDOBranch branch, java.lang.String newName)
CDOBranch.setName(String).@Deprecated void handleBranchCreated(InternalCDOBranch branch)
#handleBranchChanged(InternalCDOBranch, ChangeKind).void handleBranchChanged(InternalCDOBranch branch, CDOBranchChangedEvent.ChangeKind changeKind)
Copyright (c) 2004-2019 Eike Stepper (Loehne, 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