Package it.eng.spagobi.tools.dataset.bo

Examples of it.eng.spagobi.tools.dataset.bo.FileDataSetDetail


    logger.debug("IN");
    GuiGenericDataSet ds = new GuiGenericDataSet();
    GuiDataSetDetail dsActiveDetail = null;

    if(hibDataSet instanceof SbiFileDataSet){   
      dsActiveDetail = new FileDataSetDetail();
      ((FileDataSetDetail)dsActiveDetail).setFileName(((SbiFileDataSet)hibDataSet).getFileName());   
      dsActiveDetail.setDsType(FILE_DS_TYPE);
      logger.debug("File dataset");
    }
View Full Code Here


  public GuiDataSetDetail toDataSetDetail(SbiDataSetHistory hibDataSet) throws EMFUserError{   

    GuiDataSetDetail dsVersionDetail = null;

    if(hibDataSet instanceof SbiFileDataSet){   
      dsVersionDetail = new FileDataSetDetail();
      ((FileDataSetDetail)dsVersionDetail).setFileName(((SbiFileDataSet)hibDataSet).getFileName());   
      dsVersionDetail.setDsType(FILE_DS_TYPE);
    }

    if(hibDataSet instanceof SbiQueryDataSet){     
View Full Code Here

  public GuiGenericDataSet toDataSet(IDataSet iDataSet) throws EMFUserError{   
    GuiGenericDataSet ds = new GuiGenericDataSet();
    GuiDataSetDetail dsActiveDetail = null;

    if(iDataSet instanceof FileDataSet){   
      dsActiveDetail = new FileDataSetDetail();
      ((FileDataSetDetail)dsActiveDetail).setFileName(((FileDataSet)iDataSet).getFileName());   
      dsActiveDetail.setDsType(FILE_DS_TYPE);
    }

    if(iDataSet instanceof JDBCDataSet){     
View Full Code Here

 
  private GuiDataSetDetail instantiateCorrectDsDetail(String dsType){
    GuiDataSetDetail dsActiveDetail = null;
   
    if(dsType.equalsIgnoreCase(DataSetConstants.DS_FILE)){
      dsActiveDetail = new FileDataSetDetail();
      String fileName = getAttributeAsString(DataSetConstants.FILE_NAME);
      if(fileName!=null && !fileName.equals("")){
        ((FileDataSetDetail)dsActiveDetail).setFileName(fileName);
      }
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_JCLASS)){
View Full Code Here

 
  private GuiDataSetDetail instantiateCorrectDsDetail(String dsType){
    GuiDataSetDetail dsActiveDetail = null;
   
    if(dsType.equalsIgnoreCase(DataSetConstants.DS_FILE)){
      dsActiveDetail = new FileDataSetDetail();
      String fileName = getAttributeAsString(DataSetConstants.FILE_NAME);
      if(fileName!=null && !fileName.equals("")){
        ((FileDataSetDetail)dsActiveDetail).setFileName(fileName);
      }
    }else if(dsType.equalsIgnoreCase(DataSetConstants.DS_JCLASS)){
View Full Code Here

      ds.setName(dataset.getName());
      ds.setDescription(dataset.getDescription())

      //defines correct dataset detail
      if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_FILE)){
        dsDetail = new FileDataSetDetail();
        String fileName = dataset.getFileName();
        if(fileName!=null && !fileName.equals("")){
          ((FileDataSetDetail)dsDetail).setFileName(fileName);
        }
      }else if(dataset.getType().equalsIgnoreCase(DataSetConstants.DS_JCLASS)){
View Full Code Here

TOP

Related Classes of it.eng.spagobi.tools.dataset.bo.FileDataSetDetail

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.