Package org.eclipse.emf.cdo.server.db
Interface IMetaDataManager
-
public interface IMetaDataManagerManages theelementsof the meta model level of a CDOrepository.- Since:
- 2.0
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearMetaIDMappings()CDOIDgetMetaID(org.eclipse.emf.ecore.EModelElement modelElement, long commitTime)Returns the meta ID of the givenEModelElement.org.eclipse.emf.ecore.EModelElementgetMetaInstance(CDOID id)Returns theEModelElementreferred to by the given ID.org.eclipse.emf.ecore.EPackage[]loadPackageUnit(java.sql.Connection connection, InternalCDOPackageUnit packageUnit)Loads a package unit from the database.voidrawExport(java.sql.Connection connection, CDODataOutput out, long fromCommitTime, long toCommitTime)java.util.Collection<InternalCDOPackageUnit>rawImport(java.sql.Connection connection, CDODataInput in, long fromCommitTime, long toCommitTime, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)java.util.Collection<InternalCDOPackageUnit>readPackageUnits(java.sql.Connection connection)Reads information about package units present in the database.voidwritePackageUnits(java.sql.Connection connection, InternalCDOPackageUnit[] packageUnits, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)Write package units to the database.
-
-
-
Method Detail
-
getMetaID
CDOID getMetaID(org.eclipse.emf.ecore.EModelElement modelElement, long commitTime)
Returns the meta ID of the givenEModelElement.getMetaID(getMetaInstance(x))yieldsx- Parameters:
modelElement- the element- Returns:
- the corresponding ID
- Since:
- 4.0
-
getMetaInstance
org.eclipse.emf.ecore.EModelElement getMetaInstance(CDOID id)
Returns theEModelElementreferred to by the given ID.getMetaInstance(getMetaID(m))yieldsm- Since:
- 4.0
-
loadPackageUnit
org.eclipse.emf.ecore.EPackage[] loadPackageUnit(java.sql.Connection connection, InternalCDOPackageUnit packageUnit)Loads a package unit from the database.- Parameters:
connection- the DB connection to read from.packageUnit- the package unit to load.- Returns:
- the loaded package unit.
- Since:
- 2.0
-
clearMetaIDMappings
void clearMetaIDMappings()
- Since:
- 4.0
-
readPackageUnits
java.util.Collection<InternalCDOPackageUnit> readPackageUnits(java.sql.Connection connection)
Reads information about package units present in the database.- Parameters:
connection- the DB connection to read from.- Returns:
- a collection of package unit information records which can be passed to
loadPackageUnit(Connection, InternalCDOPackageUnit)in order to read the EPackage. - Since:
- 2.0
-
writePackageUnits
void writePackageUnits(java.sql.Connection connection, InternalCDOPackageUnit[] packageUnits, org.eclipse.net4j.util.om.monitor.OMMonitor monitor)Write package units to the database.- Parameters:
connection- the DB connection to write to.packageUnits- the package units to write.monitor- the monitor to indicate progress.- Since:
- 2.0
-
rawExport
void rawExport(java.sql.Connection connection, CDODataOutput out, long fromCommitTime, long toCommitTime) throws java.io.IOException- Throws:
java.io.IOException- Since:
- 3.0
-
rawImport
java.util.Collection<InternalCDOPackageUnit> rawImport(java.sql.Connection connection, CDODataInput in, long fromCommitTime, long toCommitTime, org.eclipse.net4j.util.om.monitor.OMMonitor monitor) throws java.io.IOException
- Throws:
java.io.IOException- Since:
- 4.0
-
-