* @return an iterator of all converted table rows
*/
public Iterator getConvertedTableRowsIterator()
{
final Iterator objTableRowsIterator = getTableRowsIterator();
final IPrimaryKeyConvertor objConvertor = getCachedConvertor();
if (objConvertor == null)
return objTableRowsIterator;
return new Iterator()
{
public boolean hasNext()
{
return objTableRowsIterator.hasNext();
}
public Object next()
{
Object objValue = objTableRowsIterator.next();
Object objPrimaryKey = objConvertor.getPrimaryKey(objValue);
Map mapConvertedValues = getConvertedValues();
mapConvertedValues.put(objPrimaryKey, objValue);
return objPrimaryKey;
}