private void updateDesign(DataSetDesign dataSetDesign,IConnection conn,String queryText) throws OdaException {
  IQuery query=conn.newQuery(null);
  query.prepare(queryText);
  query.setProperty(Query.PROP_SETUP_QUERY_TEXT,getSetupQueryText());
  try {
    IResultSetMetaData md=query.getMetaData();
    updateResultSetDesign(md,dataSetDesign);
  }
 catch (  OdaException e) {
    dataSetDesign.setResultSets(null);
    e.printStackTrace();
  }
  try {
    IParameterMetaData paramMd=query.getParameterMetaData();
    updateParameterDesign(paramMd,dataSetDesign);
  }
 catch (  OdaException ex) {
    dataSetDesign.setParameters(null);
    ex.printStackTrace();
  }
}

private void updateDesign ( DataSetDesign dataSetDesign , IConnection conn , String queryText ) throws OdaException { IQuery query = conn . newQuery ( null ) ; query . prepare ( queryText ) ; query . setProperty ( Query . PROP_SETUP_QUERY_TEXT , getSetupQueryText ( ) ) ; try { IResultSetMetaData md = query . getMetaData ( ) ; updateResultSetDesign ( md , dataSetDesign ) ; } catch ( OdaException e ) { dataSetDesign . setResultSets ( null ) ; e . printStackTrace ( ) ; } try { IParameterMetaData paramMd = query . getParameterMetaData ( ) ; updateParameterDesign ( paramMd , dataSetDesign ) ; } catch ( OdaException ex ) { dataSetDesign . setParameters ( null ) ; ex . printStackTrace ( ) ; } }
updates the given datasetdesign with the querytext and its derived metadata obtained from the oda runtime connection .
