@Override protected Object eval(CDOSession session) { return session.getSessionID(); } });
@Override protected Object eval(CDOSession session) { return session.getSessionID(); } });
@Override protected Object eval(CDOView view) { return view.getSession().getSessionID(); } });
@Override protected Object eval(CDOView view) { return view.getSession().getSessionID(); } });
public static File createTempFile(CDOTransaction transaction) throws IOException { String prefix = "cdo_tx_" + transaction.getSession().getSessionID() + "_" + transaction.getViewID() + "__"; return File.createTempFile(prefix, null); } }
public static File createTempFile(CDOTransaction transaction) throws IOException { String prefix = "cdo_tx_" + transaction.getSession().getSessionID() + "_" + transaction.getViewID() + "__"; return File.createTempFile(prefix, null); } }
public CDOPushTransaction(CDOTransaction delegate, File file, boolean reconstructSavepoints) throws IOException { this.delegate = delegate; this.file = file; boolean delegateWasDirty = delegate.isDirty(); delegate.addTransactionHandler(delegateHandler); if (file.isDirectory()) { throw new IllegalArgumentException("Not a file: " + file.getAbsolutePath()); } OM.LOG.info("Using " + file.getAbsolutePath() + " for push transaction " + delegate.getSession().getRepositoryInfo().getName() + ":" + // delegate.getSession().getSessionID() + ":" + // delegate.getViewID()); if (file.exists()) { InputStream in = null; try { in = new FileInputStream(file); delegate.importChanges(in, reconstructSavepoints); } finally { IOUtil.close(in); } } dirty = delegateWasDirty; }
public CDOPushTransaction(CDOTransaction delegate, File file, boolean reconstructSavepoints) throws IOException { this.delegate = delegate; this.file = file; boolean delegateWasDirty = delegate.isDirty(); delegate.addTransactionHandler(delegateHandler); if (file.isDirectory()) { throw new IllegalArgumentException("Not a file: " + file.getAbsolutePath()); } OM.LOG.info("Using " + file.getAbsolutePath() + " for push transaction " + delegate.getSession().getRepositoryInfo().getName() + ":" + // delegate.getSession().getSessionID() + ":" + // delegate.getViewID()); if (file.exists()) { InputStream in = null; try { in = new FileInputStream(file); delegate.importChanges(in, reconstructSavepoints); } finally { IOUtil.close(in); } } dirty = delegateWasDirty; }