uk.org.ogsadai.converters.webrowset.resultset.types
Class TypeStrategyFactory

java.lang.Object
  extended byuk.org.ogsadai.converters.webrowset.resultset.types.TypeStrategyFactory

public class TypeStrategyFactory
extends java.lang.Object

Constructs the column type strategies for converting column data from a relational database table based upon the meta data for the table.

Author:
The OGSA-DAI Team.

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Constructor Summary
TypeStrategyFactory()
           
 
Method Summary
static TypeStrategy createTypeStrategy(java.sql.ResultSetMetaData metadata, int column)
          Creates a type strategy for a given column.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values
Constructor Detail

TypeStrategyFactory

public TypeStrategyFactory()
Method Detail

createTypeStrategy

public static TypeStrategy createTypeStrategy(java.sql.ResultSetMetaData metadata,
                                              int column)
                                       throws java.sql.SQLException
Creates a type strategy for a given column.

Parameters:
metadata - ResultSet metadata.
column - Column number.
Returns:
a strategy for converting the data in the given column.
Throws:
java.sql.SQLException - if there was a problem accessing the metadata in the ResultSet or the column type is unknown.