public abstract class CDOServerExporter<OUT> extends Object
repository
in a format suitable for imports
into new repositories.
Subtypes specifiy the actual exchange format.
Modifier and Type | Class and Description |
---|---|
static class |
CDOServerExporter.XML
An
exporter that creates XML output suitable to be interpreted by an
XML importer . |
static interface |
CDOServerExporter.XMLConstants
|
Constructor and Description |
---|
CDOServerExporter(IRepository repository) |
Modifier and Type | Method and Description |
---|---|
protected abstract OUT |
createOutput(OutputStream out) |
protected abstract void |
endPackageUnit(OUT out) |
protected void |
exportAll(OUT out) |
protected void |
exportBranch(OUT out,
CDOBranch branch) |
protected void |
exportBranches(OUT out) |
protected abstract void |
exportCommit(OUT out,
CDOCommitInfo commitInfo) |
protected void |
exportCommits(OUT out) |
protected void |
exportLobs(OUT out) |
protected abstract void |
exportPackageInfo(OUT out,
String packageURI) |
protected void |
exportPackages(OUT out) |
void |
exportRepository(OutputStream out) |
protected abstract void |
exportRevision(OUT out,
CDORevision revision) |
protected void |
exportRevisions(OUT out,
CDOBranch branch) |
IRepository |
getRepository() |
protected abstract OutputStream |
startBlob(OUT out,
byte[] id,
long size) |
protected abstract Writer |
startClob(OUT out,
byte[] id,
long size) |
protected abstract void |
startPackageUnit(OUT out,
String id,
CDOPackageUnit.Type type,
long time,
String data) |
public CDOServerExporter(IRepository repository)
public final IRepository getRepository()
public final void exportRepository(OutputStream out) throws Exception
Exception
protected abstract OUT createOutput(OutputStream out) throws Exception
Exception
protected abstract void startPackageUnit(OUT out, String id, CDOPackageUnit.Type type, long time, String data) throws Exception
Exception
protected abstract void exportPackageInfo(OUT out, String packageURI) throws Exception
Exception
protected void exportBranch(OUT out, CDOBranch branch) throws Exception
Exception
protected void exportRevisions(OUT out, CDOBranch branch) throws Exception
Exception
protected abstract void exportRevision(OUT out, CDORevision revision) throws Exception
Exception
protected abstract OutputStream startBlob(OUT out, byte[] id, long size) throws Exception
Exception
protected abstract Writer startClob(OUT out, byte[] id, long size) throws Exception
Exception
protected abstract void exportCommit(OUT out, CDOCommitInfo commitInfo) throws Exception
Exception
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.