org.dbunit.ext.mssql
Class MsSqlDataTypeFactory

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

public class MsSqlDataTypeFactory
extends DefaultDataTypeFactory

Specialized factory that recognizes MS SQL Server data types.

Since:
May 19, 2003
Version:
$Revision: 554 $
Author:
Manuel Laflamme

Field Summary
static int NCHAR
           
static int NTEXT
           
static int NVARCHAR
           
 
Constructor Summary
MsSqlDataTypeFactory()
           
 
Method Summary
 DataType createDataType(int sqlType, 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
 

Field Detail

NCHAR

public static final int NCHAR
See Also:
Constant Field Values

NVARCHAR

public static final int NVARCHAR
See Also:
Constant Field Values

NTEXT

public static final int NTEXT
See Also:
Constant Field Values
Constructor Detail

MsSqlDataTypeFactory

public MsSqlDataTypeFactory()
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


Copyright © 2002-2011. All Rights Reserved.