Hi Lars,
How can I get the list of the users in a database?
Is the listUsers() function of DatabaseUsers the right choice?
Indeed.
If so, how must I create an object of the ListUser interface?
For example:
class ListDatabaseUsers implements ListUsers
{
private ArrayList<String> mUsers = new ArrayList<String>();
public ArrayList<String> getUsers()
{
return mUsers;
}
public boolean foundUser(long userId, String login, String password)
{
mUsers.add(userId+","+login+","+password);
return true;
}
}
The advantage is that you can process the users that are listed
without having to store them all in a list in memory. You can for
example create an anonymous inner class and directly add table rows
to a template.
Best regards,
Geert
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users