latest quantum sources 2.3.2
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / model / ViewImpl.java
1 package com.quantum.model;
2
3 import java.sql.SQLException;
4
5 import com.quantum.sql.SQLHelper;
6
7
8 class ViewImpl extends EntityImpl implements View {
9     public ViewImpl(Bookmark bookmark, String schema, String name) {
10         super(bookmark, schema, name, VIEW_TYPE);
11     }
12
13     public Integer getSize() {
14         Integer size = null;
15         try {
16             size = new Integer(SQLHelper.getSize(
17                 getBookmark().getConnection(), getQualifiedName(), 
18                     getBookmark().getAdapter()));
19         } catch (SQLException e) {
20         } catch (ConnectionException e) {
21         }
22         return size;
23     }
24 }