Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-06-03 10:40:31 +0000
committerEike Stepper2008-06-03 10:40:31 +0000
commite678f2bb4459ac1500654620a1887d3e32bff7d9 (patch)
tree426b0cf4467f1cb560a28d1df8e126b9e06c3967 /plugins/org.eclipse.net4j.db
parentd88842543e95827f2acbe649465ae4816a864c1d (diff)
downloadcdo-e678f2bb4459ac1500654620a1887d3e32bff7d9.tar.gz
cdo-e678f2bb4459ac1500654620a1887d3e32bff7d9.tar.xz
cdo-e678f2bb4459ac1500654620a1887d3e32bff7d9.zip
[234041] Prepare graduation
https://bugs.eclipse.org/bugs/show_bug.cgi?id=234041
Diffstat (limited to 'plugins/org.eclipse.net4j.db')
-rw-r--r--plugins/org.eclipse.net4j.db/META-INF/MANIFEST.MF9
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java2
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/ddl/IDBField.java4
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DataSourceConnectionProvider.java1
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBTable.java1
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java (renamed from plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBAdapter.java)4
-rw-r--r--plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBSchema.java (renamed from plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBSchema.java)6
7 files changed, 18 insertions, 9 deletions
diff --git a/plugins/org.eclipse.net4j.db/META-INF/MANIFEST.MF b/plugins/org.eclipse.net4j.db/META-INF/MANIFEST.MF
index d76aa75729..b42fb0dc5a 100644
--- a/plugins/org.eclipse.net4j.db/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.net4j.db/META-INF/MANIFEST.MF
@@ -13,9 +13,10 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
Export-Package: org.eclipse.net4j.db;version="1.0.0",
org.eclipse.net4j.db.ddl;version="1.0.0",
org.eclipse.net4j.db.dml;version="1.0.0",
- org.eclipse.net4j.internal.db;version="1.0.0",
- org.eclipse.net4j.internal.db.bundle;version="1.0.0",
- org.eclipse.net4j.internal.db.ddl;version="1.0.0",
- org.eclipse.net4j.internal.db.dml;version="1.0.0"
+ org.eclipse.net4j.internal.db;version="1.0.0";x-internal:=true,
+ org.eclipse.net4j.internal.db.bundle;version="1.0.0";x-internal:=true,
+ org.eclipse.net4j.internal.db.ddl;version="1.0.0";x-internal:=true,
+ org.eclipse.net4j.internal.db.dml;version="1.0.0";x-internal:=true,
+ org.eclipse.net4j.spi.db;version="1.0.0"
Bundle-ActivationPolicy: lazy
Eclipse-BuddyPolicy: registered
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
index abbf859c13..d7d0676131 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/DBUtil.java
@@ -15,7 +15,7 @@ import org.eclipse.net4j.db.ddl.IDBSchema;
import org.eclipse.net4j.db.ddl.IDBTable;
import org.eclipse.net4j.internal.db.DataSourceConnectionProvider;
import org.eclipse.net4j.internal.db.bundle.OM;
-import org.eclipse.net4j.internal.db.ddl.DBSchema;
+import org.eclipse.net4j.spi.db.DBSchema;
import org.eclipse.net4j.util.ReflectUtil;
import org.eclipse.net4j.util.om.trace.ContextTracer;
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/ddl/IDBField.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/ddl/IDBField.java
index e14fe8c113..bf0dbf92bb 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/ddl/IDBField.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/db/ddl/IDBField.java
@@ -43,5 +43,9 @@ public interface IDBField extends IDBSchemaElement
public String getFullName();
+ public String formatPrecision();
+
+ public String formatPrecisionAndScale();
+
public void appendValue(StringBuilder builder, Object value);
}
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DataSourceConnectionProvider.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DataSourceConnectionProvider.java
index f80e7383bc..9988537be0 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DataSourceConnectionProvider.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DataSourceConnectionProvider.java
@@ -10,6 +10,7 @@
**************************************************************************/
package org.eclipse.net4j.internal.db;
+
import org.eclipse.net4j.db.DBException;
import org.eclipse.net4j.db.IDBConnectionProvider;
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBTable.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBTable.java
index 21662f9154..dc62b423ba 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBTable.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBTable.java
@@ -16,6 +16,7 @@ import org.eclipse.net4j.db.ddl.IDBField;
import org.eclipse.net4j.db.ddl.IDBIndex;
import org.eclipse.net4j.db.ddl.IDBTable;
import org.eclipse.net4j.db.ddl.IDBIndex.Type;
+import org.eclipse.net4j.spi.db.DBSchema;
import java.util.ArrayList;
import java.util.List;
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBAdapter.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java
index 58b1f2a7ff..bf98fb219a 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/DBAdapter.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBAdapter.java
@@ -8,7 +8,7 @@
* Contributors:
* Eike Stepper - initial API and implementation
**************************************************************************/
-package org.eclipse.net4j.internal.db;
+package org.eclipse.net4j.spi.db;
import org.eclipse.net4j.db.DBException;
import org.eclipse.net4j.db.DBType;
@@ -325,7 +325,7 @@ public abstract class DBAdapter implements IDBAdapter
return getTypeName(field) + (field.isNotNull() ? " NOT NULL" : "");
}
- protected String getTypeName(DBField field)
+ protected String getTypeName(IDBField field)
{
DBType type = field.getType();
switch (type)
diff --git a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBSchema.java b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBSchema.java
index 93a0a70898..7d8dc8f5f2 100644
--- a/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/internal/db/ddl/DBSchema.java
+++ b/plugins/org.eclipse.net4j.db/src/org/eclipse/net4j/spi/db/DBSchema.java
@@ -8,7 +8,7 @@
* Contributors:
* Eike Stepper - initial API and implementation
**************************************************************************/
-package org.eclipse.net4j.internal.db.ddl;
+package org.eclipse.net4j.spi.db;
import org.eclipse.net4j.db.DBException;
import org.eclipse.net4j.db.DBUtil;
@@ -17,6 +17,8 @@ import org.eclipse.net4j.db.IDBConnectionProvider;
import org.eclipse.net4j.db.IDBRowHandler;
import org.eclipse.net4j.db.ddl.IDBSchema;
import org.eclipse.net4j.db.ddl.IDBTable;
+import org.eclipse.net4j.internal.db.ddl.DBSchemaElement;
+import org.eclipse.net4j.internal.db.ddl.DBTable;
import javax.sql.DataSource;
@@ -196,7 +198,7 @@ public class DBSchema extends DBSchemaElement implements IDBSchema
}
}
- void assertUnlocked() throws DBException
+ public void assertUnlocked() throws DBException
{
if (locked)
{

Back to the top