Deprecated API


Contents
Deprecated Classes
org.dbunit.dataset.CaseInsensitiveDataSet
          All IDataSet implementations are case insensitive since DbUnit 1.5 - may change again since tablenames on RDBMSes can be case sensitive 
org.dbunit.dataset.CaseInsensitiveTable
          All IDataSet implementations are case insensitive since DbUnit 1.5 
org.dbunit.database.search.FKRelationshipEdge
          this class duplicates ForeignKeyRelationshipEdge and should be removed 
 

Deprecated Fields
org.dbunit.database.DatabaseConfig.ALL_FEATURES
          since 2.4.7 Use the DatabaseConfig.ALL_PROPERTIES where features are listed now as well 
 

Deprecated Methods
org.dbunit.dataset.DataSetUtils.assertEquals(IDataSet, IDataSet)
          Use Assertion.assertEquals 
org.dbunit.dataset.DataSetUtils.assertEquals(ITable, ITable)
          Use Assertion.assertEquals 
org.dbunit.IDatabaseTester.closeConnection(IDatabaseConnection)
          since 2.4.4 define a user defined IDatabaseTester.setOperationListener(IOperationListener) in advance 
org.dbunit.DatabaseTestCase.closeConnection(IDatabaseConnection)
          since 2.4.4 define a user defined DatabaseTestCase.getOperationListener() in advance 
org.dbunit.database.DatabaseTableMetaData.createMetaData(String, ResultSet, IDatabaseConnection)
          since 2.3.0. use ResultSetTableMetaData.ResultSetTableMetaData(String, ResultSet, IDatabaseConnection, boolean) 
org.dbunit.database.DatabaseTableMetaData.createMetaData(String, ResultSet, IDataTypeFactory)
          since 2.3.0. use ResultSetTableMetaData.ResultSetTableMetaData(String, ResultSet, IDataTypeFactory, boolean) 
org.dbunit.dataset.datatype.DataType.forSqlTypeName(String)
          Should not be used anymore 
org.dbunit.dataset.DataSetUtils.getColumn(String, Column[])
          since 2.3.0 - prefer usage of Columns.getColumn(String, Column[]) 
org.dbunit.dataset.DataSetUtils.getEscapedName(String, String)
          since 2.3.0. Prefer usage of QualifiedTableName.getQualifiedName() creating a new QualifiedTableName object 
org.dbunit.DatabaseUnitRuntimeException.getException()
          Use Throwable.getCause() instead 
org.dbunit.DatabaseUnitException.getException()
          Use Throwable.getCause() to retrieve the nested exception 
org.dbunit.database.DatabaseConfig.getFeature(String)
          since 2.4.7 Use the DatabaseConfig.getProperty(String) where features are listed now as well 
org.dbunit.dataset.AbstractTableMetaData.getPrimaryKeys(Column[], String[])
          since 2.3.0 - use Columns.getColumns(String[], Column[]) 
org.dbunit.dataset.AbstractTableMetaData.getPrimaryKeys(String, Column[], IColumnFilter)
          since 2.3.0 - use Columns.getColumns(String[], Column[]) 
org.dbunit.dataset.DataSetUtils.getQualifiedName(String, String)
          since 2.3.0. Prefer usage of QualifiedTableName.getQualifiedName() creating a new QualifiedTableName object 
org.dbunit.dataset.DataSetUtils.getQualifiedName(String, String, String)
          since 2.3.0. Prefer usage of QualifiedTableName.getQualifiedName() creating a new QualifiedTableName object 
org.dbunit.database.IDatabaseConnection.getStatementFactory()
          Use IDatabaseConnection.getConfig() 
org.dbunit.database.AbstractDatabaseConnection.getStatementFactory()
          Use AbstractDatabaseConnection.getConfig() 
org.dbunit.dataset.IDataSet.getTables()
          Use IDataSet.iterator() or IDataSet.reverseIterator() instead. 
org.dbunit.util.SQLHelper.matches(ResultSet, String, String, boolean)
          since 2.4.4 - use IMetadataHandler.matches(ResultSet, String, String, String, String, boolean) 
org.dbunit.util.SQLHelper.matches(ResultSet, String, String, String, String, boolean)
          since 2.4.4 - use IMetadataHandler.matches(ResultSet, String, String, String, String, boolean) 
org.dbunit.database.DatabaseConfig.setFeature(String, boolean)
          since 2.4.7 Use the DatabaseConfig.setProperty(String, Object) also for features 
org.dbunit.IDatabaseTester.setSchema(String)
          since 2.4.3 Should not be used anymore. Every concrete IDatabaseTester implementation that needs a schema has the possibility to set it somehow in the constructor 
org.dbunit.util.SQLHelper.tableExists(DatabaseMetaData, String, String)
          since 2.4.5 - use IMetadataHandler.tableExists(DatabaseMetaData, String, String) 
org.dbunit.dataset.xml.FlatXmlDataSet.writeDtd(IDataSet, OutputStream)
          use FlatDtdDataSet.write(org.dbunit.dataset.IDataSet, java.io.OutputStream) 
 

Deprecated Constructors
org.dbunit.database.CachedResultSetTable(ITableMetaData, IDatabaseConnection)
          since 2.4.4 prefer direct usage of ForwardOnlyResultSetTable.ForwardOnlyResultSetTable(ITableMetaData, IDatabaseConnection) and then invoke CachedResultSetTable.CachedResultSetTable(IResultSetTable) 
org.dbunit.database.CachedResultSetTable(ITableMetaData, ResultSet)
          since 2.3.0 prefer direct usage of ForwardOnlyResultSetTable.ForwardOnlyResultSetTable(ITableMetaData, ResultSet) and then invoke CachedResultSetTable.CachedResultSetTable(IResultSetTable) 
org.dbunit.dataset.CompositeDataSet(IDataSet, boolean)
          This constructor is useless when the combine parameter is false. Use overload that doesn't have the combine argument. 
org.dbunit.dataset.DefaultTable(ITableMetaData, List)
          Use public mutators to initialize table values instead 
org.dbunit.dataset.DefaultTable(String, Column[], List)
          Use public mutators to initialize table values instead 
org.dbunit.dataset.xml.FlatXmlDataSet(File)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(File, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(File, boolean, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(File, boolean, boolean, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(InputSource)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(InputStream)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(InputStream, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(InputStream, IDataSet)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(InputStream, InputStream)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(Reader)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(Reader, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(Reader, boolean, boolean, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(Reader, IDataSet)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(Reader, Reader)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(URL)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(URL, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(URL, boolean, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.xml.FlatXmlDataSet(URL, boolean, boolean, boolean)
          since 2.4.7 - use FlatXmlDataSetBuilder to create a FlatXmlDataSet 
org.dbunit.dataset.NoSuchColumnException()
          since 2.3.0. Prefer constructor taking a table/columnName as argument 
org.dbunit.dataset.NoSuchColumnException(String)
          since 2.3.0. Prefer constructor taking a table/columnName as argument 
org.dbunit.dataset.NoSuchColumnException(String, Throwable)
          since 2.3.0. Prefer constructor taking a table/columnName as argument 
org.dbunit.dataset.NoSuchColumnException(Throwable)
          since 2.3.0. Prefer constructor taking a table/columnName as argument 
org.dbunit.database.ResultSetTableMetaData(String, ResultSet, IDataTypeFactory, boolean)
          since 2.4.4. use ResultSetTableMetaData.ResultSetTableMetaData(String, ResultSet, IDatabaseConnection, boolean) 
 



Copyright © 2002-2010. All Rights Reserved.