((JavaClassDataSet)ds).setClassName(((SbiJClassDataSet)hibDataSet).getJavaClassName());
ds.setDsType(DataSetConstants.JAVA_CLASS);
}
if (hibDataSet instanceof SbiQbeDataSet) {
ds = new QbeDataSet();
SbiQbeDataSet aSbiQbeDataSet = (SbiQbeDataSet) hibDataSet;
QbeDataSet qbeDataset = (QbeDataSet) ds;
qbeDataset.setJsonQuery(aSbiQbeDataSet.getJsonQuery());
qbeDataset.setDatamarts(aSbiQbeDataSet.getDatamarts());
SbiDataSource sbids = aSbiQbeDataSet.getDataSource();
if (sbids!=null){
DataSourceDAOHibImpl dataSourceDao = new DataSourceDAOHibImpl();
IDataSource dataSource = dataSourceDao.toDataSource(sbids);
qbeDataset.setDataSource(dataSource);
}
ds.setDsType(DataSetConstants.QBE);
}