DBConnection connection = db.getConnection();
try {
connection.deleteById(AuthDB.DELETE_USER_ROLES_BY_USER, id);
connection.deleteById(AuthDB.DELETE_AUTHENTICATION_BY_USER, id);
connection.deleteById(AuthDB.DELETE_USER_ALIAS_BY_USER, id);
connection.query(AuthDB.REALM_USERS_BY_USER, new DBQueryHandler() {
public void prepare(PreparedStatement s)
throws SQLException
{
s.setInt(1, id);
}