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.

Nested Class Summary
static interface InternalCDOBranchManager.BranchLoader
           
 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
 
Method Summary
 InternalCDOBranch createBranch(int id, 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, String name, InternalCDOBranch baseBranch, long baseTimeStamp)
           
 InternalCDOBranch getBranch(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 handleBranchCreated(InternalCDOBranch branch)
           
 void initMainBranch(boolean local, long timestamp)
           
 void setBranchLoader(InternalCDOBranchManager.BranchLoader branchLoader)
           
 void setTimeProvider(CDOTimeProvider timeProvider)
           
 
Methods inherited from interface org.eclipse.emf.cdo.common.branch.CDOBranchManager
getBranches
 
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
 
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
 

Method Detail

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.