package frame.role; import javax.sql.DataSource; public class Scenario { private String code; private DataSource dataSource; private ActivePeriod activePeriod; public Scenario(String code) { this.code = code; } public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; } public void setActivePeriod(ActivePeriod activePeriod) { this.activePeriod = activePeriod; } public String getCode() { return code; } public DataSource getDataSource() { return dataSource; } public ActivePeriod getActivePeriod() { return activePeriod; } @Override public String toString() { return "datasource--" + code; } }