|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.ReplacementDataSet
public class ReplacementDataSet
Decorator that replace configured values from the decorated dataset with replacement values.
Constructor Summary | |
---|---|
ReplacementDataSet(IDataSet dataSet)
Create a new ReplacementDataSet object that decorates the specified dataset. |
|
ReplacementDataSet(IDataSet dataSet,
Map objectMap,
Map substringMap)
Create a new ReplacementDataSet object that decorates the specified dataset. |
Method Summary | |
---|---|
void |
addReplacementObject(Object originalObject,
Object replacementObject)
Add a new Object replacement mapping. |
void |
addReplacementSubstring(String originalSubstring,
String replacementSubstring)
Add a new substring replacement mapping. |
protected ITableIterator |
createIterator(boolean reversed)
|
ITable |
getTable(String tableName)
Returns the specified table. |
ITableMetaData |
getTableMetaData(String tableName)
Returns the specified table metadata. |
String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence. |
void |
setSubstringDelimiters(String startDelimiter,
String endDelimiter)
Sets substring delimiters. |
Methods inherited from class org.dbunit.dataset.AbstractDataSet |
---|
cloneTables, getTables, iterator, reverseIterator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ReplacementDataSet(IDataSet dataSet)
dataSet
- the decorated tablepublic ReplacementDataSet(IDataSet dataSet, Map objectMap, Map substringMap)
dataSet
- the decorated datasetobjectMap
- the replacement objects mappingsubstringMap
- the replacement substrings mappingMethod Detail |
---|
public void addReplacementObject(Object originalObject, Object replacementObject)
originalObject
- the object to replacereplacementObject
- the replacement objectpublic void addReplacementSubstring(String originalSubstring, String replacementSubstring)
originalSubstring
- the substring to replacereplacementSubstring
- the replacement substringpublic void setSubstringDelimiters(String startDelimiter, String endDelimiter)
protected ITableIterator createIterator(boolean reversed) throws DataSetException
createIterator
in class AbstractDataSet
DataSetException
public String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
getTableNames
in class AbstractDataSet
DataSetException
public ITableMetaData getTableMetaData(String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
getTableMetaData
in class AbstractDataSet
NoSuchTableException
- if dataset do not contains the specified
table
DataSetException
public ITable getTable(String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
getTable
in class AbstractDataSet
NoSuchTableException
- if dataset do not contains the specified
table
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |