Configure the loaded users with a field mask.

git-svn-id: https://samskivert.googlecode.com/svn/trunk@1802 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
mdb
2006-03-27 19:56:49 +00:00
parent 678d298039
commit b9a9f9635f
@@ -28,6 +28,7 @@ import java.sql.Statement;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Iterator;
import java.util.Properties;
import com.samskivert.io.PersistenceException;
@@ -248,7 +249,13 @@ public class UserRepository extends JORARepository
public Object invoke (Connection conn, DatabaseLiaison liaison)
throws PersistenceException, SQLException
{
return _utable.select("where " + where).toArrayList();
ArrayList users = (ArrayList)
_utable.select("where " + where).toArrayList();
for (Iterator iter = users.iterator(); iter.hasNext(); ) {
// configure the user record with its field mask
((User)iter.next()).setDirtyMask(_utable.getFieldMask());
}
return users;
}
});
}