org.dbunit.ext.mysql
Class MySqlDataTypeFactory
java.lang.Object
org.dbunit.dataset.datatype.DefaultDataTypeFactory
org.dbunit.ext.mysql.MySqlDataTypeFactory
- All Implemented Interfaces:
- IDataTypeFactory, IDbProductRelatable
public class MySqlDataTypeFactory
- extends DefaultDataTypeFactory
Specialized factory that recognizes MySql data types.
- Since:
- 1.5 (Sep 3, 2003)
- Version:
- $Revision: 1031 $ $Date: 2009-09-12 17:13:43 +0200 (sab, 12 set 2009) $
- Author:
- manuel.laflamme, Last changed by: $Author: gommma $
|
Method Summary |
DataType |
createDataType(int sqlType,
java.lang.String sqlTypeName)
Returns the DataType object that corresponds to the specified
Types. |
java.util.Collection |
getValidDbProducts()
Returns a set of Strings representing database product names that this object relates to. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UNSIGNED_SUFFIX
public static final java.lang.String UNSIGNED_SUFFIX
- See Also:
- Constant Field Values
SQL_TYPE_NAME_TINYINT_UNSIGNED
public static final java.lang.String SQL_TYPE_NAME_TINYINT_UNSIGNED
- See Also:
- Constant Field Values
MySqlDataTypeFactory
public MySqlDataTypeFactory()
getValidDbProducts
public java.util.Collection getValidDbProducts()
- Description copied from interface:
IDbProductRelatable
- Returns a set of Strings representing database product names that this object relates to.
- Specified by:
getValidDbProducts in interface IDbProductRelatable- Overrides:
getValidDbProducts in class DefaultDataTypeFactory
- Returns:
- Set of Strings.
- See Also:
IDbProductRelatable.getValidDbProducts()
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 TypessqlTypeName - Data source dependent type name
- Throws:
DataTypeException- See Also:
IDataTypeFactory.createDataType(int, java.lang.String)
Copyright © 2002-2009. All Rights Reserved.