.getString("fullname"), results.getDate("last_password_change"),
UserDatabaseManager.getInstance().getRealm(results.getInt("realm_ID")));
addRoles(user);
return user;
} catch (Exception e) {
throw new UserDatabaseException("Failed to get user realm.");
}
}
} finally {
results.close();
}
} catch (UserDatabaseException ude) {
throw ude;
} catch (SQLException ex) {
throw new UserDatabaseException("Failed to execute SQL query", ex);
} catch (ClassNotFoundException ex) {
throw new UserDatabaseException("Failed to execute SQL query", ex);
} finally {
try {
if (ps != null) {
ps.releasePreparedStatement();
}