org.dbunit.ext.mysql
Class MySqlDataTypeFactory

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

public class MySqlDataTypeFactory
extends DefaultDataTypeFactory

Specialized factory that recognizes MySql data types.

Since:
1.5 (Sep 3, 2003)
Version:
$Revision: 861 $ $Date: 2008-11-07 10:31:38 +0100 (Fri, 07 Nov 2008) $
Author:
manuel.laflamme, Last changed by: $Author: gommma $

Field Summary
static String SQL_TYPE_NAME_TINYINT_UNSIGNED
           
static String UNSIGNED_SUFFIX
           
 
Constructor Summary
MySqlDataTypeFactory()
           
 
Method Summary
 DataType createDataType(int sqlType, String sqlTypeName)
          Returns the DataType object that corresponds to the specified Types.
 
Methods inherited from class org.dbunit.dataset.datatype.DefaultDataTypeFactory
addToleratedDelta, createDataType, getToleratedDeltaMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNSIGNED_SUFFIX

public static final String UNSIGNED_SUFFIX
See Also:
Constant Field Values

SQL_TYPE_NAME_TINYINT_UNSIGNED

public static final String SQL_TYPE_NAME_TINYINT_UNSIGNED
See Also:
Constant Field Values
Constructor Detail

MySqlDataTypeFactory

public MySqlDataTypeFactory()
Method Detail

createDataType

public DataType createDataType(int sqlType,
                               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
See Also:
IDataTypeFactory.createDataType(int, java.lang.String)


Copyright © 2002-2012. All Rights Reserved.