public static int execute ( String poolName , String sql , Object [ ] params ) throws YankSQLException { int returnInt = 0 ; try { returnInt = new QueryRunner ( YANK_POOL_MANAGER . getConnectionPool ( poolName ) ) . update ( sql , params ) ; } catch ( SQLException e ) { handleSQLException ( e , poolName , sql ) ; } return returnInt ; }
Executes the given INSERT UPDATE DELETE REPLACE or UPSERT SQL prepared statement . Returns the number of rows affected .