{
if(low + 1 == high)
{
try
{
EntityLocal entity = findByPrimaryKey(low);
entity.remove();
}
catch(FinderException e)
{
log.error("Failed to find and remove entity", e);
throw new RemoveException("Failed to find and remove entity");
}
}
else
{
//There is no find in range finder! till someone implements it...
//java.util.Enumeration elements = findInRange(low, high);
int count = 0;
for (int i = low; i < high; i++)
{
try
{
EntityLocal entity = findByPrimaryKey(i);
entity.remove();
count++;
}
catch (Exception e)
{
//ignore