summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-15 03:29:33 (EDT)
committerEike Stepper2007-08-15 03:29:33 (EDT)
commit8bac29367108dcb933ec7b09fcb86c0182687bf1 (patch)
treee28acb6152245318e06c37fe0a2d53df453c4e45
parent25a702b1c78fbdbd49287803f464e10731452aa3 (diff)
downloadcdo-8bac29367108dcb933ec7b09fcb86c0182687bf1.zip
cdo-8bac29367108dcb933ec7b09fcb86c0182687bf1.tar.gz
cdo-8bac29367108dcb933ec7b09fcb86c0182687bf1.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/DBStoreWriter.java25
-rw-r--r--plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreWriter.java3
2 files changed, 21 insertions, 7 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 73a5c30..ba2f15b 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
@@ -71,12 +71,15 @@ public class DBStoreWriter extends DBStoreReader implements IStoreWriter
int id = store.getNextPackageID();
cdoPackage.setServerInfo(id);
+ String packageURI = cdoPackage.getPackageURI();
+ String name = cdoPackage.getName();
+ String ecore = cdoPackage.getEcore();
+ boolean dynamic = cdoPackage.isDynamic();
CDOIDRange metaIDRange = cdoPackage.getMetaIDRange();
long lb = metaIDRange.getLowerBound().getValue();
long ub = metaIDRange.getUpperBound().getValue();
- DBUtil.insertRow(connection, CDODBSchema.PACKAGES, id, cdoPackage.getPackageURI(), cdoPackage.getName(), cdoPackage
- .getEcore(), cdoPackage.isDynamic(), lb, ub);
+ DBUtil.insertRow(connection, CDODBSchema.PACKAGES, id, packageURI, name, ecore, dynamic, lb, ub);
for (CDOClassImpl cdoClass : cdoPackage.getClasses())
{
@@ -90,8 +93,12 @@ public class DBStoreWriter extends DBStoreReader implements IStoreWriter
cdoClass.setServerInfo(id);
CDOPackageImpl cdoPackage = cdoClass.getContainingPackage();
- DBUtil.insertRow(connection, CDODBSchema.CLASSES, id, cdoPackage.getPackageURI(), cdoClass.getClassifierID(),
- cdoClass.getName(), cdoClass.isAbstract());
+ String packageURI = cdoPackage.getPackageURI();
+ int classifierID = cdoClass.getClassifierID();
+ String name = cdoClass.getName();
+ boolean isAbstract = cdoClass.isAbstract();
+
+ DBUtil.insertRow(connection, CDODBSchema.CLASSES, id, packageURI, classifierID, name, isAbstract);
for (CDOClassProxy superType : cdoClass.getSuperTypeProxies())
{
@@ -114,9 +121,15 @@ public class DBStoreWriter extends DBStoreReader implements IStoreWriter
int id = store.getNextFeatureID();
feature.setServerInfo(id);
+ String name = feature.getName();
CDOClassProxy reference = feature.getReferenceTypeProxy();
- DBUtil.insertRow(connection, CDODBSchema.FEATURES, id, feature.getName(), reference.getPackageURI(), reference
- .getClassifierID(), feature.isMany(), feature.isContainment(), feature.getFeatureIndex());
+ String packageURI = reference.getPackageURI();
+ int classifierID = reference.getClassifierID();
+ boolean many = feature.isMany();
+ boolean containment = feature.isContainment();
+ int idx = feature.getFeatureIndex();
+
+ DBUtil.insertRow(connection, CDODBSchema.FEATURES, id, name, packageURI, classifierID, many, containment, idx);
}
public void writeRevision(CDORevisionImpl revision)
diff --git a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreWriter.java b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreWriter.java
index 0f81a99..516dddd 100644
--- a/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreWriter.java
+++ b/plugins/org.eclipse.emf.cdo.server/src/org/eclipse/emf/cdo/server/IStoreWriter.java
@@ -39,7 +39,8 @@ public interface IStoreWriter extends IStoreReader
* {@link CDOFeatureImpl#getReferenceTypeProxy()} should be used.
* <p>
*
- * @see CDOClassProxy#getClassRef()
+ * @see CDOClassProxy#getPackageURI()
+ * @see CDOClassProxy#getClassifierID()
*/
public void writePackage(CDOPackageImpl cdoPackage);