|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.datatype.DefaultDataTypeFactory org.dbunit.ext.postgresql.PostgresqlDataTypeFactory
public class PostgresqlDataTypeFactory
Specialized factory that recognizes Postgresql data types.
Derived from work by manuel.laflamme
Constructor Summary | |
---|---|
PostgresqlDataTypeFactory()
|
Method Summary | |
---|---|
DataType |
createDataType(int sqlType,
String sqlTypeName)
Returns the DataType object that corresponds to the specified Types . |
Collection |
getValidDbProducts()
Returns a set of Strings representing database product names that this object relates to. |
boolean |
isEnumType(String sqlTypeName)
Returns a data type for the given sql type name if the user wishes one. |
Methods inherited from class org.dbunit.dataset.datatype.DefaultDataTypeFactory |
---|
addToleratedDelta, createDataType, getToleratedDeltaMap, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PostgresqlDataTypeFactory()
Method Detail |
---|
public Collection getValidDbProducts()
IDbProductRelatable
getValidDbProducts
in interface IDbProductRelatable
getValidDbProducts
in class DefaultDataTypeFactory
IDbProductRelatable.getValidDbProducts()
public DataType createDataType(int sqlType, String sqlTypeName) throws DataTypeException
IDataTypeFactory
Types
.
createDataType
in interface IDataTypeFactory
createDataType
in class DefaultDataTypeFactory
sqlType
- SQL type from Types
sqlTypeName
- Data source dependent type name
DataTypeException
IDataTypeFactory.createDataType(int, java.lang.String)
public boolean isEnumType(String sqlTypeName)
sqlTypeName
- The sql type name for which users can specify a custom data type.
null
if the given type name is not a custom
type which is the default implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |