net.sourceforge.schemaspy.model
Class View

java.lang.Object
  extended by net.sourceforge.schemaspy.model.Table
      extended by net.sourceforge.schemaspy.model.View
All Implemented Interfaces:
Comparable

public class View
extends Table


Constructor Summary
View(Database db, ResultSet rs, DatabaseMetaData meta, String selectViewSql)
           
 
Method Summary
protected  int fetchNumRows(Database database)
          fetch the number of rows contained in this table.
 String getViewSql()
           
 boolean isView()
           
 
Methods inherited from class net.sourceforge.schemaspy.model.Table
addCheckConstraint, addedChild, addedParent, compareTo, connectForeignKeys, fetchNumRows, getCheckConstraints, getColumn, getColumns, getComments, getForeignKey, getForeignKeys, getId, getIndex, getIndexes, getMaxChildren, getMaxParents, getName, getNumChildren, getNumParents, getNumRealChildren, getNumRealParents, getNumRows, getPrimaryColumns, getSchema, isLeaf, isOrphan, isRoot, removeAForeignKeyConstraint, removeSelfReferencingConstraint, setComments, setId, toString, unlinkChildren, unlinkParents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

View

public View(Database db,
            ResultSet rs,
            DatabaseMetaData meta,
            String selectViewSql)
     throws SQLException
Throws:
SQLException
Method Detail

isView

public boolean isView()
Overrides:
isView in class Table

getViewSql

public String getViewSql()
Overrides:
getViewSql in class Table

fetchNumRows

protected int fetchNumRows(Database database)
Description copied from class: Table
fetch the number of rows contained in this table. returns -1 if unable to successfully fetch the row count

Overrides:
fetchNumRows in class Table
Parameters:
database - Database
Returns:
int


Copyright © 2007-2010. All Rights Reserved.