uk.org.ogsadai.converters.resultset.csv
Class CSVColumnStrategyFactory

java.lang.Object
  |
  +--uk.org.ogsadai.converters.resultset.csv.CSVColumnStrategyFactory
All Implemented Interfaces:
ColumnStrategyFactory

public class CSVColumnStrategyFactory
extends java.lang.Object
implements ColumnStrategyFactory

A factory that creates column strategies for converting result sets into the CSV format. Only numeric and textual types are supported.

Author:
The OGSA-DAI Project Team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
private  CSVConfigurator mConfigurator
           
 
Constructor Summary
CSVColumnStrategyFactory(CSVConfigurator configurator)
          Constructs factory for column strategies.
 
Method Summary
 ColumnStrategy createColumnStrategy(int sqlType)
          Create and return a column strategy suitable for converting data of the specified SQL type.
 
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

mConfigurator

private CSVConfigurator mConfigurator
Constructor Detail

CSVColumnStrategyFactory

public CSVColumnStrategyFactory(CSVConfigurator configurator)
Constructs factory for column strategies.

Parameters:
configurator - defining CSV file format
Method Detail

createColumnStrategy

public ColumnStrategy createColumnStrategy(int sqlType)
Description copied from interface: ColumnStrategyFactory
Create and return a column strategy suitable for converting data of the specified SQL type.

Specified by:
createColumnStrategy in interface ColumnStrategyFactory
Parameters:
sqlType - SQL type constant from java.sql.Types
Returns:
a ColumnStrategy object