public static int [ ] executeBatch ( String poolName , String sql , Object [ ] [ ] params ) throws YankSQLException { int [ ] returnIntArray = null ; try { returnIntArray = new QueryRunner ( YANK_POOL_MANAGER . getConnectionPool ( poolName ) ) . batch ( sql , params ) ; } catch ( SQLException e ) { handleSQLException ( e , poolName , sql ) ; } return returnIntArray ; }
Batch executes the given INSERT UPDATE DELETE REPLACE or UPSERT SQL statement