@Override protected Object eval(CDOSession session) { return session.getRepositoryInfo().isSupportingBranches(); } });
@Override protected Object eval(CDOSession session) { return session.getRepositoryInfo().isSupportingBranches(); } });
if (getSession().getRepositoryInfo().isSupportingBranches())
if (getSession().getRepositoryInfo().isSupportingBranches())
public synchronized BranchCheckoutSource[] getElements() { if (subBranches == null) { subBranches = new ArrayList<BranchCheckoutSource>(); CDOSessionConfiguration config = getRepositoryLocation().createSessionConfiguration(); CDOSession session = config.openSession(); if (session.getRepositoryInfo().isSupportingBranches()) { try { CDOBranch branch = session.getBranchManager().getBranch(getBranchPath()); CDOBranch[] branches = branch.getBranches(); for (CDOBranch subBranch : branches) { subBranches.add(new BranchCheckoutSource(this, subBranch.getName())); } } finally { IOUtil.close(session); } } } return subBranches.toArray(new BranchCheckoutSource[subBranches.size()]); }
private static Object getLockTarget(CDOObject object) { CDOView view = object.cdoView(); if (view == null) { return null; } CDOID id = object.cdoID(); boolean branching = view.getSession().getRepositoryInfo().isSupportingBranches(); if (branching) { return CDOIDUtil.createIDAndBranch(id, view.getBranch()); } return id; }
protected static Object getLockTarget(CDOObject object) { CDOView view = object.cdoView(); if (view == null) { return null; } CDOID id = object.cdoID(); boolean branching = view.getSession().getRepositoryInfo().isSupportingBranches(); if (branching) { return CDOIDUtil.createIDAndBranch(id, view.getBranch()); } return id; }
boolean branching = repositoryInfo.isSupportingBranches(); boolean ensuringReferentialIntegrity = repositoryInfo.isEnsuringReferentialIntegrity(); CDOBranch transactionBranch = getBranch();
@Override protected void doActivate() throws Exception { super.doActivate(); EmbeddedClientSessionProtocol protocol = new EmbeddedClientSessionProtocol(this); setSessionProtocol(protocol); protocol.activate(); protocol.openSession(options().isPassiveUpdateEnabled()); setLastUpdateTime(repository.getLastCommitTimeStamp()); setRepositoryInfo(new RepositoryInfo(this)); InternalCDORevisionManager revisionManager = (InternalCDORevisionManager)CDORevisionUtil.createRevisionManager(); setRevisionManager(revisionManager); revisionManager.setSupportingAudits(getRepositoryInfo().isSupportingAudits()); revisionManager.setSupportingBranches(getRepositoryInfo().isSupportingBranches()); revisionManager.setCache(CDORevisionCache.NOOP); revisionManager.setRevisionLoader(getSessionProtocol()); revisionManager.setRevisionLocker(this); revisionManager.activate(); }
revisionManager.setSupportingBranches(repository.isSupportingBranches()); revisionManager.setRevisionLoader(sessionProtocol); revisionManager.setRevisionLocker(this);