info.informatica.data
Class SQLDataDict

java.lang.Object
  extended by info.informatica.data.SQLDataDict
All Implemented Interfaces:
DataDict

public class SQLDataDict
extends Object
implements DataDict

Data dictionary with metadata stored on database tables.

Version:
1.03
Author:
amengual at informatica dot info

Constructor Summary
SQLDataDict()
           
SQLDataDict(Properties p)
           
 
Method Summary
 MetaData getMetaData(String name)
          Gets the MetaData associated to the name.
 String getQuery(String s)
          The data dictionary can also be used to access specific queries identified by a name.
 void load(Connection con)
           
 void setProperties(Properties p)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLDataDict

public SQLDataDict()

SQLDataDict

public SQLDataDict(Properties p)
Method Detail

setProperties

public void setProperties(Properties p)

load

public void load(Connection con)
          throws SQLException
Throws:
SQLException

getMetaData

public MetaData getMetaData(String name)
                     throws DataException
Description copied from interface: DataDict
Gets the MetaData associated to the name.

Specified by:
getMetaData in interface DataDict
Returns:
the MetaData associated to the name, or null if none.
Throws:
DataException

getQuery

public String getQuery(String s)
                throws DataException
Description copied from interface: DataDict
The data dictionary can also be used to access specific queries identified by a name. This method returns a query by its name.

Specified by:
getQuery in interface DataDict
Parameters:
s - name of the query
Returns:
the query String, or null if none defined with that name
Throws:
DataException