/**
SpagoBI, the Open Source Business Intelligence suite
Copyright (C) 2012 Engineering Ingegneria Informatica S.p.A. - SpagoBI Competency Center
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/.
**/
package it.eng.spagobi.studio.documentcomposition.editors.model.documentcomposition;
import it.eng.spagobi.studio.documentcomposition.editors.model.documentcomposition.bo.ParameterBO;
public class Parameter {
private ParameterBO bo = new ParameterBO();
private static long idCounter = 0;
public static synchronized String createID(String lastId)
{
long last = Integer.valueOf(lastId).intValue();
last = last + (idCounter++);
return String.valueOf(last);
}
public Parameter(DocumentComposition docComp) {
this.id = createID(bo.getLastId(docComp));
// TODO Auto-generated constructor stub
}
private String type;
private String sbiParLabel;
private String defaultVal;
private Refresh refresh;
//per gestire modifica/cancellazione parametro
private String id ;
//attributo che non verr� salvato nell'xml del template ma individua la navigazione
private String navigationName;
public String getNavigationName() {
return navigationName;
}
public void setNavigationName(String navigationName) {
this.navigationName = navigationName;
}
public Refresh getRefresh() {
return refresh;
}
public void setRefresh(Refresh refresh) {
this.refresh = refresh;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public String getSbiParLabel() {
return sbiParLabel;
}
public void setSbiParLabel(String sbiParLabel) {
this.sbiParLabel = sbiParLabel;
}
public String getDefaultVal() {
return defaultVal;
}
public void setDefaultVal(String defaultVal) {
this.defaultVal = defaultVal;
}
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
}