*/
public static void assertCompositeIntegerVarcharFksInDatabaseEquals(
List<CompIntegerVarcharFk> expected)
throws TorqueException
{
Criteria criteria = new Criteria().addSelectColumn(new Count("*"));
Assert.assertEquals(new Integer(expected.size()),
CompIntegerVarcharFkPeer.doSelectSingleRecord(
criteria, new IntegerMapper()));
for (CompIntegerVarcharFk compIntegerVarcharFk : expected)
{
criteria = CompIntegerVarcharFkPeer.buildCriteria(
compIntegerVarcharFk);
criteria.addSelectColumn(new Count("*"));
Assert.assertEquals(
"Expected but not found : " + compIntegerVarcharFk,
new Integer(1),
CompIntegerVarcharFkPeer.doSelectSingleRecord(
criteria, new IntegerMapper()));