Subject | Re: [Firebird-Java] Re: FBUserManager |
---|---|
Author | Steven Jardine |
Post date | 2005-06-27T16:23:57Z |
>Why do we need database here? Users are not related to the database. Is thisNope. I just grabbed some code from some other location. :-) Thanks
>code needed?
>
>
for the clarification. Here is the revised example:
try {
UserManager userManager = new
FBUserManager(GDSType.getType("PURE_JAVA"));
userManager.setHost("localhost");
userManager.setUser("sysdba");
userManager.setPassword("masterkey");
Map users = userManager.getUsers();
Iterator iterator = users.values().iterator();
while (iterator.hasNext())
System.out.println(iterator.next());
} catch (Exception e) {
e.printStackTrace();
}