summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-20 15:30:52 (EDT)
committerEike Stepper2007-08-20 15:30:52 (EDT)
commitbe8dd3c2554eb6c3d7940494964ec544b47b1eee (patch)
tree911652653a32c375f87a7668971ad744b22ce074
parent1c8071304e2264cea195e6bc959c0eb58b4cfbe3 (diff)
downloadcdo-be8dd3c2554eb6c3d7940494964ec544b47b1eee.zip
cdo-be8dd3c2554eb6c3d7940494964ec544b47b1eee.tar.gz
cdo-be8dd3c2554eb6c3d7940494964ec544b47b1eee.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java39
1 files changed, 21 insertions, 18 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java
index 7190d33..1c5a53e 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java
@@ -77,25 +77,28 @@ public class DBStoreWriter extends DBStoreReader implements IStoreWriter
{
for (CDOPackageImpl cdoPackage : cdoPackages)
{
- int id = store.getNextPackageID();
- cdoPackage.setServerInfo(new DBPackageInfo(id));
- if (TRACER.isEnabled())
+ if (!cdoPackage.isSystem())
{
- TRACER.format("Inserting package: {0} --> {1}", cdoPackage, id);
- }
-
- String packageURI = cdoPackage.getPackageURI();
- String name = cdoPackage.getName();
- String ecore = cdoPackage.getEcore();
- boolean dynamic = cdoPackage.isDynamic();
- CDOIDRange metaIDRange = cdoPackage.getMetaIDRange();
- long lb = metaIDRange == null ? 0L : metaIDRange.getLowerBound().getValue();
- long ub = metaIDRange == null ? 0L : metaIDRange.getUpperBound().getValue();
- DBUtil.insertRow(connection, CDODBSchema.PACKAGES, id, packageURI, name, ecore, dynamic, lb, ub);
-
- for (CDOClassImpl cdoClass : cdoPackage.getClasses())
- {
- writeClass(cdoClass);
+ int id = store.getNextPackageID();
+ cdoPackage.setServerInfo(new DBPackageInfo(id));
+ if (TRACER.isEnabled())
+ {
+ TRACER.format("Inserting package: {0} --> {1}", cdoPackage, id);
+ }
+
+ String packageURI = cdoPackage.getPackageURI();
+ String name = cdoPackage.getName();
+ String ecore = cdoPackage.getEcore();
+ boolean dynamic = cdoPackage.isDynamic();
+ CDOIDRange metaIDRange = cdoPackage.getMetaIDRange();
+ long lb = metaIDRange == null ? 0L : metaIDRange.getLowerBound().getValue();
+ long ub = metaIDRange == null ? 0L : metaIDRange.getUpperBound().getValue();
+ DBUtil.insertRow(connection, CDODBSchema.PACKAGES, id, packageURI, name, ecore, dynamic, lb, ub);
+
+ for (CDOClassImpl cdoClass : cdoPackage.getClasses())
+ {
+ writeClass(cdoClass);
+ }
}
}