Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java')
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java58
1 files changed, 28 insertions, 30 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java
index e4da219965..03b8efa07b 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMappingStrategy.java
@@ -12,22 +12,18 @@ package org.eclipse.emf.cdo.server.internal.db;
import org.eclipse.emf.cdo.internal.protocol.revision.CDORevisionImpl;
import org.eclipse.emf.cdo.protocol.CDOID;
-import org.eclipse.emf.cdo.protocol.model.CDOClass;
import org.eclipse.emf.cdo.protocol.model.CDOClassRef;
-import org.eclipse.emf.cdo.protocol.model.CDOFeature;
import org.eclipse.emf.cdo.protocol.revision.CDORevision;
-import org.eclipse.net4j.db.IDBField;
import org.eclipse.net4j.db.IDBSchema;
import org.eclipse.net4j.db.IDBTable;
import java.sql.Connection;
-import java.util.Set;
/**
* @author Eike Stepper
*/
-public class VerticalMappingStrategy extends MappingStrategy
+public class VerticalMappingStrategy extends StandardMappingStrategy
{
public VerticalMappingStrategy()
{
@@ -48,31 +44,33 @@ public class VerticalMappingStrategy extends MappingStrategy
return schema;
}
- @Override
- protected IDBTable mapClass(CDOClass cdoClass, Set<IDBTable> affectedTables)
- {
- if (cdoClass.isRoot())
- {
- return null;
- }
-
- IDBTable table = addTable(cdoClass);
- initTable(table, false);
- return table;
- }
-
- @Override
- protected IDBField mapFeature(CDOClass cdoClass, CDOFeature cdoFeature, Set<IDBTable> affectedTables)
- {
- if (cdoFeature.getContainingClass() != cdoClass)
- {
- return null;
- }
-
- DBClassInfo classInfo = (DBClassInfo)cdoClass.getServerInfo();
- IDBTable table = classInfo.getTable();
- return addField(cdoFeature, table);
- }
+ // @Override
+ // protected IDBTable mapClass(CDOClass cdoClass, Set<IDBTable>
+ // affectedTables)
+ // {
+ // if (cdoClass.isRoot())
+ // {
+ // return null;
+ // }
+ //
+ // IDBTable table = addTable(cdoClass);
+ // initTable(table, false);
+ // return table;
+ // }
+
+ // @Override
+ // protected IDBField mapFeature(CDOClass cdoClass, CDOFeature cdoFeature,
+ // Set<IDBTable> affectedTables)
+ // {
+ // if (cdoFeature.getContainingClass() != cdoClass)
+ // {
+ // return null;
+ // }
+ //
+ // DBClassInfo classInfo = (DBClassInfo)cdoClass.getServerInfo();
+ // IDBTable table = classInfo.getTable();
+ // return addField(cdoFeature, table);
+ // }
public void writeRevision(Connection connection, CDORevisionImpl revision)
{

Back to the top