|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.openutils.testing.DbUnitUtils
public final class DbUnitUtils
| Method Summary | |
|---|---|
static void |
exportDataset(org.dbunit.database.IDatabaseConnection connection,
java.lang.String[] tableNames,
java.io.File file)
Deprecated. use exportTablesToDir(IDatabaseConnection, File, DatasetType, ITableFilter) |
static void |
exportDataset(org.dbunit.database.IDatabaseConnection connection,
java.lang.String[] tableNames,
java.io.File file,
DatasetType datasetType)
Exports a list of table to an xml/xsl file |
void |
exportTablesToDir(org.dbunit.database.IDatabaseConnection connection,
java.io.File directory,
boolean xls,
org.dbunit.dataset.filter.ITableFilter tableFilter)
Deprecated. use exportTablesToDir(IDatabaseConnection, File, DatasetType, ITableFilter) |
void |
exportTablesToDir(org.dbunit.database.IDatabaseConnection connection,
java.io.File directory,
DatasetType datasetType,
org.dbunit.dataset.filter.ITableFilter tableFilter)
Exports a full db saving a dataset for each table. |
static org.dbunit.dataset.IDataSet |
loadDataset(java.net.URL url)
Deprecated. use loadDataset(URL, DatasetType) |
static org.dbunit.dataset.IDataSet |
loadDataset(java.net.URL url,
DatasetType datasetType)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
@Deprecated
public static void exportDataset(org.dbunit.database.IDatabaseConnection connection,
java.lang.String[] tableNames,
java.io.File file)
throws java.sql.SQLException,
java.io.IOException,
org.dbunit.dataset.DataSetException
exportTablesToDir(IDatabaseConnection, File, DatasetType, ITableFilter)
file - The file name we save the dataset toconnection - connection to usetableNames - optional list of table names
java.io.IOException - An IO Exception.
org.dbunit.dataset.DataSetException - A dataset exception.
java.sql.SQLException - A SQL Exception.
public static void exportDataset(org.dbunit.database.IDatabaseConnection connection,
java.lang.String[] tableNames,
java.io.File file,
DatasetType datasetType)
throws java.sql.SQLException,
java.io.IOException,
org.dbunit.dataset.DataSetException
file - The file name we save the dataset toconnection - connection to usetableNames - optional list of table namesdatasetType - dataset Type
java.io.IOException - An IO Exception.
org.dbunit.dataset.DataSetException - A dataset exception.
java.sql.SQLException - A SQL Exception.
@Deprecated
public void exportTablesToDir(org.dbunit.database.IDatabaseConnection connection,
java.io.File directory,
boolean xls,
org.dbunit.dataset.filter.ITableFilter tableFilter)
throws java.sql.SQLException,
org.dbunit.dataset.DataSetException,
java.io.IOException
exportTablesToDir(IDatabaseConnection, File, DatasetType, ITableFilter)
connection - dbunit connectiondirectory - export directoryxls - if true export will be done using excel datasetstableFilter - optional table filter
java.sql.SQLException - sql exception
org.dbunit.dataset.DataSetException - dbunit exception
java.io.IOException - IO exception
public void exportTablesToDir(org.dbunit.database.IDatabaseConnection connection,
java.io.File directory,
DatasetType datasetType,
org.dbunit.dataset.filter.ITableFilter tableFilter)
throws java.sql.SQLException,
org.dbunit.dataset.DataSetException,
java.io.IOException
connection - dbunit connectiondirectory - export directorydatasetType - dbunit dataset typetableFilter - optional table filter
java.sql.SQLException - sql exception
org.dbunit.dataset.DataSetException - dbunit exception
java.io.IOException - IO exception
@Deprecated
public static org.dbunit.dataset.IDataSet loadDataset(java.net.URL url)
throws java.io.IOException,
org.dbunit.dataset.DataSetException
loadDataset(URL, DatasetType)
url - dataset url (can be an xml or excel file)
java.io.IOException - error reading the file
org.dbunit.dataset.DataSetException - error loading the dataset
public static org.dbunit.dataset.IDataSet loadDataset(java.net.URL url,
DatasetType datasetType)
throws java.io.IOException,
org.dbunit.dataset.DataSetException
url - dataset url (can be an xml or excel file)datasetType - dataset Type
java.io.IOException - error reading the file
org.dbunit.dataset.DataSetException - error loading the dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||