PreparedStatement prepare(String sql) throws SQLException {
  if (SysProperties.CHECK2) {
    if (!Thread.holdsLock(database)) {
      throw DbException.throwInternalError();
    }
  }
  PreparedStatement prep=prepared.remove(sql);
  if (prep == null) {
    prep=conn.prepareStatement(sql);
  }
  return prep;
}

PreparedStatement prepare ( String sql ) throws SQLException { if ( SysProperties . CHECK2 ) { if ( ! Thread . holdsLock ( database ) ) { throw DbException . throwInternalError ( ) ; } } PreparedStatement prep = prepared . remove ( sql ) ; if ( prep == null ) { prep = conn . prepareStatement ( sql ) ; } return prep ; }
create a prepared statement , or re - use an existing one .
