nCount = m_nMaxCount;
}
if (nCount > m_nLimit && m_nLimit > 0 && nMaxCount < 0)
{
throw new DataVolumeException("err.persistence.instanceCount",
new Object[]{m_query.getMetaclass().getName(), Primitive.createInteger(m_nLimit)});
}
for (int i = m_nTotalCount; --nCount >= 0; ++i)
{
m_instanceList.add(m_cachedInstanceList.getInstance(i), InstanceList.DIRECT);
}
}
}
}
else
{
while (internalStep(bDiscardExtra) && !bStep)
{
int nCount = m_instanceList.getCount();
if (nCount > m_nLimit && m_nLimit > 0 && nMaxCount < 0)
{
throw new DataVolumeException("err.persistence.instanceCount",
new Object[]{m_query.getMetaclass().getName(), Primitive.createInteger(m_nLimit)});
}
}
}