package com.fitbank.web; import java.util.Collection; import java.util.HashMap; import java.util.Map; import com.fitbank.dto.management.Field; import com.fitbank.dto.management.Table; public class Transaction { private String subsystem; private String transaction; private String version; private Map tables=new HashMap(); private Map control=new HashMap(); public Transaction(String pSub,String pTrn,String pVer){ this.subsystem=pSub; this.transaction=pTrn; this.version=pVer; } public String getSubsystem() { return subsystem; } public void setSubsystem(String subsystem) { this.subsystem = subsystem; } public String getTransaction() { return transaction; } public void setTransaction(String transaction) { this.transaction = transaction; } public String getVersion() { return version; } public void setVersion(String version) { this.version = version; } public void addTable(Table pTable){ this.tables.put(pTable.getAlias(), pTable); } public Collection getTables(){ return this.tables.values(); } public void addControl(Field pField){ this.control.put(pField.getName(), pField); } public Collection getControlFields(){ return this.control.values(); } }