public boolean deleteUser ( final long userId ) throws SQLException { Connection conn = null ; PreparedStatement stmt = null ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . prepareStatement ( deleteUserSQL ) ; stmt . setLong ( 1 , userId ) ; return stmt . executeUpdate ( ) > 0 ; } finally { SQLUtil . closeQuietly ( conn , stmt ) ; } }
Deletes a user by id .