summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Winkler2009-03-30 04:27:46 (EDT)
committerStefan Winkler2009-03-30 04:27:46 (EDT)
commit5b39ba6836376ce9bfa7c310ef97ea6ae94f7c20 (patch)
treed6d45cc64984f022945477b5ac01f34e6d0b3112
parent6bbd55d755082312d47875bdc34b74e95a53c2a4 (diff)
downloadcdo-5b39ba6836376ce9bfa7c310ef97ea6ae94f7c20.zip
cdo-5b39ba6836376ce9bfa7c310ef97ea6ae94f7c20.tar.gz
cdo-5b39ba6836376ce9bfa7c310ef97ea6ae94f7c20.tar.bz2
[270037] [DB] ClassCastException when using StatementJDBCDelegate
https://bugs.eclipse.org/bugs/show_bug.cgi?id=270037
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/mapping/IAttributeMapping.java3
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AttributeMapping.java5
2 files changed, 5 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/mapping/IAttributeMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/mapping/IAttributeMapping.java
index aee4967..708c23a 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/mapping/IAttributeMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/db/mapping/IAttributeMapping.java
@@ -11,6 +11,7 @@
*/
package org.eclipse.emf.cdo.server.db.mapping;
+import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision;
import org.eclipse.net4j.db.ddl.IDBField;
@@ -25,7 +26,7 @@ public interface IAttributeMapping extends IFeatureMapping
{
public IDBField getField();
- public void appendValue(StringBuilder builder, InternalCDORevision revision);
+ public void appendValue(StringBuilder builder, CDORevision revision);
public void appendValue(StringBuilder builder, Object value);
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AttributeMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AttributeMapping.java
index d951d28..99d529c 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AttributeMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/mapping/AttributeMapping.java
@@ -13,6 +13,7 @@ package org.eclipse.emf.cdo.server.internal.db.mapping;
import org.eclipse.emf.cdo.common.id.CDOID;
import org.eclipse.emf.cdo.common.id.CDOIDUtil;
+import org.eclipse.emf.cdo.common.revision.CDORevision;
import org.eclipse.emf.cdo.server.db.mapping.IAttributeMapping;
import org.eclipse.emf.cdo.spi.common.revision.InternalCDORevision;
@@ -45,10 +46,10 @@ public abstract class AttributeMapping extends FeatureMapping implements IAttrib
return field;
}
- public void appendValue(StringBuilder builder, InternalCDORevision revision)
+ public void appendValue(StringBuilder builder, CDORevision revision)
{
IDBAdapter dbAdapter = getDBAdapter();
- Object value = getRevisionValue(revision);
+ Object value = getRevisionValue((InternalCDORevision)revision);
dbAdapter.appendValue(builder, field, value);
}