com.sptci.rwt
Class ViewAnalyser
java.lang.Object
com.sptci.rwt.Analyser
com.sptci.rwt.TableTypeAnalyser
com.sptci.rwt.ViewAnalyser
public class ViewAnalyser
- extends TableTypeAnalyser
An analyser for analysing view type objects in the database. View
information is retrieved from the Information Schema.
© Copyright 2007 Sans Pareil Technologies, Inc.
- Version:
- $Id: ViewAnalyser.java 4123 2008-05-25 21:49:01Z rakesh $
- Author:
- Rakesh Vidyadharan 2007-09-26
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewAnalyser
public ViewAnalyser(ConnectionManager manager)
- Create a new instance of the class using the specified connection
manager.
- Parameters:
manager - The manager for obtaining database connections.
analyse
public Collection<ViewMetaData> analyse(MetaData... parameters)
throws SQLException
- Returns a collection of
ViewMetaData objects that contain the
basic information pertaining to the views in the schema. You must
invoke getAdditionalAttributes(com.sptci.rwt.ViewMetaData) to fetch information from
the information_schema.
- Specified by:
analyse in class Analyser
- Parameters:
parameters - Must contain one parameter which is a RootMetaData that represents the catalog or
schema to restrict the analysis to. The name of the
catalogue or schema may be null or an empty string.
- Returns:
- The collection of metadata objects representing all objects of
this type.
- Throws:
SQLException - If errors are encountered while analysisng the- See Also:
Analyser.analyse(com.sptci.rwt.MetaData...),
Analyser.getNames(com.sptci.rwt.MetaData)
getAdditionalAttributes
public void getAdditionalAttributes(ViewMetaData vmd)
- Fetch additional meta data about the specified view from the
information_schema.
- Parameters:
vmd - The meta data object that is to have additional attributes
populated.- Since:
- Version 1.1
- See Also:
AbstractViewAnalyser.getAdditionalAttributes(com.sptci.rwt.ViewMetaData)
getAnalyser
protected AbstractViewAnalyser getAnalyser()
- Return the appropriate implementation class depending upon the
database engine being analysed.
- Returns:
- The appropriate implementation class for the database.
- Throws:
SQLException - If errors are encountered while determining
the analyser class to use.