org.dbunit.ext.h2
Class H2DataTypeFactory

java.lang.Object
  extended by org.dbunit.dataset.datatype.DefaultDataTypeFactory
      extended by org.dbunit.ext.h2.H2DataTypeFactory
All Implemented Interfaces:
IDataTypeFactory

public class H2DataTypeFactory
extends DefaultDataTypeFactory

Specialized factory that recognizes H2 data types. TODO: this class is pretty much the same as HsqldbDataTypeFactory, so they should derive from a common superclass - see issue 1897620

Author:
Felipe Leme

Constructor Summary
H2DataTypeFactory()
           
 
Method Summary
 DataType createDataType(int sqlType, java.lang.String sqlTypeName)
          Returns the DataType object that corresponds to the specified Types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

H2DataTypeFactory

public H2DataTypeFactory()
Method Detail

createDataType

public DataType createDataType(int sqlType,
                               java.lang.String sqlTypeName)
                        throws DataTypeException
Description copied from interface: IDataTypeFactory
Returns the DataType object that corresponds to the specified Types.

Specified by:
createDataType in interface IDataTypeFactory
Overrides:
createDataType in class DefaultDataTypeFactory
Parameters:
sqlType - SQL type from Types
sqlTypeName - Data source dependent type name
Throws:
DataTypeException


Copyright © 2002-2008 null. All Rights Reserved.