|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.dataset.ReplacementTable
public class 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,
Map objectMap,
Map substringMap,
String startDelimiter,
String endDelimiter)
|
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. |
int |
getRowCount()
Returns this table row count. |
ITableMetaData |
getTableMetaData()
Returns this table metadata. |
Object |
getValue(int row,
String column)
Returns this table value for the specified row and column. |
void |
setSubstringDelimiters(String startDelimiter,
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, Map objectMap, Map substringMap, String startDelimiter, String endDelimiter)
Method 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)
public ITableMetaData getTableMetaData()
ITable
getTableMetaData
in interface ITable
public int getRowCount()
ITable
getRowCount
in interface ITable
public Object getValue(int row, String column) throws DataSetException
ITable
getValue
in interface ITable
NoSuchColumnException
- if specfied column name do not exist in
this table
RowOutOfBoundsException
- if specfied row is less than zero or
equals or greater than getRowCount
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |