private void executeDDL(Statement statement,String sql,boolean ignoreExceptions) throws SQLException {
  try {
    statement.executeUpdate(sql);
  }
 catch (  SQLException ex) {
    if (!ignoreExceptions)     throw ex;
  }
}

private void executeDDL ( Statement statement , String sql , boolean ignoreExceptions ) throws SQLException { try { statement . executeUpdate ( sql ) ; } catch ( SQLException ex ) { if ( ! ignoreExceptions ) throw ex ; } }
execute ddl statement and ignore the exception if needed .
