public interface IMetaDataManager
elements
of the meta model level of a CDO repository
.Modifier and Type | Method and Description |
---|---|
void |
clearMetaIDMappings() |
CDOID |
getMetaID(org.eclipse.emf.ecore.EModelElement modelElement,
long commitTime)
Returns the meta ID of the given
EModelElement . |
org.eclipse.emf.ecore.EModelElement |
getMetaInstance(CDOID id)
Returns the
EModelElement referred to by the given ID. |
org.eclipse.emf.ecore.EPackage[] |
loadPackageUnit(Connection connection,
InternalCDOPackageUnit packageUnit)
Loads a package unit from the database.
|
void |
rawExport(Connection connection,
CDODataOutput out,
long fromCommitTime,
long toCommitTime) |
Collection<InternalCDOPackageUnit> |
rawImport(Connection connection,
CDODataInput in,
long fromCommitTime,
long toCommitTime,
OMMonitor monitor) |
Collection<InternalCDOPackageUnit> |
readPackageUnits(Connection connection)
Reads information about package units present in the database.
|
void |
writePackageUnits(Connection connection,
InternalCDOPackageUnit[] packageUnits,
OMMonitor monitor)
Write package units to the database.
|
CDOID getMetaID(org.eclipse.emf.ecore.EModelElement modelElement, long commitTime)
EModelElement
. getMetaID(getMetaInstance(x))
yields
x
modelElement
- the elementorg.eclipse.emf.ecore.EModelElement getMetaInstance(CDOID id)
EModelElement
referred to by the given ID. getMetaInstance(getMetaID(m))
yields
m
org.eclipse.emf.ecore.EPackage[] loadPackageUnit(Connection connection, InternalCDOPackageUnit packageUnit)
connection
- the DB connection to read from.packageUnit
- the package unit to load.void clearMetaIDMappings()
Collection<InternalCDOPackageUnit> readPackageUnits(Connection connection)
connection
- the DB connection to read from.loadPackageUnit(Connection, InternalCDOPackageUnit)
in order to read the EPackage.void writePackageUnits(Connection connection, InternalCDOPackageUnit[] packageUnits, OMMonitor monitor)
connection
- the DB connection to write to.packageUnits
- the package units to write.monitor
- the monitor to indicate progress.void rawExport(Connection connection, CDODataOutput out, long fromCommitTime, long toCommitTime) throws IOException
IOException
Collection<InternalCDOPackageUnit> rawImport(Connection connection, CDODataInput in, long fromCommitTime, long toCommitTime, OMMonitor monitor) throws IOException
IOException
Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.