public void add(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } userAction(isc_action_svc_add_user, user); }
public void update(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } userAction(isc_action_svc_modify_user, user); }
public void add(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } userAction(isc_action_svc_add_user, user); }
public void update(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } userAction(isc_action_svc_modify_user, user); }
public void delete(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } // Only parameter for delete action is username. All others should be null. User delUser = new FBUser(); delUser.setUserName(user.getUserName()); userAction(isc_action_svc_delete_user, delUser); }
public void delete(User user) throws SQLException, IOException { if (user.getUserName() == null) { throw new SQLException("UserName is required."); } // Only parameter for delete action is username. All others should be null. User delUser = new FBUser(); delUser.setUserName(user.getUserName()); userAction(isc_action_svc_delete_user, delUser); }
public Map<String, User> getUsers() throws SQLException, IOException { OutputStream savedStream = getLogger(); setLogger(new ByteArrayOutputStream()); try { userAction(isc_action_svc_display_user, new FBUser()); return getFBUsers(); } finally { setLogger(savedStream); } }
public Map<String, User> getUsers() throws SQLException, IOException { OutputStream savedStream = getLogger(); setLogger(new ByteArrayOutputStream()); try { userAction(isc_action_svc_display_user, new FBUser()); return getFBUsers(); } finally { setLogger(savedStream); } }