summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-08-20 15:08:55 (EDT)
committerEike Stepper2007-08-20 15:08:55 (EDT)
commit798cd51222e7b5e055ecc8089dae68607a50ab8a (patch)
tree0d443d71515fcbfbf09b6b8a2ecf623d076bb6b9
parentbaa31214ca8e33506713377a730a093ee4c4e430 (diff)
downloadcdo-798cd51222e7b5e055ecc8089dae68607a50ab8a.zip
cdo-798cd51222e7b5e055ecc8089dae68607a50ab8a.tar.gz
cdo-798cd51222e7b5e055ecc8089dae68607a50ab8a.tar.bz2
*** empty log message ***
-rw-r--r--plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java16
1 files changed, 13 insertions, 3 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
index 6252fd4..00e3f61 100644
--- a/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
+++ b/plugins/org.eclipse.emf.cdo.server.db/src/org/eclipse/emf/cdo/server/internal/db/MappingStrategy.java
@@ -311,13 +311,18 @@ public abstract class MappingStrategy implements IMappingStrategy
{
for (int attempt = 0;; ++attempt)
{
+ String tableName = mangleTableName(name, attempt);
+
try
{
- String tableName = mangleTableName(name, attempt);
return getSchema().addTable(tableName);
}
catch (DBException ignore)
{
+ if (TRACER.isEnabled())
+ {
+ TRACER.format("{0}. attempt to add table: {1} ({2})", attempt, tableName, ignore.getMessage());
+ }
}
}
}
@@ -326,14 +331,19 @@ public abstract class MappingStrategy implements IMappingStrategy
{
for (int attempt = 0;; ++attempt)
{
+ String fieldName = mangleFieldName(cdoFeature.getName(), attempt);
+ DBType fieldType = getDBType(cdoFeature.getType());
+
try
{
- String fieldName = mangleFieldName(cdoFeature.getName(), attempt);
- DBType fieldType = getDBType(cdoFeature.getType());
return table.addField(fieldName, fieldType);
}
catch (DBException ignore)
{
+ if (TRACER.isEnabled())
+ {
+ TRACER.format("{0}. attempt to add field: {1} ({2})", attempt, fieldName, ignore.getMessage());
+ }
}
}
}