Revision: 3997
Author: [email protected]
Date: Thu Nov 25 15:17:38 2010
Log: Removing the getSQLType as the session already has a method called getSQLTypes which is correctly defined based on the type of session. (This definition is incorrect for server sessions.)
http://code.google.com/p/power-architect/source/detail?r=3997

Modified:
 /trunk/src/main/java/ca/sqlpower/architect/ArchitectUtils.java

=======================================
--- /trunk/src/main/java/ca/sqlpower/architect/ArchitectUtils.java Thu Nov 4 08:06:24 2010 +++ /trunk/src/main/java/ca/sqlpower/architect/ArchitectUtils.java Thu Nov 25 15:17:38 2010
@@ -22,7 +22,6 @@
 import java.io.IOException;
 import java.net.URL;
 import java.sql.Types;
-import java.util.Collections;
 import java.util.List;

 import javax.swing.JFileChooser;
@@ -336,13 +335,6 @@
         }
     }

-    /**
-     * Gets the basic SQL types from the PL.INI file for a session
-     */
- public static List<UserDefinedSQLType> getSQLTypes(ArchitectSession s) { - return Collections.unmodifiableList(s.getContext().getPlDotIni().getSQLTypes());
-    }
-
     /**
* Gets the basic SQL type from the list of SQL types by comparing jdbc codes.
      */
@@ -360,7 +352,7 @@
      * the types from the session's pl.ini.
      */
public static void setUpstreamTypesInTable(SQLTable table, ArchitectSession session) {
-        List<UserDefinedSQLType> types = getSQLTypes(session);
+        List<UserDefinedSQLType> types = session.getSQLTypes();
         for (SQLColumn col : table.getColumnsWithoutPopulating()) {
             if (col.getUserDefinedSQLType().getUpstreamType() == null) {
                 col.setType(getSQLType(col.getType(), types));

Reply via email to