Merging code from trunk that fixes #774, this work was done by incastrix
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / model / ViewImpl.java
index 7a49d86..2e85d52 100644 (file)
@@ -2,21 +2,20 @@ package com.quantum.model;
 
 import java.sql.SQLException;
 
-import com.quantum.adapters.AdapterFactory;
-import com.quantum.sql.SQLHelper;
+import com.quantum.sql.MultiSQLServer;
 
 
 class ViewImpl extends EntityImpl implements View {
-    public ViewImpl(Bookmark bookmark, String schema, String name) {
-        super(bookmark, schema, name, VIEW_TYPE);
+    public ViewImpl(Bookmark bookmark, String schema, String name, boolean isSynonym) {
+        super(bookmark, schema, name, VIEW_TYPE, isSynonym);
     }
 
     public Integer getSize() {
         Integer size = null;
         try {
-            size = new Integer(SQLHelper.getSize(
-                getBookmark().getConnection(), getCondQualifiedName(), 
-                    AdapterFactory.getInstance().getAdapter(getBookmark().getType())));
+            size = new Integer(MultiSQLServer.getInstance().getSize(getBookmark(), 
+                getBookmark().getConnection(), getQualifiedName(), 
+                    getBookmark().getAdapter()));
         } catch (SQLException e) {
         } catch (ConnectionException e) {
         }