Quantum version 2.4.2
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / model / TableImpl.java
index 161ab0f..87e5c85 100644 (file)
@@ -2,9 +2,7 @@ package com.quantum.model;
 
 import java.sql.SQLException;
 
-import com.quantum.adapters.AdapterFactory;
 import com.quantum.sql.MultiSQLServer;
-import com.quantum.sql.SQLHelper;
 
 
 class TableImpl extends EntityImpl implements Table {
@@ -15,9 +13,9 @@ class TableImpl extends EntityImpl implements Table {
     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) {
         }
@@ -25,7 +23,7 @@ class TableImpl extends EntityImpl implements Table {
     }
     
     public void deleteAllRows() throws SQLException, ConnectionException {
-        String sql = "DELETE FROM " + getCondQualifiedName();
-               MultiSQLServer.getInstance().execute(getBookmark().getConnection(), sql);
+        String sql = "DELETE FROM " + getQualifiedName();
+               MultiSQLServer.getInstance().execute(getBookmark(), getBookmark().getConnection(), sql);
     }
 }
\ No newline at end of file