SPT RWT Application API

com.sptci.rwt
Class StandardViewAnalyser

java.lang.Object
  extended by com.sptci.rwt.Analyser
      extended by com.sptci.rwt.AbstractViewAnalyser
          extended by com.sptci.rwt.StandardViewAnalyser

 class StandardViewAnalyser
extends AbstractViewAnalyser

An analyser for analysing view type objects in the database. View information is retrieved from the Information Schema.

© Copyright 2007 Sans Pareil Technologies, Inc.

Since:
Version 1.2
Version:
$Id: StandardViewAnalyser.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-11-02

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.rwt.Analyser
Analyser.CatalogueSchema
 
Field Summary
 
Fields inherited from class com.sptci.rwt.AbstractViewAnalyser
TYPE
 
Fields inherited from class com.sptci.rwt.Analyser
logger, manager
 
Constructor Summary
StandardViewAnalyser(ConnectionManager manager)
          Create a new instance of the class using the specified connection manager.
 
Method Summary
protected  void getAdditionalAttributes(ViewMetaData vmd)
          Fetch additional meta data about the specified view from the information_schema.
protected  void getViews(RootMetaData root, Collection<ViewMetaData> collection)
          Fetch the views directly from information_schema if no information is available through DatabaseMetaData.
 
Methods inherited from class com.sptci.rwt.AbstractViewAnalyser
analyse
 
Methods inherited from class com.sptci.rwt.Analyser
getNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardViewAnalyser

StandardViewAnalyser(ConnectionManager manager)
Create a new instance of the class using the specified connection manager.

Parameters:
manager - The manager for obtaining database connections.
Method Detail

getViews

protected void getViews(RootMetaData root,
                        Collection<ViewMetaData> collection)
                 throws SQLException
Fetch the views directly from information_schema if no information is available through DatabaseMetaData.

Specified by:
getViews in class AbstractViewAnalyser
Parameters:
root - The metadata object that represents the catalog/schema for which the views are to be retrieved.
collection - The collection to which the ViewMetaData objects are to be added.
Throws:
SQLException - If errors are encountered while fetching the views.
See Also:
Analyser.getNames(com.sptci.rwt.MetaData)

getAdditionalAttributes

protected void getAdditionalAttributes(ViewMetaData vmd)
Fetch additional meta data about the specified view from the information_schema.

Specified by:
getAdditionalAttributes in class AbstractViewAnalyser
Parameters:
vmd - The meta data object that is to have additional attributes populated.
See Also:
Analyser.getNames(com.sptci.rwt.MetaData)

SPT RWT Application API