--- /dev/null
+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 {
+ public TableImpl(Bookmark bookmark, String schema, String name) {
+ super(bookmark, schema, name, TABLE_TYPE);
+ }
+
+ public Integer getSize() {
+ Integer size = null;
+ try {
+ size = new Integer(SQLHelper.getSize(
+ getBookmark().getConnection(), getCondQualifiedName(),
+ AdapterFactory.getInstance().getAdapter(getBookmark().getType())));
+ } catch (SQLException e) {
+ } catch (ConnectionException e) {
+ }
+ return size;
+ }
+
+ public void deleteAllRows() throws SQLException, ConnectionException {
+ String sql = "DELETE FROM " + getCondQualifiedName();
+ MultiSQLServer.getInstance().execute(getBookmark().getConnection(), sql);
+ }
+}
\ No newline at end of file