ps = sqlControl.getStatementForUpdate(connection, stmt, false);
rs = sqlControl.executeStatementQuery(connection, stmt, ps);
if (!rs.next())
{
return new PoidBlock(new Object[] { new Long(1) });
}
return new PoidBlock(new Object[] { new Long(rs.getLong(1) + 1)});
}
catch (SQLException e)
{
//TODO adds a message correspondent to the exception.
//we need to work to create user friendly messages