Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /* 
   * Copyright (C) 2010---2013 星星(wuweixing)<349446658@qq.com>
   * 
   * This file is part of Wabacus 
   * 
   * Wabacus is free software: you can redistribute it and/or modify
   * it under the terms of the GNU Lesser General Public License as published by
   * the Free Software Foundation, either version 3 of the License, or
   * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public License
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 package com.wabacus.config.dataexport;
 
 import java.util.List;
 import java.util.Map;
 
 
 public abstract class AbsDataExportBean implements Cloneable
 {
     private String filename;//本<dataexport/>对应的导出的文件名
     
     private Map<String,StringmDynFilename;
     
     private String type;
 
     private String includeApplicationids;
 
     private List<StringlstIncludeApplicationids;
 
     private Map<String,IntegermReportRecordCounts;
     
     protected IComponentConfigBean owner;
     
     public AbsDataExportBean(IComponentConfigBean owner,String type)
     {
         this.=owner;
         this.=type;
     }
 
     public String getType()
     {
         return ;
     }
 
     public String getIncludeApplicationids()
     {
         return ;
     }
 
     public void setIncludeApplicationids(String includeApplicationids)
     {
         this.=includeApplicationids;
     }
 
     {
         return ;
     }
 
     public void setLstIncludeApplicationids(List<StringlstIncludeApplicationids)
     {
         this.=lstIncludeApplicationids;
     }
 
     {
         return ;
     }
 
     public void setMReportRecordCounts(Map<String,IntegerreportRecordCounts)
     {
         =reportRecordCounts;
     }
 
     public IComponentConfigBean getOwner()
     {
         return ;
     }
 
     public void setOwner(IComponentConfigBean owner)
     {
         this.=owner;
     }
    
    public String getFilename(ReportRequest rrequest)
    {
        return WabacusAssistant.getInstance().getStringValueWithDynPart(rrequest,this.,this.,"");
    }
    public int getDataExportRecordcount(String reportid)
    {
        if(this.==null||this..get(reportid)==null||this..get(reportid)<0) return -1;
        return this..get(reportid).intValue();
    }
    
    public void loadConfig(XmlElementBean eleDataExport)
    {
        String filename=eleDataExport.attributeValue("filename");
        if(filename!=null)
        {
            Object[] objArr=WabacusAssistant.getInstance().parseStringWithDynPart(filename);
            this.=(String)objArr[0];
            this.=(Map<String,String>)objArr[1];
        }
        String dataexportinclude=eleDataExport.attributeValue("include");
        if(dataexportinclude!=null&&!dataexportinclude.trim().equals(""))
        {
            this.=Tools.parseStringToList(dataexportinclude,";",false);
        }
    }
    
    public void doPostLoad()
    {
        Object[] objResult=ComponentConfigLoadAssistant.getInstance().parseIncludeApplicationids(this.,this.);
        this.=(String)objResult[0];
        this.=(List<String>)objResult[1];
        this.=(Map<String,Integer>)objResult[2];
    }
    
    {
        try
        {
            AbsDataExportBean newBean=(AbsDataExportBean)super.clone();
            newBean.setOwner(owner);
            if(!=null)
            {
                newBean.setLstIncludeApplicationids((List<String>)((ArrayList<String>)).clone());
            }
            if(!=null)
            {
                newBean.setMReportRecordCounts((Map<String,Integer>)((HashMap<String,Integer>)this.).clone());
            }
            return newBean;
        }catch(CloneNotSupportedException e)
        {
            throw new WabacusConfigLoadingException("clone组件"+this..getPath()+"的数据导出对象失败",e);
        }
    }
New to GrepCode? Check out our FAQ X