summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-23 08:25:38 (EDT)
committerEike Stepper2007-08-23 08:25:38 (EDT)
commita542dc06b9735fda7e2f03a6f33f7e36d2498e2a (patch)
tree5378e0a801471990d806aa460a2e34ed3660bd7f
parent823d55a2938dd97e08537014d25ed117849a9f7e (diff)
downloadcdo-a542dc06b9735fda7e2f03a6f33f7e36d2498e2a.zip
cdo-a542dc06b9735fda7e2f03a6f33f7e36d2498e2a.tar.gz
cdo-a542dc06b9735fda7e2f03a6f33f7e36d2498e2a.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMapping.java12
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/IDBField.java2
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBField.java5
3 files changed, 17 insertions, 2 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMapping.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMapping.java
index 10e6acf..1069766 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMapping.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/VerticalMapping.java
@@ -71,8 +71,16 @@ public class VerticalMapping extends IDInfoMapping
public void writeRevision(IDBStoreAccessor storeAccessor, CDORevisionImpl revision)
{
super.writeRevision(storeAccessor, revision);
- writeAttributes(storeAccessor, revision);
- writeReferences(storeAccessor, revision);
+ if (attributeMappings != null)
+ {
+ writeAttributes(storeAccessor, revision);
+ }
+
+ if (referenceMappings != null)
+ {
+ writeReferences(storeAccessor, revision);
+ }
+
if (superMappings != null)
{
for (IMapping superMapping : superMappings)
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/IDBField.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/IDBField.java
index 1eae204..e89abc8 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/IDBField.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/IDBField.java
@@ -30,4 +30,6 @@ public interface IDBField extends IDBElement
public int getPosition();
public String getFullName();
+
+ public void appendValue(StringBuilder builder, Object value);
}
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBField.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBField.java
index d58b58d..1eb7a78 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBField.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBField.java
@@ -105,4 +105,9 @@ public class DBField extends DBElement implements IDBField
return "(" + getPrecision() + ", " + scale + ")";
}
+
+ public void appendValue(StringBuilder builder, Object value)
+ {
+ type.appendValue(builder, value);
+ }
}