SPT RWT Application API

com.sptci.rwt
Class ProcedureAnalyser

java.lang.Object
  extended by com.sptci.rwt.Analyser
      extended by com.sptci.rwt.ProcedureAnalyser

public class ProcedureAnalyser
extends Analyser

An analyser for analysing procedure type objects in the database.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: ProcedureAnalyser.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-09-27

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sptci.rwt.Analyser
Analyser.CatalogueSchema
 
Field Summary
 
Fields inherited from class com.sptci.rwt.Analyser
logger, manager
 
Constructor Summary
ProcedureAnalyser(ConnectionManager manager)
          Create a new instance of the class using the specified connection manager.
 
Method Summary
 Collection<ProcedureMetaData> analyse(MetaData... parameters)
          Returns a collection of ProcedureMetaData objects that contain the basic information pertaining to the procedures in the catalog/schema.
 void getAdditionalAttributes(ProcedureMetaData pmd)
          Fetch additional meta data available from the information schema to the object.
 
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

ProcedureAnalyser

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

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

analyse

public Collection<ProcedureMetaData> analyse(MetaData... parameters)
                                      throws SQLException
Returns a collection of ProcedureMetaData objects that contain the basic information pertaining to the procedures in the catalog/schema. You should invoke getAdditionalAttributes(com.sptci.rwt.ProcedureMetaData) to fetch the additional attributes that are available in 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.
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(ProcedureMetaData pmd)
Fetch additional meta data available from the information schema to the object.

Parameters:
pmd - The meta data object that is to be updated.
Since:
Version 1.1
See Also:
AbstractProcedureAnalyser.getAdditionalAttributes(com.sptci.rwt.ProcedureMetaData)

SPT RWT Application API