1 package com.quantum.model;
3 import java.sql.SQLException;
5 import com.quantum.sql.MultiSQLServer;
6 import com.quantum.sql.SQLHelper;
9 class TableImpl extends EntityImpl implements Table {
10 public TableImpl(Bookmark bookmark, String schema, String name) {
11 super(bookmark, schema, name, TABLE_TYPE);
14 public Integer getSize() {
17 size = new Integer(SQLHelper.getSize(
18 getBookmark().getConnection(), getQualifiedName(),
19 getBookmark().getAdapter()));
20 } catch (SQLException e) {
21 } catch (ConnectionException e) {
26 public void deleteAllRows() throws SQLException, ConnectionException {
27 String sql = "DELETE FROM " + getQualifiedName();
28 MultiSQLServer.getInstance().execute(getBookmark().getConnection(), sql);