db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject svn commit: r374863 - in /db/ddlutils/trunk/src/java/org/apache/ddlutils: Platform.java platform/PlatformImplBase.java
Date Sat, 04 Feb 2006 12:43:10 GMT
Author: tomdz
Date: Sat Feb  4 04:42:59 2006
New Revision: 374863

URL: http://svn.apache.org/viewcvs?rev=374863&view=rev
Log:
Removed shortcut alterTables methods to make the Platform interface a bit simpler

Modified:
    db/ddlutils/trunk/src/java/org/apache/ddlutils/Platform.java
    db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/Platform.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/Platform.java?rev=374863&r1=374862&r2=374863&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/Platform.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/Platform.java Sat Feb  4 04:42:59 2006
@@ -257,15 +257,6 @@
     public String getCreateTablesSql(Database model, CreationParameters params, boolean dropTablesFirst,
boolean continueOnError) throws DynaSqlException;
 
     /**
-     * Alters the database schema so that it match the given model. Drops and table modifications
will
-     * not be made.
-     *
-     * @param desiredDb       The desired database schema
-     * @param continueOnError Whether to continue with the next sql statement when an error
occurred
-     */
-    public void alterTables(Database desiredDb, boolean continueOnError) throws DynaSqlException;
-
-    /**
      * Alters the database schema so that it match the given model.
      *
      * @param desiredDb       The desired database schema
@@ -289,16 +280,6 @@
     public String getAlterTablesSql(Database desiredDb, boolean doDrops, boolean modifyColumns,
boolean continueOnError) throws DynaSqlException;
 
     /**
-     * Alters the database schema so that it match the given model. Drops and table modifications
will
-     * not be made.
-     *
-     * @param desiredDb       The desired database schema
-     * @param params          The parameters used in the creation
-     * @param continueOnError Whether to continue with the next sql statement when an error
occurred
-     */
-    public void alterTables(Database desiredDb, CreationParameters params, boolean continueOnError)
throws DynaSqlException;
-
-    /**
      * Alters the database schema so that it match the given model.
      *
      * @param desiredDb       The desired database schema
@@ -324,16 +305,6 @@
     public String getAlterTablesSql(Database desiredDb, CreationParameters params, boolean
doDrops, boolean modifyColumns, boolean continueOnError) throws DynaSqlException;
 
     /**
-     * Alters the database schema so that it match the given model. Drops and table modifications
will
-     * not be made.
-     *
-     * @param connection      A connection to the existing database that shall be modified
-     * @param desiredDb       The desired database schema
-     * @param continueOnError Whether to continue with the next sql statement when an error
occurred
-     */
-    public void alterTables(Connection connection, Database desiredDb, boolean continueOnError)
throws DynaSqlException;
-
-    /**
      * Alters the database schema so that it match the given model.
      *
      * @param connection      A connection to the existing database that shall be modified
@@ -357,17 +328,6 @@
      * @return The SQL statements
      */
     public String getAlterTablesSql(Connection connection, Database desiredDb, boolean doDrops,
boolean modifyColumns, boolean continueOnError) throws DynaSqlException;
-
-    /**
-     * Alters the database schema so that it match the given model. Drops and table modifications
will
-     * not be made.
-     *
-     * @param connection      A connection to the existing database that shall be modified
-     * @param desiredDb       The desired database schema
-     * @param params          The parameters used in the creation
-     * @param continueOnError Whether to continue with the next sql statement when an error
occurred
-     */
-    public void alterTables(Connection connection, Database desiredDb, CreationParameters
params, boolean continueOnError) throws DynaSqlException;
 
     /**
      * Alters the database schema so that it match the given model.

Modified: db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java
URL: http://svn.apache.org/viewcvs/db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java?rev=374863&r1=374862&r2=374863&view=diff
==============================================================================
--- db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java (original)
+++ db/ddlutils/trunk/src/java/org/apache/ddlutils/platform/PlatformImplBase.java Sat Feb
 4 04:42:59 2006
@@ -385,14 +385,6 @@
     /**
      * {@inheritDoc}
      */
-    public void alterTables(Database desiredDb, boolean continueOnError) throws DynaSqlException
-    {
-        alterTables(desiredDb, false, false, continueOnError);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
     public void alterTables(Database desiredDb, boolean doDrops, boolean modifyColumns, boolean
continueOnError) throws DynaSqlException
     {
         Connection connection = borrowConnection();
@@ -427,14 +419,6 @@
     /**
      * {@inheritDoc}
      */
-    public void alterTables(Database desiredDb, CreationParameters params, boolean continueOnError)
throws DynaSqlException
-    {
-        alterTables(desiredDb, params, false, false, continueOnError);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
     public void alterTables(Database desiredDb, CreationParameters params, boolean doDrops,
boolean modifyColumns, boolean continueOnError) throws DynaSqlException
     {
         Connection connection = borrowConnection();
@@ -469,14 +453,6 @@
     /**
      * {@inheritDoc}
      */
-    public void alterTables(Connection connection, Database desiredDb, boolean continueOnError)
throws DynaSqlException
-    {
-        alterTables(connection, desiredDb, false, false, continueOnError);
-    }
-
-    /**
-     * {@inheritDoc}
-     */
     public void alterTables(Connection connection, Database desiredModel, boolean doDrops,
boolean modifyColumns, boolean continueOnError) throws DynaSqlException
     {
         String sql = getAlterTablesSql(connection, desiredModel, doDrops, modifyColumns,
continueOnError);
@@ -505,14 +481,6 @@
             // won't happen because we're using a string writer
         }
         return sql;
-    }
-
-    /**
-     * {@inheritDoc}
-     */
-    public void alterTables(Connection connection, Database desiredDb, CreationParameters
params, boolean continueOnError) throws DynaSqlException
-    {
-        alterTables(connection, desiredDb, params, false, false, continueOnError);
     }
 
     /**



Mime
View raw message