info.informatica.data
Class JDBCDataDict

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

public class JDBCDataDict
extends Object
implements DataDict

Metadata taken from ResultsetMetadata.

Author:
amengual at informatica dot info

Constructor Summary
JDBCDataDict(ResultSetMetaData md)
          Builds a JDBCDataDict with a given JDBC metadata.
JDBCDataDict(ResultSetMetaData md, String ignorelist)
          Builds a JdbcDataDict with a given JDBC metadata.
 
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.
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCDataDict

public JDBCDataDict(ResultSetMetaData md)
Builds a JDBCDataDict with a given JDBC metadata.


JDBCDataDict

public JDBCDataDict(ResultSetMetaData md,
                    String ignorelist)
Builds a JdbcDataDict with a given JDBC metadata.

Parameters:
ignorelist - a comma-separated list of fields to be ignored when composing the metadata. Can be null.
Method Detail

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

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception