1 21 22 package org.dbunit.database.statement; 23 24 import java.sql.Connection ; 25 import java.sql.PreparedStatement ; 26 import java.sql.SQLException ; 27 28 33 public abstract class AbstractPreparedBatchStatement implements IPreparedBatchStatement 34 { 35 protected final PreparedStatement _statement; 36 37 AbstractPreparedBatchStatement(String sql, Connection connection) 38 throws SQLException  39 { 40 _statement = connection.prepareStatement(sql); 41 } 42 43 public void close() throws SQLException  44 { 45 _statement.close(); 46 } 47 } 48 49 50 51 | Popular Tags |