|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.AbstractDataSet org.dbunit.dataset.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,
java.util.Map objectMap,
java.util.Map substringMap)
Create a new ReplacementDataSet object that decorates the specified dataset. |
Method Summary | |
void |
addReplacementObject(java.lang.Object originalObject,
java.lang.Object replacementObject)
Add a new Object replacement mapping. |
void |
addReplacementSubstring(java.lang.String originalSubstring,
java.lang.String replacementSubstring)
Add a new substring replacement mapping. |
protected ITableIterator |
createIterator(boolean reversed)
|
ITable |
getTable(java.lang.String tableName)
Returns the specified table. |
ITableMetaData |
getTableMetaData(java.lang.String tableName)
Returns the specified table metadata. |
java.lang.String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence. |
void |
setSubstringDelimiters(java.lang.String startDelimiter,
java.lang.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, java.util.Map objectMap, java.util.Map substringMap)
dataSet
- the decorated datasetobjectMap
- the replacement objects mappingsubstringMap
- the replacement substrings mappingMethod Detail |
public void addReplacementObject(java.lang.Object originalObject, java.lang.Object replacementObject)
originalObject
- the object to replacereplacementObject
- the replacement objectpublic void addReplacementSubstring(java.lang.String originalSubstring, java.lang.String replacementSubstring)
originalSubstring
- the substring to replacereplacementSubstring
- the replacement substringpublic void setSubstringDelimiters(java.lang.String startDelimiter, java.lang.String endDelimiter)
protected ITableIterator createIterator(boolean reversed) throws DataSetException
createIterator
in class AbstractDataSet
DataSetException
public java.lang.String[] getTableNames() throws DataSetException
IDataSet
getTableNames
in interface IDataSet
getTableNames
in class AbstractDataSet
DataSetException
public ITableMetaData getTableMetaData(java.lang.String tableName) throws DataSetException
IDataSet
getTableMetaData
in interface IDataSet
getTableMetaData
in class AbstractDataSet
DataSetException
public ITable getTable(java.lang.String tableName) throws DataSetException
IDataSet
getTable
in interface IDataSet
getTable
in class AbstractDataSet
DataSetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |