|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.ReplacementTable
Decorator that replace configured values from the decorated table with replacement values.
Field Summary |
Fields inherited from interface org.dbunit.dataset.ITable |
NO_VALUE |
Constructor Summary | |
ReplacementTable(ITable table)
Create a new ReplacementTable object that decorates the specified table. |
|
ReplacementTable(ITable table,
java.util.Map objectMap,
java.util.Map substringMap,
java.lang.String startDelimiter,
java.lang.String endDelimiter)
|
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. |
int |
getRowCount()
Returns this table row count. |
ITableMetaData |
getTableMetaData()
Returns this table metadata. |
java.lang.Object |
getValue(int row,
java.lang.String column)
Returns this table value for the specified row and column. |
void |
setSubstringDelimiters(java.lang.String startDelimiter,
java.lang.String endDelimiter)
Sets substring delimiters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ReplacementTable(ITable table)
table
- the decorated tablepublic ReplacementTable(ITable table, java.util.Map objectMap, java.util.Map substringMap, java.lang.String startDelimiter, java.lang.String endDelimiter)
Method 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)
public ITableMetaData getTableMetaData()
ITable
getTableMetaData
in interface ITable
public int getRowCount()
ITable
getRowCount
in interface ITable
public java.lang.Object getValue(int row, java.lang.String column) throws DataSetException
ITable
getValue
in interface ITable
DataSetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |