org.eclipse.emf.cdo.spi.common.branch
Interface InternalCDOBranchManager
- All Superinterfaces:
- CDOBranchManager, ILifecycle, INotifier
- public interface InternalCDOBranchManager
- extends CDOBranchManager, ILifecycle
- Since:
- 3.0
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
getBranchLoader
InternalCDOBranchManager.BranchLoader getBranchLoader()
setBranchLoader
void setBranchLoader(InternalCDOBranchManager.BranchLoader branchLoader)
getTimeProvider
CDOTimeProvider getTimeProvider()
setTimeProvider
void setTimeProvider(CDOTimeProvider timeProvider)
initMainBranch
void initMainBranch(boolean local,
long timestamp)
- Since:
- 4.0
getMainBranch
InternalCDOBranch getMainBranch()
- Description copied from interface:
CDOBranchManager
- Returns the main branch of the branch tree managed by this branch manager.
The main branch has the fixed name
"MAIN" and the fixed
ID
0 (zero).
- Specified by:
getMainBranch
in interface CDOBranchManager
getBranch
InternalCDOBranch getBranch(int branchID)
- Description copied from interface:
CDOBranchManager
- Returns the branch with the given unique integer ID.
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.
- Specified by:
getBranch
in interface CDOBranchManager
getBranch
InternalCDOBranch getBranch(int id,
String name,
InternalCDOBranch baseBranch,
long baseTimeStamp)
getBranch
InternalCDOBranch getBranch(int id,
InternalCDOBranchManager.BranchLoader.BranchInfo branchInfo)
getBranch
InternalCDOBranch getBranch(String path)
- Description copied from interface:
CDOBranchManager
- Returns the branch with the given absolute path.
- Specified by:
getBranch
in interface CDOBranchManager
- Parameters:
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".
createBranch
InternalCDOBranch createBranch(int id,
String name,
InternalCDOBranch baseBranch,
long baseTimeStamp)
handleBranchCreated
void handleBranchCreated(InternalCDOBranch branch)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.