public PreparedStatement prepareStatement ( final String sql ) throws SQLException { if ( parameterizedBatchHandlerFactory == null ) { this . parameterizedBatchHandlerFactory = new DefaultParameterizedBatchHandlerFactory ( ) ; } final String strippedQuery = Utils . stripQuery ( sql ) ; return new DrizzlePreparedStatement ( protocol , this , strippedQuery , queryFactory , parameterizedBatchHandlerFactory . get ( strippedQuery , protocol ) ) ; }
creates a new prepared statement . Only client side prepared statement emulation right now .