package com.quantum.model;

import java.sql.SQLException;

import com.quantum.sql.MultiSQLServer;


class ViewImpl extends EntityImpl implements View {
    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(MultiSQLServer.getInstance().getSize(getBookmark(), 
                getBookmark().getConnection(), getQualifiedName(), 
                    getBookmark().getAdapter()));
        } catch (SQLException e) {
        } catch (ConnectionException e) {
        }
        return size;
    }
}