@ Override public void addBatch ( ) throws SQLException { checkClosed ( ) ; if ( this . Query . isOfType ( VoltSQL . TYPE_EXEC , VoltSQL . TYPE_SELECT ) ) { throw SQLError . get ( SQLError . ILLEGAL_STATEMENT , this . Query . toSqlString ( ) ) ; } this . addBatch ( this . Query . getExecutableQuery ( this . parameters ) ) ; this . parameters = this . Query . getParameterArray ( ) ; }
Adds a set of parameters to this PreparedStatement object s batch of commands .