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