public boolean updatePostAuthor ( final long postId , final long authorId ) throws SQLException { Connection conn = null ; PreparedStatement stmt = null ; try { conn = connectionSupplier . getConnection ( ) ; stmt = conn . prepareStatement ( updatePostAuthorSQL ) ; stmt . setLong ( 1 , authorId ) ; stmt . setLong ( 2 , postId ) ; return stmt . executeUpdate ( ) > 0 ; } finally { SQLUtil . closeQuietly ( conn , stmt ) ; } }
Updates the author of a post .